make for arm
c文件:project.c
方法一
//预编译,生成已编译通过的C原始程序 *.i
gcc -E project.c -o project.i
//编译,生成汇编语言原始程序 *.s
gcc -S project.i -o project.s
//链接,生成可执行程序
gcc -o project.exe project.s
方法二
//编译
gcc -c project.c -o project.o
//链接
gcc -o project.exe project.o
方法三
//编译并链接
gcc -o project.exe project.c
最后用 ./project.exe 运行。可以用 cat project.i和 cat project.s 看汇编的代码
g++编译指令
g++ -I/usr/local/include -I/usr/local/include/opencv -I/usr/local/include/opencv2 -L/usr/local/lib -o"run_track" -fopenmp main.cpp ./src/Camera.cpp -lopencv_highgui -lopencv_core -lopencv_imgproc -lopencv_calib3d -lopencv_contrib -lopencv_features2d -lopencv_flann -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_video -lusb-1.0 -ludev -lusb -lgomp -O2 -Wall
入门demo:
g++ -O3 -ma
文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jacke121/article/details/54692858
- 点赞
- 收藏
- 关注作者
评论(0)