Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Build Qt creator 3.4 on pi 2 [RESOLVED]
QtWS25 Last Chance

Build Qt creator 3.4 on pi 2 [RESOLVED]

Scheduled Pinned Locked Moved QtonPi
qt creatorraspberryqt5.5building qt
17 Posts 4 Posters 10.0k 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
    modjo756
    wrote on 6 Jun 2015, 20:05 last edited by
    #5

    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 ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      modjo756
      wrote on 9 Jun 2015, 21:36 last edited by
      #6

      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 !

      F 1 Reply Last reply 14 Jul 2015, 12:09
      0
      • M Offline
        M Offline
        modjo756
        wrote on 9 Jun 2015, 21:45 last edited by
        #7

        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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          modjo756
          wrote on 11 Jun 2015, 19:27 last edited by
          #8

          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)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 11 Jun 2015, 21:14 last edited by SGaist 6 Dec 2015, 20:50
            #9

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

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              modjo756
              wrote on 12 Jun 2015, 20:46 last edited by
              #10

              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 ...) ?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 12 Jun 2015, 20:58 last edited by
                #11

                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

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  modjo756
                  wrote on 12 Jun 2015, 21:31 last edited by
                  #12

                  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 ?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 12 Jun 2015, 23:10 last edited by
                    #13

                    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.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      modjo756
                      wrote on 16 Jun 2015, 11:47 last edited by
                      #14

                      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 !!!

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 16 Jun 2015, 21:01 last edited by
                        #15

                        You can disable the welcome plugin when starting Qt Creator

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • M modjo756
                          9 Jun 2015, 21:36

                          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 !

                          F Offline
                          F Offline
                          FlorianB
                          wrote on 14 Jul 2015, 12:09 last edited by
                          #16

                          @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

                          R 1 Reply Last reply 7 Oct 2015, 20:15
                          0
                          • F FlorianB
                            14 Jul 2015, 12:09

                            @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

                            R Offline
                            R Offline
                            rajeeja
                            wrote on 7 Oct 2015, 20:15 last edited by
                            #17
                            This post is deleted!
                            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