2016年1月8日 星期五

[Cross Compile][C] How to compile code by using cross compile

Copy all header file and share library to separate folder. (include & lib)


Set path which can find armeb-gnueabi-cc.
Ex:
set PATH=$PATH:/opt/bin


Start to compile the code.
Compile one c file by using cross compiler.
armeb-gnueabi-cc \
-I/home/happy/include/ \
-L/home/happy/lib/ \
-lticc \
send.c -o icc_send


-I = The folder of header file
-L = The folder of share file
-l = Indicate which share library need to be used

0 意見:

張貼留言