|
Re: Cross Compiling Linux Kernel On Eclipse [message #1713277 is a reply to message #1713182] |
Mon, 02 November 2015 23:44 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Does your build log really have all of those line breaks? In any case it looks like your only included path is
/home/poky/build/tmp/sysroots/i686-linux/usr/include assuming the line breaks are not real.
Does this directory contain linux/cpu.h?
A similar question was asked and answered here:
http://stackoverflow.com/questions/33431688/unable-to-cross-compiling-linux-kernel-on-eclipse
As mentioned there, you can add include paths in the Project ==> Properties ==> C/C++ General==> Paths and Symbols dialog.
Or you could use the dialog at Project ==> Properties ==> C/C++ General ==> Preprocessor Inlcude Paths, Macros, etc.
Which is up to you, the latter is more for informing the indexer.
The compiler itself includes some default paths. At least regular old gcc does and will tell you what they are with :
echo | gcc -v -x c -E -
on the command line. It also will tell you what is included by default.
x86_64-poky-linux-gcc may do similar as it appears to be a GCC derivative.
In an case, the compiler is complaining that it can't find the include file.
If you hunt around, you may find an Eclipse plugin for this that may simplify things for you.
|
|
|
Powered by
FUDForum. Page generated in 0.03453 seconds