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. Qt5.1 on Rasberry Pi (full install not cross-compile)
Forum Updated to NodeBB v4.3 + New Features

Qt5.1 on Rasberry Pi (full install not cross-compile)

Scheduled Pinned Locked Moved QtonPi
93 Posts 24 Posters 119.2k 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.
  • R Offline
    R Offline
    RodriguesCunha
    wrote on last edited by
    #20

    Hi postmako.
    I wasn't using May 23rd version, i was using one older.
    I asked about .bashrc, because i couldn't find it, because it's a hidden file (at least in my version it's hidden).
    My installation was ok and i could run the cube example like you said.

    But now i have two other problems.
    I can't find the qtcreator exec in X windows.
    The second one is that i need to use qtserialport and when i tried to build the example project using terminal i get unknow module in Qt: serialport. Why is that? In my other machine, running Ubuntu, when i installed Qt5.1 all modules (including qtserialport) are installed.
    Can you help me with these 2 problems?

    Thanks for your time.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      postmako
      wrote on last edited by
      #21

      To get qtcreator follow these instructions but use your Qt5.1 instead of Qt4 like the instructions state: "http://www.raspberrypi.org/phpBB3/viewtopic.php?f=31&t=43545":http://www.raspberrypi.org/phpBB3/viewtopic.php?f=31&t=43545

      After you try that, please let me know if it works for you or not. I will probably try it if I find some time.

      I'm able to compile with QtSerialPort, could you post your source code and the "*.pro" file for it? If that looks good then I would like to see your "output" file from the compilation to see if something got missed or skipped over. It could also be that your older version of Raspbian doesn't support it. It's hard to say and maybe someone who is more informed than me could help you.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RodriguesCunha
        wrote on last edited by
        #22

        Hi.

        The instructions you told me, i think they will install for Qt4, because using

        • sudo apt-get install Qtcreator

        it will install Qt creator 2.5 (Qt4.8)
        but i will try it...

        Related to qserialport, i tried to build the example project enumerator and it gave me the error.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RodriguesCunha
          wrote on last edited by
          #23

          For qserialport i think i have to build the module.
          I will try qmake, make and make install for the module.

          For Qt creator 2.7 i think it will also have to be built, not exactly sure how.
          I will try to get it from git and after using also qmake, make and make install.
          Let's see how it goes...

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RodriguesCunha
            wrote on last edited by
            #24

            For qserialport i tried to build the module like i said in my previous post, it compiled the module but when i tried the example enumerator, i get as before, unknown module.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              postmako
              wrote on last edited by
              #25

              Please post your .pro file and make sure you have this line in it:
              QT += serialport

              Rerun qmake, then make.

              Also, you do NOT want to follow those instructions on Raspberry Pi. I just tried and couldn't get Qt5 to work with it because it installs QtCreator 2.5 and you need 2.6.1 to run Qt5.

              Compiling that for the Raspberry Pi seems like another good wiki.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                postmako
                wrote on last edited by
                #26

                I'm starting the build from git for version 2.8.0:

                @cd ~
                git clone git://gitorious.org/qt-creator/qt-creator.git
                cd qt-creator/
                qmake -r@

                I just ran this but getting an error:
                @...
                Reading /home/pi/qt-creator/src/plugins/fakevim/fakevim.pro
                Reading /home/pi/qt-creator/src/plugins/designer/designer.pro
                Project ERROR: Unknown module(s) in QT: designercomponents designer@

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  RodriguesCunha
                  wrote on last edited by
                  #27

                  Qserialport is already working.
                  I had forgot to do sudo make install.

                  Now Qt creator is another thing...
                  Looking at your previous post, it seems you might have to build and install that module...

                  Tomorrow (here its 2 a.m.) i will try it also.

                  Also, can you tell me how can i close the window when i run my app?
                  I get it fullscreen...

                  Thanks

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    RodriguesCunha
                    wrote on last edited by
                    #28

                    I tried what you did but i get a different error:

                    • Project ERROR: Unknown module(s) in QT: script
                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      postmako
                      wrote on last edited by
                      #29

                      Not sure on those unknown module errors. I'll have to look at them when I get more time.

                      Regarding the closing the app, if you are in the console Ctrl+Alt+Backspace works, Ctrl+C might work as well. In x-windows, I haven't figured out which key combo works but in your app you can add a this->close(); in the main window class wherever appropriate.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        RodriguesCunha
                        wrote on last edited by
                        #30

                        I'm now trying to compile and install qtscript module and after if i get your error i will do the same with qttools (it seems to be related to designer).

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          postmako
                          wrote on last edited by
                          #31

                          Yeah I was pretty sure mine compiled qttools because the .obj directory is populated (FYI - In Linux anytime a file or directory starts with a period (.), the file or directory will be hidden), but it still complains about designer. I ran qmake without the -r and then I'm running make now. Quite an experiment from two rather inexperienced Qt bit diddlers eh? I'm a software engineer by trade but this is the first time I've used Qt.

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            dawuss
                            wrote on last edited by
                            #32

                            Hi!
                            I am currently compiling qt as written in the wiki, but I had to leave the configuration file vanilla. When I applied the changes the configure script stopped telling me something about an unterminated string.
                            I hope the compilation will be finished on monday :o)
                            I also would like to use qt designer, so i somebody knows how to compile it I would be happy!

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              postmako
                              wrote on last edited by
                              #33

                              Just an FYI, if you don't manually make the changes to the configure script then it will not build PulseAudio, DBus, or some of the others.

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                RodriguesCunha
                                wrote on last edited by
                                #34

                                Hi postmako.

                                Did you had any luck on Qtcreator?
                                Mine first complainned about: unknown module: script.
                                I build and installed qtscript module. This error resolved.
                                Next try i got unknown module:declarative.
                                I build and installed qtdeclarative module and also qttools, but i still get unknown module: declarative.

                                As i can see it will be necessary to build and install some other modules...
                                The problem is that it's complainning about declarative but i already build and installed it...

                                Any ideas?

                                1 Reply Last reply
                                0
                                • P Offline
                                  P Offline
                                  postmako
                                  wrote on last edited by
                                  #35

                                  Sorry no, I need to learn more about this before getting any further as well.

                                  1 Reply Last reply
                                  0
                                  • R Offline
                                    R Offline
                                    RodriguesCunha
                                    wrote on last edited by
                                    #36

                                    The only info i found on the web states that declarative module was renamed to quick, but this was on Qtcreator 2.6....

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      dawuss
                                      wrote on last edited by
                                      #37

                                      [quote author="postmako" date="1375481184"]Just an FYI, if you don't manually make the changes to the configure script then it will not build PulseAudio, DBus, or some of the others.[/quote]

                                      THX for the hint. Somehow changing the file manually did not work, using the patch file didn“t work either:

                                      pi@raspberrypi ~/opt/qt5 $ patch -p0 < raspberry.patch
                                      patch: **** Only garbage was found in the patch input.

                                      Same when putting the patch file into the qtbase dir and calling patch there. I have no idea what the problem is.

                                      It would be nice if the patch file could be downloaded and the right "patch" command would be given. I used patches on the linux kernel 1000 times, but seems I an unable to get this little thing working here. :-/

                                      1 Reply Last reply
                                      0
                                      • P Offline
                                        P Offline
                                        postmako
                                        wrote on last edited by
                                        #38

                                        Click on my profile and send me your configure script, I'll try to see why yours is different.

                                        1 Reply Last reply
                                        0
                                        • R Offline
                                          R Offline
                                          RodriguesCunha
                                          wrote on last edited by
                                          #39

                                          Hi postmako.
                                          I still didn't managed to build Qtcreator.
                                          After build and install qtquick1 module the declarative error was resolved. But now i get the same you had: designercomponents designer.

                                          One other thing, is it possible when building an app, define it not to use opengl?

                                          My problem is that i want to show my app (running on RPi) on my laptop (not on monitor), using x11vnc and tightvncviewer. I get the same screen as pi, but i can't get the hdmi output because of opengl.
                                          Is there any way to do it, or should i build again Qt and in configure do not use -opengl es2?

                                          Thanks

                                          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