Cross-compiling Qt Embedded 5.5 for Raspberry Pi 2

Sysprogs forums Forums VisualGDB Cross-compiling Qt Embedded 5.5 for Raspberry Pi 2

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7204
    Heinrich
    Participant

    Hi I need help

    I’m using the following tutorial http://visualgdb.com/tutorials/raspberry/qt/embedded/

    But at step 16 I get the following error
    <div>The OpenGL ES 2.0 functionality test failed!</div>
    <div> Use of pkg-config is not enabled, maybe you want to pass -force-pkg-config?</div>
    <div> You might need to modify the include and library search paths by editing</div>
    <div> QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in</div>
    <div> c:/download/qt-everywhere-<wbr />opensource-src-5.5.0/qtbase/<wbr />mkspecs/devices/linux-ras</div>
    <div>p-pi2-g++.</div>
    <div></div>
    <div>I have done everything to the letter please help me</div>

    #7210
    kiloupyn
    Participant

    Hello,

     

    I have exactly the same problem. My OS is Windows 10 64 bit and I follow the same tutorial.

     

    Regards

    #7212
    Heinrich
    Participant

    Hi man,

    I found a work around to compile qt5 on the Pi, with visualdbg. Hopes this helps

    1. Download new VisualGDB (windows machine)
    2. sudo apt-get update (on pi)
    3. sudo apt-get install qtdeclarative5-dev (on pi)
    4. edit \etc\ld.so.conf (reference https://sysprogs.com/w/fixing-rpath-link-issues-with-cross-compilers/)

    /opt/vc/lib

    /lib/arm-linux-gnueabihf
    /usr/lib/arm-linux-gnueabihf

    /usr/local/lib

    1. Now in visual studio start new Linux project
    2. Use Qt
    3. Project template = A QT-based application
    4. Build the project locally with cross-compiler
    5. Synchronize headers and libraries add /opt and /etc
    6. Configure QT settings =

    Qt version 5.x

    MKspecs directory /usr/lib/arm-linux-gnueabihf/qt5/mkspecs

    Should work, let me know

     

    • This reply was modified 9 years ago by Heinrich.
    #7217
    support
    Keymaster

    Hi All,

    Normally you don’t need to install any new packages on your Pi as long as your ld.so.conf is set correctly and the /opt/vc directory is synchronized.

    We have added troubleshooting instructions to the step 16 of the tutorial: http://visualgdb.com/tutorials/raspberry/qt/embedded/

    Let us know if you run into further problems.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.