View Single Post
Old 01-07-2020, 10:53 AM   #16
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Roker2 View Post
So, I built KOReader toolchain, remake makefile, but I have the same error.
Code:
/home/dmitry/x-tools/arm-kindlepw2-linux-gnueabi/arm-kindlepw2-linux-gnueabi/include/c++/7.4.1/arm-kindlepw2-linux-gnueabi/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory
 #include <features.h>
https://github.com/Roker2/blocks/blo...8/Makefile#L15
It seems that you are not including (no pun intended) the required include files.
If not otherwise specified, then the compiler (gcc) will default to /usr/include - which is where your HOST system files exist not necessarily where your TARGET system files exist.
Note: "not necessarily" means that in some cases, the file contents are identical on HOST and TARGET systems, some are not, so just use the ones that are supplied for your TARGET system.


Your favorite web search utility can lead you to zillions of cross-compiling "how to" articles. It is not something usually handled by this forum.
knc1 is offline   Reply With Quote