Results 1 to 4 of 4

Thread: Undefined reference with Qt 4.8.6 and Intel icc

  1. #1
    Join Date
    Jul 2016
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Undefined reference with Qt 4.8.6 and Intel icc

    I upgraded to Qt 4.8.6 and compiled on Ubuntu 14.04 and Intel icc - this time I get undefined references . I do have libpng1.6.18 installed under /usr/local/lib and it is there on my LD_LIBRARY_PATH.

    Any suggestions ?


    cd src/gui/ && make -f Makefile
    make[1]: Entering directory `/home/qt-everywhere-opensource-src-4.8.6/src/gui'
    rm -f libQtGui.so.4.8.6 libQtGui.so libQtGui.so.4 libQtGui.so.4.8
    i
    .obj/release-shared/qpnghandler.o: In function `QPNGImageWriter::writeImage(QImage const&, int, QString const&, int, int)':
    image/qpnghandler.cpp.text+0x207): undefined reference to `png_set_longjmp_fn'
    .obj/release-shared/qpnghandler.o: In function `QPngHandlerPrivate::readPngImage(QImage*)':
    image/qpnghandler.cpp.text+0x1c20): undefined reference to `png_set_longjmp_fn'
    .obj/release-shared/qpnghandler.o: In function `QPngHandlerPrivate::readPngHeader()':
    image/qpnghandler.cpp.text+0x212d): undefined reference to `png_set_longjmp_fn'
    make[1]: *** [../../lib/libQtGui.so.4.8.6] Error 1
    make[1]: Leaving directory `/home/qt-everywhere-opensource-src-4.8.6/src/gui'
    make: *** [sub-gui-make_default-ordered] Error 2

  2. #2
    Join Date
    Jul 2016
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Undefined reference with Qt 4.8.6 and Intel icc

    This is how I ran it - ./configure --platform=linux-icc-64 -system-libpng

    and then typed make.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Undefined reference with Qt 4.8.6 and Intel icc

    Look at the linker line in your compiler output.
    Does it contain "-L /usr/local/lib"?

    LD_LIBRARY_PATH is irrelevant here, it is input for the runtime linker "ld".

    Cheers,
    _

  4. #4
    Join Date
    Jul 2016
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Undefined reference with Qt 4.8.6 and Intel icc

    Success !
    I got this to compile !

    ./configure --platform=linux-icc-64 -qt-libpng and it worked.

Similar Threads

  1. Undefined reference
    By eekhoorn12 in forum Qt Programming
    Replies: 2
    Last Post: 6th January 2011, 15:45
  2. undefined reference
    By digidas in forum Newbie
    Replies: 9
    Last Post: 19th May 2010, 13:04
  3. Undefined reference to crt
    By derektaprell in forum Installation and Deployment
    Replies: 0
    Last Post: 20th October 2009, 08:34
  4. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 12:14
  5. Undefined reference
    By Salazaar in forum Newbie
    Replies: 12
    Last Post: 23rd May 2007, 10:21

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.