linuxcnc里一些程序的手工编译

本文详细介绍了LinuxCNC系统中关键组件的编译过程,包括milltask、linuxcncsvr、ioControl、motion-logger、schedrmt和halui。涉及g++和gcc命令的使用,以及必要的库文件和头文件路径设置。
摘要由CSDN通过智能技术生成
1,编译milltask
>cd src/emc/task
>g++ -c signalhandler.cc -I../../../include -I../../../src/emc/rs274ngc  -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7
>g++ -c emctaskmain.cc -DRTAPI -I../../../include -I../../../src/emc/rs274ngc  -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7
>g++ -o milltask emcmotglb.o emctask.o emccanon.o emctaskmain.o usrmotintf.o emcmotutil.o taskintf.o dbuf.o stashf.o tool_parse.o taskmodule.o taskclass.o backtrace.o ../../../lib/librs274.so.0 ../../../lib/liblinuxcnc.a ../../../lib/libnml.so.0 ../../../lib/liblinuxcncini.so.0 ../../../lib/libposemath.so.0 ../../../lib/liblinuxcnchal.so.0 ../../../lib/libpyplugin.so.0 -L/home/bruce/linuxcnc-dev/lib -Wl,-rpath,/home/bruce/linuxcnc-dev/lib -lboost_python -lpython2.7 -L/usr/lib/x86_64-linux-gnu
2,编译linuxcncsvr(守护进程)
>g++ -c emcsvr.cc -I../../../include -I../../../src/emc/rs274ngc  -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7
>g++ -o linuxcncsvr emcsvr.o  ../../../lib/librs274.so.0 ../../../lib/liblinuxcnc.a ../../../lib/libnml.so.0 ../../../lib/liblinuxcncini.so.0 ../../../lib/libposemath.so.0 ../../../lib/liblinuxcnchal.so.0 ../../../lib/libpyplugin.so.0 -L/home/bruce/linuxcnc-dev/lib -Wl,-rpath,/home/bruce/linuxcnc-dev/lib -lboost_python -lpython2.7 -L/usr/lib/x86_64-linux-gnu
3,编译ioControl (bin/io)
>cd src/emc/iotask
>g++ -o ioControl  ioControl.cc -DRTAPI ../rs274ngc/tool_parse.cc -I../../../include -I../../../src/emc/rs274ngc -Wl,--rpath=../../../lib ../../../lib/liblinuxcnc.a ../../../lib/libnml.so.0 ../../../lib/liblinuxcnchal.so.0 ../../../lib/liblinuxcncini.so.0
4,motion-logger (bin/motion-logger)
>cd src/emc/motion-logger
>gcc -o motion-logger motion-logger.c -DRTAPI -I../../../include -I../../../src/emc/motion/  -Wl,-rpath=../../../lib ../../../lib/libnml.so.0 ../../../lib/liblinuxcnchal.so.0
5,schedrmt  (bin/schedrmt)
>cd src/emc/usr_intf
>g++ -c emcsched.cc -I../../../include -I../../../src/emc/rs274ngc  -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/X11 -I/usr/include/tcl8.6
>g++ -c shcom.cc -I../../../include -I../../../src/emc/rs274ngc  -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/X11 -I/usr/include/tcl8.6
>g++ -c schedrmt.cc -I../../../include -I../../../src/emc/rs274ngc  -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/X11 -I/usr/include/tcl8.6
> g++ -o schedrmt schedrmt.o emcsched.o shcom.o  ../../../lib/librs274.so.0 ../../../lib/liblinuxcnc.a ../../../lib/libnml.so.0 ../../../lib/liblinuxcncini.so.0 ../../../lib/libposemath.so.0 ../../../lib/liblinuxcnchal.so.0 ../../../lib/libpyplugin.so.0 -L/home/bruce/linuxcnc-dev/lib -Wl,-rpath,/home/bruce/linuxcnc-dev/lib -lboost_python -lpython2.7 -L/usr/lib/x86_64-linux-gnu -lXaw7 -lXtst -lX11 -lXt -ltcl8.6  -ltclstub8.6 -lpthread
6,halui  (bin/halui)
>g++ -o halui halui.cc -DRTAPI -I../../../include -I../../../src/emc/rs274ngc  -I../../../src/emc/pythonplugin -I../../../src/emc/motion -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/X11 -I/usr/include/tcl8.6 ../../../lib/liblinuxcnc.a ../../../lib/liblinuxcncini.so.0 ../../../lib/libnml.so.0 ../../../lib/liblinuxcnchal.so.0

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值