Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5 and QtCreator on Raspberry pi3
Qt 6.11 is out! See what's new in the release blog

Qt5 and QtCreator on Raspberry pi3

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 3 Posters 3.4k Views 3 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.
  • sajis997S Offline
    sajis997S Offline
    sajis997
    wrote on last edited by
    #1

    Hi

    I have the raspberry pi 3 model B version 1.2 . Then I installed qt5-default and qt install using the following command:

    $ sudo apt-get install qt5-default
    $ sudo apt-get install qtcreator
    

    Then I tried to create a simple project for just C++ development and to my surprise

    #include <iostream>
    

    is not recognized. I want to write code and compile over the raspberry pi platform. Is there anything in the process I missed or the whole thing is done in the wrong way ?

    Thanks

    1 Reply Last reply
    1
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! Did you install the rest of the tool chain, too? Like GCC, make, etc?

      1 Reply Last reply
      1
      • sajis997S Offline
        sajis997S Offline
        sajis997
        wrote on last edited by
        #3

        Hi

        I just checked that gcc and make is already installed as follows:

        gcc (Raspbian 4.9.2-10) 4.9.2
        
        

        and

        GNU Make 4.0
        

        Where more to look into ?

        Thanks

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          In Qt Creator, under Tools > Options > Build & Run > Kits, does it show an auto-detected kit?

          1 Reply Last reply
          1
          • sajis997S Offline
            sajis997S Offline
            sajis997
            wrote on last edited by
            #5

            Hi

            I think the problem is here. There is no auto-detected kit here. Instead something is set under manual while I did not set anything by myself and it mentions the following:

            Desktop (there is an error red sign beside it and it also mentions that No compiler set in kit when I hover the cursor over it)

            The compiler tab does not show any compiler either auto-detected or manually set.

            Now the device type is set to Desktop and I changed it to Generic Linux Device , but the error sign prevails. I think I have to add the device manually.

            Did I provide with enough information to fix this issue ?

            Thnaks

            ? 1 Reply Last reply
            0
            • sajis997S sajis997

              Hi

              I think the problem is here. There is no auto-detected kit here. Instead something is set under manual while I did not set anything by myself and it mentions the following:

              Desktop (there is an error red sign beside it and it also mentions that No compiler set in kit when I hover the cursor over it)

              The compiler tab does not show any compiler either auto-detected or manually set.

              Now the device type is set to Desktop and I changed it to Generic Linux Device , but the error sign prevails. I think I have to add the device manually.

              Did I provide with enough information to fix this issue ?

              Thnaks

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @sajis997 said in Qt5 and QtCreator on Raspberry pi3:

              Did I provide with enough information to fix this issue ?

              I think so, yes. Although I don't know how to fix it right now, I'm sure someone else (*cough* @SGaist *cough*) can help.

              1 Reply Last reply
              1
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi,

                Did you install the build-essentials package ?

                My first guess would be that you didn't install g++ which is done for you by the build-essentials package.

                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
                • sajis997S Offline
                  sajis997S Offline
                  sajis997
                  wrote on last edited by
                  #8

                  Both of them are installed to their respective newest version

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Then do you have the libstdc++ installed properly ?

                    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

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved