Results 1 to 3 of 3

Thread: libc.so linking issues when compiling.

  1. #1
    Join Date
    Jan 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default libc.so linking issues when compiling.

    Attached find make.txt. This command is generated from the MakeFile, which of course is generated from qmake.

    Below is the error I'm receiving

    Qt Code:
    1. /usr/lib/gcc/arm-linux-gnueabi/4.4.5/../../../../arm-linux-gnueabi/bin/ld: warning: libc.so, needed by /usr/arm-linux-gnueabi/lib/libgcc_s.so.1, not found (try using -rpath or -rpath-link)
    2. /usr/local/Trolltech/QtEmbedded-4.7.2-arm/lib/libQtGui.so: undefined reference to `powf@GLIBCXX_3.4'
    3. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

    The error seems obvious, the undefined references correspond to a library that can't be found. But it is located in /usr/arm-linux-gnueabi/lib.

    I'm not sure if the issue is specific to cross-compiling as I've never encountered this before.

    I was able to overcome a similar issue with ts by adding

    Qt Code:
    1. QMAKE_RPATHDIR += /path/to/tslib/dir
    To copy to clipboard, switch view to plain text mode 

    but I can't seem to overcome this problem with the same solution, I have tried adding an additional directive to the location of libc.so with no success.

    Does anyone have any suggestions?
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,716
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: libc.so linking issues when compiling.

    is libc.so in your LD_LIBRARY_PATH?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jan 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: libc.so linking issues when compiling.

    Quote Originally Posted by high_flyer View Post
    is libc.so in your LD_LIBRARY_PATH?

    The x86 libc.so is in my library path. The ARM lib.so path was added both via LIBS += -L, and QMAKE_RPATHDIR +=

Similar Threads

  1. Replies: 3
    Last Post: 1st September 2011, 08:04
  2. Rpath linking issues in qtcreator
    By Droplet in forum General Programming
    Replies: 1
    Last Post: 8th July 2011, 00:15
  3. Static Linking Ordering Issues
    By SneakyPeterson in forum Newbie
    Replies: 1
    Last Post: 11th June 2010, 12:51
  4. QT Creator Linking issues
    By sgrant327 in forum Qt Programming
    Replies: 14
    Last Post: 16th December 2009, 16:42
  5. issues compiling Qt4.1 with mysql
    By patcito in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2006, 23:41

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.