Results 1 to 9 of 9

Thread: Qt-embedded link failure: undefined reference

Hybrid View

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

    Default Re: Qt-embedded link failure: undefined reference

    But without -L I am not sure it is considered as lib search path.
    Try
    -L../tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib
    I tried the same build for x86 platform with Qt creator.
    Just checking: you built these libs for your current target too, right?
    ==========================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.

  2. #2
    Join Date
    Sep 2012
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt-embedded link failure: undefined reference

    Quote Originally Posted by high_flyer View Post
    But without -L I am not sure it is considered as lib search path.
    Try
    -L../tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib

    Just checking: you built these libs for your current target too, right?
    You see -L is there -L/home/tang/Projects/OE/build/Aips/../tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib.
    I build for beagleboard. To figure out, I tried my build and libraries on x86 platform. But if I put gst_init() of gstreamer-0.10.so in my code. It has no problem.

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

    Default Re: Qt-embedded link failure: undefined reference

    To figure out, I tried my build and libraries on x86 platform. But if I put gst_init() of gstreamer-0.10.so in my code. It has no problem.
    Do you only copy the libs between the platforms, or do you build them for each platform?
    ==========================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.

  4. #4
    Join Date
    Sep 2012
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt-embedded link failure: undefined reference

    Quote Originally Posted by high_flyer View Post
    Do you only copy the libs between the platforms, or do you build them for each platform?
    I build them for different platform in different environment.

Similar Threads

  1. undefined reference
    By deepakswaroop in forum Newbie
    Replies: 1
    Last Post: 2nd March 2011, 06:46
  2. Replies: 3
    Last Post: 18th December 2010, 14:55
  3. Replies: 3
    Last Post: 13th November 2010, 08:06
  4. Qt/Embedded installation Failure
    By rakesh619 in forum Installation and Deployment
    Replies: 3
    Last Post: 15th August 2010, 14:57
  5. QCreator - undefined reference link errors
    By stodge in forum Newbie
    Replies: 2
    Last Post: 5th April 2009, 14:07

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
  •  
Qt is a trademark of The Qt Company.