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. Native QT compilation on Raspberry Pi 2
QtWS25 Last Chance

Native QT compilation on Raspberry Pi 2

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
raspberry piraspberry pi 2buildinstallnative
6 Posts 4 Posters 3.6k Views
  • 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.
  • M Offline
    M Offline
    moogle42
    wrote on last edited by
    #1

    I'm using the following guide to install QT on the raspberry Pi 2:

    https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

    I have successfully run the configure and make commands with no errors. I am now trying to run make install but this fails giving the following error:

    /usr/bin/ld.gold: error: cannot find -lpoly2tri
    collect2: error: ld returned 1 exit status
    Makefile:272: recipe for target '../../../qml/QtLocation/libdeclarative_location.so' failed
    make[4]: *** [../../../qml/QtLocation/libdeclarative_location.so] Error 1
    make[4]: Leaving directory '/home/pi/opt/qt5/qtlocation/src/imports/location'
    Makefile:80: recipe for target 'sub-location-install_subtargets' failed
    make[3]: *** [sub-location-install_subtargets] Error 2
    make[3]: Leaving directory '/home/pi/opt/qt5/qtlocation/src/imports'
    Makefile:135: recipe for target 'sub-imports-install_subtargets' failed
    make[2]: *** [sub-imports-install_subtargets] Error 2
    make[2]: Leaving directory '/home/pi/opt/qt5/qtlocation/src'
    Makefile:56: recipe for target 'sub-src-install_subtargets' failed
    make[1]: *** [sub-src-install_subtargets] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt5/qtlocation'
    Makefile:549: recipe for target 'module-qtlocation-install_subtargets' failed
    make: *** [module-qtlocation-install_subtargets] Error 2

    Any suggestions/advice on how to proceed is appreciated, thanks!

    1 Reply Last reply
    0
    • David.GD Offline
      David.GD Offline
      David.G
      wrote on last edited by
      #2

      It seems a new dependency has been added called poly2tri (library)
      https://code.google.com/p/poly2tri/ (check if your distribution provides poly2tri and install the development files)

      Compile/install the library should do the trick, hopefully.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        moogle42
        wrote on last edited by
        #3

        I wasn't able to find development files for the raspbian distribution that I am using for poly2tri.

        I notice in the lib folder that the code should be searching in that there is a relevant poly2tri library file:
        /home/pi/opt/qt5/qtlocation/lib/libpoly2tri.prl

        Is there some way of making the code see this library?
        I notice that this similar issue has been seen in the past:

        https://bugreports.qt.io/browse/QTBUG-43006

        Is there some other way of solving this?

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          In the bug ticket: "Fix Version/s: 5.4.1"
          Which Qt version are you trying to install?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            moogle42
            wrote on last edited by
            #5

            I'm trying to install QT 5.6.0.

            1 Reply Last reply
            0
            • a_merelloA Offline
              a_merelloA Offline
              a_merello
              wrote on last edited by
              #6

              Were you able to solve this issue? I ran into the same problem on a Virtual Machine with Ubuntu Server 14.04

              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