i tried a few IDEs on linux to develop driver in C. QtCreator suits best for me. I need the IDE just for the intellisence (codecompletion, jump to functions on click.. etc.) for quicker coding.
Has anyone configured QTCreator for such needs. E.g. what do i have to do to get intellisence for a struct?
regards camelord.
A better solution is to import the linux source with "Import Existing Project". Add all the files your ARCH requires. Once created edit the .includes file and remove all the include dirs listed.
Then just add the few that linux uses.
Now edit .config, this is the best bit. Add something like the following.
It's the #include that brings in all of the autoconf stuff you mostly want.
Do a make V=1 to see the standard defines that the Kernel build uses.
Also if you're using a cross compiler, set up as usual in "Build & Run" Compilers tab.
I have the same problem. I found a solution, how to prepare Qt Creator to the linux Kernel development in the Ubuntu.
Prepare include paths:
sudo apt-get install linux-headers-$(uname -r)
Configuring your *.pro file:
Building:
Also you can set your build script.
I found answer here. To acomplish this you need to add
to all .pro files that are used for building kernel modules.