Help - Search - Members - Calendar
Full Version: Qtopia Example Compile Error
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Qt/Qtopia
unplug
I installed all required packages in the "Compile Setup" in Zaurus How-To Docs. The only difference is I installed version 8-3.3.4.2 for those compat libs under my Fedora Core 3 machine. Building the example for x86 is fine and it also executed ok. But when I switched to dev-arm-qpe.sh and tried to compile a zaurus version of that example, I got the following error message:
CODE
:
arm-linux-gcc  -o example main.o example.o examplebase.o moc_example.o moc_examplebase.o  -L/opt/Qtopia/sharp/lib -L/opt/Qtopia/sharp/lib -lqpe -lqtopia -lqte
/opt/Embedix/tools/arm-linux/bin/ld: warning: libuuid.so.1, needed by /opt/Qtopia/sharp/lib/libqtopia.so, not found (try using -rpath or -rpath-link)
/opt/Embedix/tools/arm-linux/bin/ld: warning: libjpeg.so.62, needed by /opt/Qtopia/sharp/lib/libqte.so, not found (try using -rpath or -rpath-link)
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_read_scanlines'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_set_defaults'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_start_decompress'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_destroy_decompress'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_std_error'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_CreateDecompress'
/opt/Qtopia/sharp/lib/libqtopia.so: undefined reference to `uuid_generate'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_read_header'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_start_compress'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_destroy_compress'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_finish_decompress'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_resync_to_restart'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_CreateCompress'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_finish_compress'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_set_quality'
/opt/Qtopia/sharp/lib/libqte.so: undefined reference to `jpeg_write_scanlines'
collect2: ld returned 1 exit status
make: *** [example] Error 1


However, I do have libuuid.so.1 in /lib and also in /opt/Qtopia/sharp/lib and libjpeg.so.62 in /usr/lib and /opt/Qtopia/sharp/lib. Did I miss something? Thanks in advance.
Mickeyl
you need to link against the missing libraries, i.e. supply -ljpeg and -luuid to the linking command line.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.