Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt giving the ld error
Forum Updated to NodeBB v4.3 + New Features

Qt giving the ld error

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 6.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nilesh Prakash Kokane
    wrote on last edited by
    #1

    Hi ,

    Based on the url http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard

    bitbake core-image-minimal and bitbake meta-toolchain-qt5

    Both gave me success.

    But after setting the qt creator and running the example clocks code its giving me the ld errors as follows

    09:41:15: Running steps for project clocks...

    09:41:15: Configuration unchanged, skipping qmake step.

    09:41:15: Starting: "/usr/bin/make"

    arm-linux-gnueabi-g++ -o clocks main.o qrc_clocks.o -L/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib -lQt5Quick -lQt5Qml -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lpthread

    /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find /lib/libpthread.so.0 inside

    /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find /usr/lib/libpthread_nonshared.a inside

    collect2: error: ld returned 1 exit status

    make: *** [clocks] Error 1

    09:41:15: The process "/usr/bin/make" exited with code 2.

    Error while building/deploying project clocks (kit: wandboard)

    When executing step 'Make'

    09:41:15: Elapsed time: 00:00.

    I've assuared that the set up in the Configure Qt creators OK , but its still giving the error.

    can you suggest me for that.

    Nilesh Kokane

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hpollak
      wrote on last edited by
      #2

      I think you have a problem with your LIB-Path.

      The Linker tries to find the pthread-Libs in "/lib" but you are using a arm envirement, so try to find the libs for arm in your toolchane and add
      @LIBS += -L/where_your_toolchane_libs_are -lpthread....@
      in your .pro file.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nilesh Prakash Kokane
        wrote on last edited by
        #3

        i just included * in the .pro file but even then its throwing me thw errors as follows

        11:55:09: Running steps for project clocks...
        11:55:09: Configuration unchanged, skipping qmake step.
        11:55:09: Starting: "/usr/bin/make"
        /opt/poky/1.6.1/sysroots/i686-pokysdk-linux/usr/bin/qt5/qmake -spec /opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-arm-gnueabi-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ../clocks/clocks.pro
        arm-linux-gnueabi-g++ -o clocks main.o qrc_clocks.o -L/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib/ -L/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib -lQt5Quick -lQt5Qml -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lpthread
        /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find /lib/libpthread.so.0 inside
        /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find /usr/lib/libpthread_nonshared.a inside
        collect2: error: ld returned 1 exit status
        make: *** [clocks] Error 1
        11:55:09: The process "/usr/bin/make" exited with code 2.
        Error while building/deploying project clocks (kit: wandboard)
        When executing step 'Make'
        11:55:09: Elapsed time: 00:00

        (*LIBS += -L/opt/poky/1.6.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib/)

        Please suggest

        Nilesh Kokane

        1 Reply Last reply
        0
        • N Offline
          N Offline
          Nilesh Prakash Kokane
          wrote on last edited by
          #4

          Hello

          My settings are as follows

          1.The qt compiler setting is posted
          http://picpaste.com/DSC_0029-Z4H0ho2Y.jpg

          2)Th qt version http://picpaste.com/DSC_0028-Q8tV8259.jpg

          3.qt mk specs here http://picpaste.com/DSC_0030-QXGHGWTh.jpg

          but that is giving me ld error.

          can any one tell me whats wrong in the setting.?

          I probabily guess the qt mk specs ...caan you specify what exactly to feed there?

          Nilesh Kokane

          1 Reply Last reply
          0
          • N Offline
            N Offline
            Nilesh Prakash Kokane
            wrote on last edited by
            #5

            waiting for reply

            Nilesh Kokane

            1 Reply Last reply
            0
            • N Offline
              N Offline
              Nilesh Prakash Kokane
              wrote on last edited by
              #6

              please if any one can help me

              Nilesh Kokane

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved