OESF Portables Forum
Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: d_aero on June 02, 2004, 06:43:42 pm
-
I have loaded the 1.5 dev img and somehow copied the devkit on to my internal memory. (I am a Zaurus newbie but not a Unix novice so I understand normal mounts but not image mounting !)
I can get the obligatory Hello World to compile but when I link i get :-
/tmp/cc5jqItG.o(.rodata+0xe4): undefined reference to `QDropEvent type_info node\'
/tmp/cc5jqItG.o: In function `QArray<char> type_info function\':
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tft6QArray1Zc+0x1c): undefined reference to `QGArray type_info function\'
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tft6QArray1Zc+0x1c): relocation truncated to fit: R_ARM_PC24 QGArray type_info function
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tft6QArray1Zc+0x44): undefined reference to `QGArray type_info node\'
/tmp/cc5jqItG.o: In function `QTimerEvent type_info function\':
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QTimerEvent+0x1c): undefined reference to `QEvent type_info function\'
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QTimerEvent+0x1c): relocation truncated to fit: R_ARM_PC24 QEvent type_info function
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QTimerEvent+0x44): undefined reference to `QEvent type_info node\'
/tmp/cc5jqItG.o: In function `QMouseEvent type_info function\':
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QMouseEvent+0x1c): undefined reference to `QEvent type_info function\'
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QMouseEvent+0x1c): relocation truncated to fit: R_ARM_PC24 QEvent type_info function
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QMouseEvent+0x44): undefined reference to `QEvent type_info node\'
/tmp/cc5jqItG.o: In function `QWheelEvent type_info function\':
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QWheelEvent+0x1c): undefined reference to `QEvent type_info function\'
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QWheelEvent+0x1c): relocation truncated to fit: R_ARM_PC24 QEvent type_info function
/tmp/cc5jqItG.o(.gnu.linkonce.t.__tf11QWheelEvent+0x44): undefined reference to `QEvent type_info node\'
/tmp/cc5jqItG.o: In function `QKeyEvent type_info function\':
.......................
The compilation command I am using is:
g++ -o hello hello.cpp -I /home/zaurus/devkit/include -I /home/zaurus/devkit/include/qt -lqte -L /home/zaurus/devkit/lib
Can anybody help please ?
Also can anybody point me to a good explanation of how image mounting works on Zaurus ?
-
Don\'t compile by hand, use qmake.
As for your specific error, supply -fno-rtti to the compiler since your qte library also is compiled without RTTI.
-
Thanks Mickeyl, that got me further. I found a post with the full g++ command so I also added those options but I am still getting link errors:
/home/zaurus/devkit/lib/libmng.a(libmng_cms.o): In function `mnglcms_initlibrary\':
libmng_cms.o(.text+0x10)undefined reference to `cmsErrorAction\'
cmsOpenProfileFromFile, cmsOpenProfileFromMenu etc.........
Any clues ?.
I would use qmake but it doesn\'t appear to be in the dev-img. Is there somewhere I can get this from. I have used it successfully on the Linux box.
Any help welcome, I would love to get this going on the Z itself.