Author Topic: Qtopia Example Compile Error  (Read 4757 times)

unplug

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Qtopia Example Compile Error
« on: June 21, 2005, 11:28:09 am »
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: [Select]
:
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.
« Last Edit: June 21, 2005, 11:29:03 am by unplug »
SHARP SL-6000L
Sharp ROM
pdaXrom
1GB SD
2 x 512MB CF
HAiCom HI-303S

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Qtopia Example Compile Error
« Reply #1 on: June 21, 2005, 11:34:29 am »
you need to link against the missing libraries, i.e. supply -ljpeg and -luuid to the linking command line.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.