Hi All,
Is there a resolution to this issue yet? I have been trying to cross compile and could not get it to work.
This is what I tried:
Poky Distro 1.7.1 and also the corresponding .sh file for sourcing the environment.
Using arm-poky-linux-gnueabi-gcc compiler for cross compiling is producing the following error consistently.
harsha@harsha:~/WVSNP_Dashboard_Final/wvsnp_dashboard_v1.0.3/Source Code$ arm-poky-linux-gnueabi-gcc buttonfunctions.c -lxbee -o buttonfunctions.cgi -L /home/harsha/Billy_Strub/mygits/my_libxbee/libxbee3/xbee.h -lm cgic.h cgic.c
buttonfunctions.c:23:19: fatal error: stdio.h: No such file or directory
#include
^
compilation terminated.
cgic.h:12:19: fatal error: stdio.h: No such file or directory
#include
^
compilation terminated.
cgic.c:25:19: fatal error: stdio.h: No such file or directory
#include
^
compilation terminated.
All the build-essential files are intact and up to date and this should have resolved the stdio.h dependency.
I tried using the CC cross compiler, by just replacing 'arm-poky-linux-gnueabi-gcc' by 'CC' in the above command.
The binary properties of the buttinfunctions.cgi is still in x86 format.
harsha@harsha:~/WVSNP_Dashboard_Final/wvsnp_dashboard_v1.0.3/www/CGI$ file buttonfunctions.cgi
buttonfunctions.cgi: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x15ca70ec8491594ff1290b06dd1f908129fd45ad, not stripped
I would really appreciate any help here.
-Sri