ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [原]linux环境下编译opendiameter

[原]linux环境下编译opendiameter

原创 Linux操作系统 作者:zuohongyoulan 时间:2008-09-24 12:01:07 0 删除 编辑

首先需要的文件有
ACE-5.5.tar
boost_1_35_0.tar
opendiameter-1.0.7-i.tar.gz

假设上面三个文件都在 /home/jim/opendiameter 目录下
tar -xvf ACE-5.5.tar
cd ACE_wrappers/
mkdir build
cd build
../configure --prefix=/home/jim/opendiameter/ace && make && make install

cd /home/jim/opendiameter
tar -xvf boost_1_35_0.tar
cd boost_1_35_0
./configure --prefix=/home/jim/opendiameter/boost && make && make install
 
cd /home/jim/opendiameter
编辑一个文件,命名为profile,内容如下,每次需要编译或运行diameter的时候首先运行
export ACE_ROOT=/home/jim/opendiameter/ace
export BOOST_ROOT=/home/jim/opendiameter/boost
export LD_LIBRARY_PATH=$ACE_ROOT/lib:$BOOST_ROOT/lib:/home/jim/opendiameter/od/lib/:$LD_LIBRARY_PATH

source profile
用env命令查看一下环境变量
env

准备编译 opendiameter-1.0.7-i.tar.gz
首先运行
cd /home/jim/opendiameter/ace
ln -s include/* ./
再运行
cd include/ace
cp -a /home/jim/opendiameter/ACE_wrappers/ace/Swap.cpp ./

如果出现了 undefined reference to `ACE_OS::fast_memcpy问题,执行下面操作可解决
cp  /home/jim/opendiameter/ACE_wrappers/ace/*.* /home/jim/opendiameter/ace/include/ace/


然后就可以开始编译了
tar -xvzf opendiameter-1.0.7-i.tar.gz
cd opendiameter-1.0.7-i
./configure --prefix=/home/jim/opendiameter/od && make && make install

到这里基本上就可以任意编译opendiameter了

如果需要编译opendiameter cc, 编译的时候基本上都需要如下设置
ACE_ROOT=/home/jim/opendiameter/ace
BOOST_ROOT=/home/jim/opendiameter/boost
OD_ROOT=/home/jim/opendiameter/od/include/opendiameter

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12925485/viewspace-462836/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-09-18

  • 博文量
    24
  • 访问量
    44055