Build Qt creator 3.4 on pi 2 [RESOLVED]



  • I have build qt 5.5 on my raspberry pi 2 (on the card, no cross compil) and it work's fine. Now i'm trying to build qtcreator (3.4.81) but when i'm trying qmake to build it i obtained this error :

    Reading /home/pi/opt/qt-creator-master/src/plugins/designer/designer.pro [/home/pi/opt/qt-creator-master/qt-creator-build/src/plugins/designer]
    Project ERROR: Unknown module(s) in QT: designer designercomponents-private

    I'm trying this same problem but it didn't work !

    Do you know how i can resolve this ?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Do you have the qttools module built ?



  • Hi, i'm not sure that qttools is build, how i can check this ?


  • Lifetime Qt Champion

    Check the content of the bin folder and see if you can find designer in there



  • In my usr/local/qt5/bin i have this :

    *qdbuscpp2xml qml qtdiag xmlpatterns
    lconvert qdbusviewer qmlimportscanner qtpaths xmlpatternsvalidator
    lrelease qdbusxml2cpp qmllint qtplugininfo
    lupdate qdoc qmlmin rcc
    moc qlalr qmlscene syncqt.pl
    qdbus qmake qmltestrunner uic

    and in my local folder (use to build qt) , /home/pi/opt/qt5/qttools/bin :

    lconvert lrelease lupdate qdbus qdbusviewer qtdiag qtpaths qtplugininfo

    i don't have designer ! Do you know how i can proceed ?



  • i make some progress, i had build designer (need to build lib folder first in qt5/qttools/src/designer/src/). After that i retry a qmake and make. After a certain time i had this error :

    ../3rdparty/botan/botan.cpp:46208:21: fatal error: cpuid.h: No such file or directory
    compilation terminated.
    .
    .
    .
    Makefile:4294: recipe for target '.obj/release-shared/botan.o' failed
    make[3]: *** [.obj/release-shared/botan.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[3]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs/ssh'
    Makefile:285: recipe for target 'sub-ssh-make_first' failed
    make[2]: *** [sub-ssh-make_first] Error 2
    make[2]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs'
    Makefile:45: recipe for target 'sub-libs-make_first-ordered' failed
    make[1]: *** [sub-libs-make_first-ordered] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt-creator-master/src'
    Makefile:43: recipe for target 'sub-src-make_first-ordered' failed
    make: *** [sub-src-make_first-ordered] Error 2

    I found this thread about this bug :
    here

    and the solution :

    here

    I have downloaded botan.cpp and botan.h and replace them in qt-creator-master/src/libs/3rdparty/botan.

    Then i re-launch make, and now i have this error :

    ln -s libQtcSsh.so.1.0.0 libQtcSsh.so
    ln -s libQtcSsh.so.1.0.0 libQtcSsh.so.1
    ln -s libQtcSsh.so.1.0.0 libQtcSsh.so.1.0
    rm -f ../../../lib/qtcreator/libQtcSsh.so.1.0.0
    mv -f libQtcSsh.so.1.0.0 ../../../lib/qtcreator/
    rm -f ../../../lib/qtcreator/libQtcSsh.so
    rm -f ../../../lib/qtcreator/libQtcSsh.so.1
    rm -f ../../../lib/qtcreator/libQtcSsh.so.1.0
    mv -f libQtcSsh.so ../../../lib/qtcreator/
    mv -f libQtcSsh.so.1 ../../../lib/qtcreator/
    mv -f libQtcSsh.so.1.0 ../../../lib/qtcreator/
    make[3]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs/ssh'
    make[2]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs'
    Makefile:45: recipe for target 'sub-libs-make_first-ordered' failed
    make[1]: *** [sub-libs-make_first-ordered] Error 2
    make[1]: Leaving directory '/home/pi/opt/qt-creator-master/src'
    Makefile:43: recipe for target 'sub-src-make_first-ordered' failed
    make: *** [sub-src-make_first-ordered] Error 2

    HELP please !



  • See this error, i'm trying to build manually libs, but i had this error :

    shellcommand.cpp:88:84: sorry, unimplemented: non-static data member initializers
    shellcommand.cpp:88:84: error: in-class initialization of static data member ‘m_proxyFactory’ of non-literal type
    shellcommand.cpp: In member function ‘virtual Utils::SynchronousProcessResponse Utils::ShellCommand::runCommand(const Utils::FileName&, const QStringList&, int, Utils::ExitCodeInterpreter
    )’:
    shellcommand.cpp:320:42: error: ‘class Utils::Internal::ShellCommandPrivate’ has no member named ‘m_proxyFactory’
    shellcommand.cpp: In member function ‘Utils::SynchronousProcessResponse Utils::ShellCommand::runSynchronous(const Utils::FileName&, const QStringList&, int, Utils::ExitCodeInterpreter
    )’:
    shellcommand.cpp:401:42: error: ‘class Utils::Internal::ShellCommandPrivate’ has no member named ‘m_proxyFactory’
    shellcommand.cpp: In member function ‘virtual bool Utils::ShellCommand::runFullySynchronous(const Utils::FileName&, const QStringList&, int, QByteArray
    , QByteArray*)’:
    shellcommand.cpp:463:42: error: ‘class Utils::Internal::ShellCommandPrivate’ has no member named ‘m_proxyFactory’
    shellcommand.cpp: In member function ‘void Utils::ShellCommand::setOutputProxyFactory(const std::functionUtils::OutputProxy*()&)’:
    shellcommand.cpp:527:8: error: ‘class Utils::Internal::ShellCommandPrivate’ has no member named ‘m_proxyFactory’
    Makefile:8457: recipe for target '.obj/release-shared/shellcommand.o' failed
    make[1]: [.obj/release-shared/shellcommand.o] Error 1
    make[1]: Waiting for unfinished jobs....
    make[1]: Leaving directory '/home/pi/opt/qt-creator-master/src/libs/utils'
    Makefile:106: recipe for target 'sub-utils-make_first' failed
    make: [sub-utils-make_first] Error 2***

    and if i try to build utils :

    i obtained this :
    Makefile:8457: recipe for target '.obj/release-shared/shellcommand.o' failed
    make: *** [.obj/release-shared/shellcommand.o] Error 1
    make: *** Waiting for unfinished jobs....
    In file included from filesearch.cpp:31:0:
    filesearch.h:106:23: error: expected ‘;’ at end of member declaration
    filesearch.h:106:29: error: ‘override’ does not name a type
    filesearch.h:107:27: error: expected ‘;’ at end of member declaration
    filesearch.h:107:33: error: ‘override’ does not name a type
    filesearch.h:110:35: error: expected ‘;’ at end of member declaration
    filesearch.h:110:37: error: ‘override’ does not name a type
    filesearch.h:111:28: error: expected ‘;’ at end of member declaration
    filesearch.h:111:34: error: ‘override’ does not name a type
    filesearch.h:112:31: error: expected ‘;’ at end of member declaration
    filesearch.h:112:37: error: ‘override’ does not name a type
    filesearch.h:113:36: error: expected ‘;’ at end of member declaration
    filesearch.h:113:42: error: ‘override’ does not name a type
    filesearch.h:128:23: error: expected ‘;’ at end of member declaration
    filesearch.h:128:29: error: ‘override’ does not name a type
    filesearch.h:129:27: error: expected ‘;’ at end of member declaration
    filesearch.h:129:33: error: ‘override’ does not name a type
    filesearch.h:132:35: error: expected ‘;’ at end of member declaration
    filesearch.h:132:37: error: ‘override’ does not name a type
    filesearch.h:133:28: error: expected ‘;’ at end of member declaration
    filesearch.h:133:34: error: ‘override’ does not name a type
    filesearch.h:134:31: error: expected ‘;’ at end of member declaration
    filesearch.h:134:37: error: ‘override’ does not name a type
    filesearch.h:135:36: error: expected ‘;’ at end of member declaration
    filesearch.h:135:42: error: ‘override’ does not name a type
    Makefile:9170: recipe for target '.obj/release-shared/filesearch.o' failed
    make: *** [.obj/release-shared/filesearch.o] Error 1



  • today i have make another progress ! i downloaded qt creator 3.4.1 (before i take master branch). Replace botan.c and header and after many hours hours qt creator build successful !!!
    New problem, now when i launch qtcreator since terminal i have this message :

    pi@raspberrypi ~/opt/qt-creator-opensource-src-3.4.1/bin $ ./qtcreator
    [9;0]Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    No tool chain set from kit "Desktop".
    No tool chain set from kit "Desktop".
    EGLFS: OpenGL windows cannot be mixed with others.
    Aborted

    Same question, do you have a solution ? Do i need to use qtwayland to use qt app (like qt creator)


  • Lifetime Qt Champion

    Are you running an X server on your raspberry pi 2 ?



  • I don't know, i had just downloaded the last debian image last week and no modification for the desktop ! If i understand i can't use more than one windows with eglfs, and it must full screen ? If i want to use X11, i need xcb plugin but i don't know if i have it, and there is no opengl support on it ? Perhaps the better solution is to use wayland ? Do you know lxQt (but for the moment no support for arm platform ...) ?


  • Lifetime Qt Champion

    If you are running a desktop on your Pi 2 then you're likely running an X server. For the eglfs part, you can only have one top level window and the first one is forced to be fullscreen, then you can have several non-toplevel widgets. What you can't have is several GUI application running at the same time.

    I can't tell if you have the xcb plugin, I don't know the configure options you used.

    It depends on your application needs.

    I've heard of it but it's been some times since I last read about it



  • Thank's for your help. i also tried to launch qtcreator with no desktop start (startx) at the login but i have the same error ... How i can set QT_QPA_EGLFS_PHYSICAL_WIDTH and Height ? For this error : No tool chain set from kit "Desktop", it's important to correct it or it's just a warning that i can resolve later ?


  • Lifetime Qt Champion

    export QT_QPA_EGLFS_PHYSICAL_WIDTH=XXX

    The no tool chain error means that either you don't have a compiler installed, or Qt Creator didn't find one, in any case, it doesn't influence the startup of Qt Creator.



  • If i do this : ./qtcreator -platform xcb i can launch qt creator and use it !!! It just have a problem when i am on welcome index, i have this error, i don't know if i can resolve it. But for the rest, all is fine !!!

    version
    kit
    designer

    Now i can make my app directly on my raspberry2 !!!


  • Lifetime Qt Champion

    You can disable the welcome plugin when starting Qt Creator



  • @modjo756

    to my experience you not only have to manually make and make install the lib folder in qt5/qttools/src/designer/src/ but also the components folder, as the content of this folder generates libQt5DesignerComponents library



  • This post is deleted!


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