Unsolved Missing libraries in qt creator
-
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?
-
Hi
I think you just need the build tools
like
sudo apt-get install build-essential
But that is for ubuntu. Check for raspbian. -
Hi, I have already installed the build tools by executing
sudo apt-get install build-essential
-
@sush
Ok. I think you should post the actual errors you get then,
as its unclear what then is missing :) -
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> ^
-
@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 :)
-
@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??
-
@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. -