Forum: PC-Programmierung Qt 2.3 App CrossCompilieren für Mini2440, was mache ich falsch


von Spice (Gast)


Angehängte Dateien:

Lesenswert?

Hallo Leute,

ich habe folgendes Problem. Ich habe auf einem Mini2440-Board Qtopia 
2.2.0 laufen. Nun möchte ich eine graphische oberfläche programmieren. 
Ich habe erfolgreich den CrossCompiler arm-qtopia installiert und konnte 
das BeispielProgramm Hello kompilieren und sowohl auf einem ubuntu 
System ausführen als auch auf dem Board starten. Nun habe ich einfach 
einen Button auf einem Form und bekomme beim Compilieren Fehler, die ich 
nicht zuordnen kann. Ich hänge mal meine Dateien an, vielleicht sieht 
einer auf Anhieb wo mein Fehler liegt. Ich bin auf jeden Fall mit meinem 
Latein am ende und weiss nicht mehr weiter, weil ich mittlerweile so 
einiges probiert hab, aber ich bekomme immer folge Meldung.



root@ebook:/opt/FriendlyARM/mini2440/arm-qtopia/test1# ./build
rm -f .obj/release-shared/moc_testme.o .obj/release-shared/moc_test1.o
rm -f .moc/release-shared/moc_testme.cpp 
.moc/release-shared/moc_test1.cpp
rm -f .ui/release-shared/test1.cpp .ui/release-shared/test1.h
rm -f .obj/release-shared/testme.o .obj/release-shared/main.o 
.obj/release-shared/test1.o
rm -f *~ core *.core
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/ui 
c  test1.ui -o .ui/release-shared/test1.h
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os 
-DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" 
-DQTOPIA_TARGET=\"test\" -DQTOPIA_TRTARGET=\"test\" -DQT_NO_DEBUG 
-I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/m 
kspecs/qws/linux-arm-g++  -I. 
-I../qtopia-2.2.0-FriendlyARM/qtopia/include 
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ 
-I.moc/release-shared/ -o .obj/release-shared/testme.o testme.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os 
-DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" 
-DQTOPIA_TARGET=\"test\" -DQTOPIA_TRTARGET=\"test\" -DQT_NO_DEBUG 
-I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/m 
kspecs/qws/linux-arm-g++  -I. 
-I../qtopia-2.2.0-FriendlyARM/qtopia/include 
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ 
-I.moc/release-shared/ -o .obj/release-shared/main.o main.cpp
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/ui 
c  test1.ui -i test1.h -o .ui/release-shared/test1.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os 
-DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" 
-DQTOPIA_TARGET=\"test\" -DQTOPIA_TRTARGET=\"test\" -DQT_NO_DEBUG 
-I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/m 
kspecs/qws/linux-arm-g++  -I. 
-I../qtopia-2.2.0-FriendlyARM/qtopia/include 
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ 
-I.moc/release-shared/ -o .obj/release-shared/test1.o 
.ui/release-shared/test1.cpp
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/mo 
c  testme.h -o .moc/release-shared/moc_testme.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os 
-DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" 
-DQTOPIA_TARGET=\"test\" -DQTOPIA_TRTARGET=\"test\" -DQT_NO_DEBUG 
-I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/m 
kspecs/qws/linux-arm-g++  -I. 
-I../qtopia-2.2.0-FriendlyARM/qtopia/include 
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ 
-I.moc/release-shared/ -o .obj/release-shared/moc_testme.o 
.moc/release-shared/moc_testme.cpp
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/mo 
c  .ui/release-shared/test1.h -o .moc/release-shared/moc_test1.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os 
-DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" 
-DQTOPIA_TARGET=\"test\" -DQTOPIA_TRTARGET=\"test\" -DQT_NO_DEBUG 
-I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/m 
kspecs/qws/linux-arm-g++  -I. 
-I../qtopia-2.2.0-FriendlyARM/qtopia/include 
-I../qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ 
-I.moc/release-shared/ -o .obj/release-shared/moc_test1.o 
.moc/release-shared/moc_test1.cpp
test -d 
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin 
/  || mkdir -p 
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin 
/
arm-linux-g++  -o 
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin 
/test  .obj/release-shared/testme.o .obj/release-shared/main.o 
.obj/release-shared/test1.o .obj/release-shared/moc_testme.o 
.obj/release-shared/moc_test1.o   -luuid -lqtopia2 -lqtopia -lqpe 
-L/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/l 
ib 
-L/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/lib 
-lqte
.obj/release-shared/test1.o: In function `non-virtual thunk to 
Form1::~Form1()':
test1.cpp:(.text+0x0): multiple definition of `non-virtual thunk to 
Form1::~Form1()'
.obj/release-shared/testme.o:testme.cpp:(.text+0x0): first defined here
.obj/release-shared/test1.o: In function `Form1::~Form1()':
test1.cpp:(.text+0x8): multiple definition of `Form1::~Form1()'
.obj/release-shared/testme.o:testme.cpp:(.text+0x8): first defined here
.obj/release-shared/test1.o: In function `Form1::~Form1()':
test1.cpp:(.text+0x34): multiple definition of `Form1::~Form1()'
.obj/release-shared/testme.o:testme.cpp:(.text+0x34): first defined here
.obj/release-shared/test1.o: In function `non-virtual thunk to 
Form1::~Form1()':
test1.cpp:(.text+0x60): multiple definition of `non-virtual thunk to 
Form1::~Form1()'
.obj/release-shared/testme.o:testme.cpp:(.text+0x60): first defined here
.obj/release-shared/test1.o: In function `Form1::~Form1()':
test1.cpp:(.text+0x68): multiple definition of `Form1::~Form1()'
.obj/release-shared/testme.o:testme.cpp:(.text+0x68): first defined here
.obj/release-shared/test1.o: In function `Form1::Form1(QWidget*, char 
const*, unsigned int)':
test1.cpp:(.text+0x9c): multiple definition of `Form1::Form1(QWidget*, 
char const*, unsigned int)'
.obj/release-shared/testme.o:testme.cpp:(.text+0x9c): first defined here
.obj/release-shared/test1.o: In function `Form1::Form1(QWidget*, char 
const*, unsigned int)':
test1.cpp:(.text+0x1b0): multiple definition of `Form1::Form1(QWidget*, 
char const*, unsigned int)'
.obj/release-shared/testme.o:testme.cpp:(.text+0xc8): first defined here
.obj/release-shared/moc_test1.o: In function `Form1::className() const':
moc_test1.cpp:(.text+0x0): multiple definition of `Form1::className() 
const'
.obj/release-shared/moc_testme.o:moc_testme.cpp:(.text+0x0): first 
defined here
.obj/release-shared/moc_test1.o: In function 
`Form1::staticMetaObject()':
moc_test1.cpp:(.text+0x34): multiple definition of 
`Form1::staticMetaObject()'
.obj/release-shared/moc_testme.o:moc_testme.cpp:(.text+0x34): first 
defined here
.obj/release-shared/moc_test1.o: In function `Form1::tr(char const*, 
char const*)':
moc_test1.cpp:(.text+0xa0): multiple definition of `Form1::tr(char 
const*, char const*)'
.obj/release-shared/moc_testme.o:moc_testme.cpp:(.text+0xa0): first 
defined here
.obj/release-shared/moc_test1.o: In function `Form1::tr(char const*)':
moc_test1.cpp:(.text+0xd4): multiple definition of `Form1::tr(char 
const*)'
.obj/release-shared/moc_testme.o:moc_testme.cpp:(.text+0xd4): first 
defined here
.obj/release-shared/moc_test1.o: In function `Form1::initMetaObject()':
moc_test1.cpp:(.text+0x10c): multiple definition of 
`Form1::initMetaObject()'
.obj/release-shared/moc_testme.o:moc_testme.cpp:(.text+0x10c): first 
defined here
.obj/release-shared/moc_test1.o:(.bss+0x4): multiple definition of 
`Form1::metaObj'
.obj/release-shared/moc_testme.o:(.bss+0x4): first defined here
.obj/release-shared/moc_test1.o:(.rodata+0x0): multiple definition of 
`vtable for Form1'
.obj/release-shared/moc_testme.o:(.rodata+0x0): first defined here
collect2: ld returned 1 exit status
make: *** 
[/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bi 
n/test]  Fehler 1
root@ebook:/opt/FriendlyARM/mini2440/arm-qtopia/test1#



Gruss und besten Dank
Spice

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.