To implement WEB-SERVICE with uclinux using c programming.
I want to achieve something like this
I have 4 C source and header files and with using "arm-uclinuxeabi-gcc" I want to compile and create one single executable file..? and need to add this to my kernel Image.
In our host machine in order to generate binary file we used commands like this
"gcc -o calc calc.c stdsoap2.c soapC.c soapClient.c"
After this step we got "calc" binary file this works.
how to achieve this step in uclinux using arm-uclinux crass compiler to generate single executable binary file...??
when I compiled using Makefile and using are-uclinux its giving error like this
...............................................................................
.......................................................................
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory `/home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/linux'
make -C app all CFLAGS="-Os -mcpu=cortex-m3 -mthumb -I/home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/A2F/root/usr/include" LDFLAGS="-mcpu=cortex-m3 -mthumb -L/home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/A2F/root/usr/lib"
make[1]: Entering directory `/home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/projects/solus_test/app'
arm-uclinuxeabi-gcc -Os -mcpu=cortex-m3 -mthumb -I/home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/A2F/root/usr/include -o calc calc.c soapC.c soapClient.c /home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/projects/solus_test/app/stdsoap2.c
Critical error: Cannot open file "arm-uclinuxeabi-gcc -Os -mcpu=cortex-m3 -mthumb -I/home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/A2F/root/usr/include -o calc calc.c soapC.c soapClient.c /home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/projects/solus_test/app/stdsoap2.c " for reading
make[1]: *** [calc] Error 1
make[1]: Leaving directory `/home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/projects/solus_test/app'
make: *** [app] Error 2
root@amarayya-System-Product-Name:/home/amarayya/doc/LPC1788/linux-lpc-1.9.0/linux-cortexm-1.9.0/projects/solus_test#
how can I fix critical error in crass compiler and what is the reason for it..?
help me reading this...
thanks in advance
Last edited by amar@solus; 03-13-2013 at 05:42 AM.
|