[SOLVED] Problem with building Qt5 beta for arm



  • Hi,

    That’s my configure:
    ./configure -opensource -confirm-license -no-opengl -xplatform linux-arm-gnueabi-g++

    I get the error:
    arm-none-linux-gnueabi-g++ -Wl,--no-undefined -Wl,-O1 -Wl,-rpath-link,/home/user/Qt/qt-everywhere-opensource-src-5
    /........................................
    .........................................
    ........................................./
    .obj/release-shared/moc_qgraphicseffect.o .obj/release-shared/moc_qgraphicseffect_p.o .obj/release-shared/moc_qpixmapfilter_p.o -L/home/user/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/lib -lQtGui -lQtCore -lpthread -lGL
    /home/user/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lGL
    collect2: ld returned 1 exit status
    make[3]: *** [../../lib/libQtWidgets.so.5.0.0] Error 1
    make[3]: /home/user/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/src/widgets' make[2]: *** [sub-widgets-make_first] Error 2 make[2]:/home/user/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: `/home/user/Qt/qt-everywhere-opensource-src-5.0.0/qtbase'
    make: *** [module-qtbase-make_first] Ошибка 2

    What is -lGL ???

    Best regards



  • -lGL is an linker command to link with libGL.so*
    Qt5 is still in development and unstable. You can try to edit Makefile in /home/user/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/src/widgets and erase references to -lGL. No idea if you can build successfully after that.



  • Thank you! I erased all references to -lGL in all makefile's. Build is still good :)



  • If your problem is solved, please add "[SOLVED]" prefix left to the topic subject. Thanks!



  • I don't think it's a good solution to delete it from the makefiles.
    Why not just install the libraries?
    @sudo apt-get install libglu1-mesa-dev -y@



  • Why not to read the posts first?

    1. Topic is solved.
    2. hi didn't want openGL support(see -no-opengl flag in configuration string)
    3. it was an beta version of Qt5 and the configuration was bugy
    4. Are you sure he was doing it on ubuntu/debian derivate?

    But all this list isn't important because your suggestion wouldn't help at all: he was doing cross-compilation.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.