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.
The downloaded installer is named something like qt-unified-linux-x64-version-online. run and is likely located in your ~/Downloads directory.
Install Prerequisites The Qt installers for Linux assume that a C++ compiler, debugger, make, and other development tools are provided by the host operating system. If the tools are not present in your distribution, run the following commands in your terminal based on your distro.
Qt's support for different Linux platforms is extensive and mature. To download and install Qt for Linux, follow the instructions on the Getting Started with Qt page.
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.
include
arch/<ARCH>/include
arch/<ARCH>/mach-<MACH>/include
arch/<ARCH>/<PLATFORM>/include
Now edit .config, this is the best bit. Add something like the following.
#define __KERNEL__
#define __arm__
#define __LINUX_ARM_ARCH__ 7
#include <linux/kconfig.h>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With