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]
Forum Updated to NodeBB v4.3 + New Features

Build Qt creator 3.4 on pi 2 [RESOLVED]

Scheduled Pinned Locked Moved QtonPi
qt creatorraspberryqt5.5building qt
17 Posts 4 Posters 10.1k Views 2 Watching
  • 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 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
    • S Offline
      S 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
        • S Offline
          S 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
            • S Offline
              S 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
                • S Offline
                  S 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