日期:2014-05-16 浏览次数:20953 次
艰难的LinuxCNC(EMC2)源代码安装依赖03
在安装MesaLib-7.2.1.tar.gz 之前,先安装libdrm,
libdrm-2.4.41.tar.bz2
http://dri.freedesktop.org/libdrm/libdrm-2.4.41.tar.bz2
# sed -e "/pthread-stubs/d" -i configure.ac &&
# sed -e "/man\/Makefile/d" -i configure.ac &&
# autoreconf -fi &&
# ./configure --prefix=/usr/local --enable-udev &&
# make
# make install
然后,安装tcl-8.5 , tk-8.5,
tcl link:
http://prdownloads.sourceforge.net/tcl/tcl8.5.13-src.tar.gz
tk link:
http://prdownloads.sourceforge.net/tcl/tk8.5.13-src.tar.gz
# cd unix
# ./configure
# make
# make install
同时安装,bwidget,
bwidget-1.9.6.tar.gz
http://sourceforge.net/projects/tcllib/files/BWidget/1.9.6/bwidget-1.9.6.tar.gz/download
安装完成后,进入tclsh
引入使用BWidget:
- If you have uncompressed the archive file under the Tcl Library Path
directory, you only need to do:
如果有没有解压的包文件在tcl 库路径文件夹中,你仅仅需要做:
% package require BWidget
- If not, you have to specify the BWidget installation path in auto_path
global variable:
% lappend auto_path <install_path>
% package require BWidget
To launch the demo, you need to cd into the demo subdirectory:
$ cd <install_path>/demo
$ wish demo.tcl
然后安装 boost.python
pyboost-0.1.0-sources.zip
http://sourceforge.net/projects/pygccxml/files/pyboost/pyboost-0.1/pyboost-0.1.0-sources.zip/download
依赖关系:
pygccxml-1.0.0.zip
http://sourceforge.net/projects/pygccxml/files/pygccxml/pygccxml-1.0/pygccxml-1.0.0.zip/download
pyplusplus-1.0.0.zip
http://sourceforge.net/projects/pygccxml/files/pyplusplus/pyplusplus-1.0/pyplusplus-1.0.0.zip/download
安装以上软件依赖工具cmake,
# unzip pygccxml-1.0.0.zip
# cd pygccxml-1.0.0.zip
# mkdir build
# cd build
# cmake ..
# make
# make install
boost.python这几个软件安装都是这样的步骤,
安装完成后,就可以./configure 配置LinuxCNC 软件了,
# cd linuxcnc-dev
# cd src
# ./configure --enable-run-in-place \
--enable-simulator
会出现问题,没有找到 _tkinter
这个是python 的图形界面工具,跟随python一齐安装,python-2.7.3 中import 没有成功,所以我选择是避开,
--tkConfig --tclConfig
然后配置依赖关系过了,就是make,
这个时候需要正确的安装 ncurses 和 readline, 否则make的时候出现错误。
ncurses
./configure
make
make install
Readline-6.2
ftp://ftp.lfs-matrix.net/pub/lfs/lfs-packages/7.2/readline-6.2-fixes-1.patch
ftp://ftp.lfs-matrix.net/pub/lfs/lfs-packages/7.2/readline-6.2.tar.gz
sed -i '