Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Raspberry Cross Compile error building QTbase, no libraries found

Raspberry Cross Compile error building QTbase, no libraries found

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 3 Posters 2.2k 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.
  • F Offline
    F Offline
    Fransebas
    wrote on last edited by Fransebas
    #1

    Hi, I want to make an application for my raspberry pi 3 and I was following the instruction on this page https://wiki.qt.io/RaspberryPi2EGLFS, and fails on the command:

    ./configure -release -opengl es2 -device linux-rasp-pi2-g++ \
    -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- \
    -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs \
    -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
    

    It prompt the error;

    error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
    

    And because of that a lot of libraries can't be found like <GLES2/gl2.h> or <pulse/pulseaudio.h> and many others.
    I followed all the previous steps, any suggestion on what I do wrong?.

    I'm using ubuntu 16 on a 64 bit computer.

    If you want more info please ask.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Here is a link to the referenced bugreport QTBUG-36129
      You should be able to log on to JIRA with your forum credentials.

      Apparently the bug has been closed with Qt5.3.0 RC1. Which version of Qt are you using?

      Vote the answer(s) that helped you to solve your issue(s)

      F 1 Reply Last reply
      0
      • K koahnig

        Here is a link to the referenced bugreport QTBUG-36129
        You should be able to log on to JIRA with your forum credentials.

        Apparently the bug has been closed with Qt5.3.0 RC1. Which version of Qt are you using?

        F Offline
        F Offline
        Fransebas
        wrote on last edited by
        #3

        @koahnig I'm using 5.7

        A 1 Reply Last reply
        0
        • F Fransebas

          @koahnig I'm using 5.7

          A Offline
          A Offline
          ambershark
          wrote on last edited by
          #4

          @Fransebas Does your pi sysroot directory contain the libs you need? If not that is why it can't find them. You need to have those libraries installed for your Pi.

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          F 1 Reply Last reply
          0
          • A ambershark

            @Fransebas Does your pi sysroot directory contain the libs you need? If not that is why it can't find them. You need to have those libraries installed for your Pi.

            F Offline
            F Offline
            Fransebas
            wrote on last edited by
            #5

            @ambershark But isn't that the reason why we use the sysroot to later synchronize? I mean isn't this process first compile in my computer and then I send the result, so the libraries should be in my computer.

            A 1 Reply Last reply
            0
            • F Fransebas

              @ambershark But isn't that the reason why we use the sysroot to later synchronize? I mean isn't this process first compile in my computer and then I send the result, so the libraries should be in my computer.

              A Offline
              A Offline
              ambershark
              wrote on last edited by ambershark
              #6

              @Fransebas said in Raspberry Cross Compile error building QTbase, no libraries found:

              @ambershark But isn't that the reason why we use the sysroot to later synchronize? I mean isn't this process first compile in my computer and then I send the result, so the libraries should be in my computer.

              Right but somewhere on your system you need to have the libraries that are built for Pi architecture in order to build. In this case GLES and pulseaudio. But there will be others as well.

              Also this may help you set up your environment to build properly:

              http://visualgdb.com/tutorials/raspberry/qt/embedded/

              Step #6 is the key to getting libs/headers you need from the Pi onto your build system.

              My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

              F 1 Reply Last reply
              0
              • A ambershark

                @Fransebas said in Raspberry Cross Compile error building QTbase, no libraries found:

                @ambershark But isn't that the reason why we use the sysroot to later synchronize? I mean isn't this process first compile in my computer and then I send the result, so the libraries should be in my computer.

                Right but somewhere on your system you need to have the libraries that are built for Pi architecture in order to build. In this case GLES and pulseaudio. But there will be others as well.

                Also this may help you set up your environment to build properly:

                http://visualgdb.com/tutorials/raspberry/qt/embedded/

                Step #6 is the key to getting libs/headers you need from the Pi onto your build system.

                F Offline
                F Offline
                Fransebas
                wrote on last edited by
                #7

                @ambershark Thanks thats probably the problem thanks

                A 1 Reply Last reply
                0
                • F Fransebas

                  @ambershark Thanks thats probably the problem thanks

                  A Offline
                  A Offline
                  ambershark
                  wrote on last edited by
                  #8

                  @Fransebas said in Raspberry Cross Compile error building QTbase, no libraries found:

                  @ambershark Thanks thats probably the problem thanks

                  No problem.. I have never done development for Pi, so let me know how that goes and whether it fixes it or not. I have done ARM development though and the problems/solutions are similar. :)

                  My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                  F 1 Reply Last reply
                  0
                  • A ambershark

                    @Fransebas said in Raspberry Cross Compile error building QTbase, no libraries found:

                    @ambershark Thanks thats probably the problem thanks

                    No problem.. I have never done development for Pi, so let me know how that goes and whether it fixes it or not. I have done ARM development though and the problems/solutions are similar. :)

                    F Offline
                    F Offline
                    Fransebas
                    wrote on last edited by
                    #9

                    @ambershark =0 I finally made it, thanks!!! I don't actually use the link you post because it's all on windows and don't use window but I made a mistake in the analogous step 6 in the guide for ubuntu

                    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