Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Missing libraries in qt creator
Forum Updated to NodeBB v4.3 + New Features

Missing libraries in qt creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 3.6k 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.
  • S Offline
    S Offline
    sush
    wrote on last edited by
    #1

    Hi, I have installed qt and qt creator in a raspbian running raspberry pi 2 with the following commands:

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

    But as I work in qt creator, many libraries such as C header files are missing, how do I include them?

    Do not wait to innovate.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      I think you just need the build tools
      like
      sudo apt-get install build-essential
      But that is for ubuntu. Check for raspbian.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sush
        wrote on last edited by
        #3

        Hi, I have already installed the build tools by executing

        sudo apt-get install build-essential
        

        Do not wait to innovate.

        mrjjM 1 Reply Last reply
        0
        • S sush

          Hi, I have already installed the build tools by executing

          sudo apt-get install build-essential
          
          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @sush
          Ok. I think you should post the actual errors you get then,
          as its unclear what then is missing :)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sush
            wrote on last edited by
            #5

            HI mrjj,
            As I try to include header files of C like <cstdlib.h> in qt creator, I get an error as no such file or directory

            /home/pi/demo_serial/mainwindow.cpp:9: error: cstdlib.h: No such file or directory
             #include <cstdlib.h>
                                 ^
            

            Do not wait to innovate.

            mrjjM 1 Reply Last reply
            0
            • S sush

              HI mrjj,
              As I try to include header files of C like <cstdlib.h> in qt creator, I get an error as no such file or directory

              /home/pi/demo_serial/mainwindow.cpp:9: error: cstdlib.h: No such file or directory
               #include <cstdlib.h>
                                   ^
              
              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @sush said in Missing libraries in qt creator:

              cstdlib.h

              Ok. Did you check if you have the file installed and its
              some path error?

              Did you try the gcc toolchain without Qt?
              Just to see if a normal c++ program will compile?

              MOst likely its just some path :)

              S 1 Reply Last reply
              0
              • mrjjM mrjj

                @sush said in Missing libraries in qt creator:

                cstdlib.h

                Ok. Did you check if you have the file installed and its
                some path error?

                Did you try the gcc toolchain without Qt?
                Just to see if a normal c++ program will compile?

                MOst likely its just some path :)

                S Offline
                S Offline
                sush
                wrote on last edited by
                #7

                @mrjj yes you got that right, even my gcc toolchain is not able to find the header files and showing an error on compilation, this is something new to me, which files do I have to install to get rid of this errors??

                Do not wait to innovate.

                mrjjM jsulmJ 2 Replies Last reply
                0
                • S sush

                  @mrjj yes you got that right, even my gcc toolchain is not able to find the header files and showing an error on compilation, this is something new to me, which files do I have to install to get rid of this errors??

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @sush
                  I have have never tried a raspbian so im purely guessing you still need the actual headers
                  so maybe something like
                  http://raspberrypi.stackexchange.com/questions/4813/how-to-install-gnu-c-development-tools-on-raspberry-pi-using-apt-get
                  Could give hints but its seems to be enough with
                  sudo apt-get install build-essential
                  which you already did.

                  You could do the test part from here
                  https://www.cyberciti.biz/faq/debian-linux-install-gnu-gcc-compiler/
                  and compare the outout.

                  1 Reply Last reply
                  0
                  • S sush

                    @mrjj yes you got that right, even my gcc toolchain is not able to find the header files and showing an error on compilation, this is something new to me, which files do I have to install to get rid of this errors??

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @sush Change

                    #include <cstdlib.h>
                    

                    to

                    #include <cstdlib>
                    

                    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