Hi, I'm learning how to cross compile using my hacked xiaofang. I've installed snx-sdk with toolchain and tried to build ncurses library. I've set path variable to the folder of toolchain containing the build tools and then I've launched the configure script with the correct host argument. The configure runs perfectly finding correct compiler and everithing. After that when I try to lunch make command, It says that the gcc can't find stdlib.h (and also, i think, all the basic library headers). Reading the make output it appears that the sysroot folder containing includes is not added to the compiler. I've tried a lot combination with CFLAG and configure arguments, but it seems in every case to ignore the included folder. I can't found proper documentation for this on google, all my tries are purely intuitive. What step am I lefting behind? Please help me :(
Hi, I'm learning how to cross compile using my hacked xiaofang. I've installed snx-sdk with toolchain and tried to build ncurses library. I've set path variable to the folder of toolchain containing the build tools and then I've launched the configure script with the correct host argument. The configure runs perfectly finding correct compiler and everithing. After that when I try to lunch make command, It says that the gcc can't find stdlib.h (and also, i think, all the basic library headers). Reading the make output it appears that the sysroot folder containing includes is not added to the compiler. I've tried a lot combination with CFLAG and configure arguments, but it seems in every case to ignore the included folder. I can't found proper documentation for this on google, all my tries are purely intuitive. What step am I lefting behind? Please help me :(