Centos 7编译ACE静态库

  • 下载 ACE http://download.dre.vanderbilt.edu/
    提示:尽量下载类似 ACE-x.y.z.tar.gz 的包,避免下载 ACE-src-x.y.z.tar.gz,前者是正式包。
    小C 下载的版本是 ACE-6.3.4.tar.gz
  • 解压
cd /home
tar -zxvf ACE-6.3.4.tar.gz
  • 设置ACE_ROOT环境变量
export ACE_ROOT="/home/ACE_wrappers"
  • 创建一个到 config-linux.h 的软链接
cd $ACE_ROOT/ace
ln -s config-linux.h config.h
  • 还有到 platform_linux.GNU 的软链接
cd $ACE_ROOT/include/makeinclude
ln -s platform_linux.GNU platform_macros.GNU
  • 编译静态库
cd $ACE_ROOT/ace
make static_libs_only=1 -j4

如果编译动态库,去掉 static_libs_only=1make -j4 即可。

最后,生成的库文件在 $ACE_ROOT/lib 目录下。

0 0 投票数
喜欢就给个好评吧!
赞(1) 打赏
未经允许不得转载:爱易默博客 » Centos 7编译ACE静态库
订阅评论
提醒
guest

0 评论
内联反馈
查看所有评论
免责声明:本站大部分下载资源收集于网络,只做学习和交流使用,版权归原作者所有,请在下载后24小时之内自觉删除,若作商业用途,请购买正版,由于未及时购买和付费发生的侵权行为,与本站无关。本站发布的内容若侵犯到您的权益,请联系站长删除,我们将及时处理! Disclaimer: Most of the download resources on this site are collected on the Internet, and are only used for learning and communication. The copyright belongs to the original author. Please consciously delete within 24 hours after downloading. If you use it for commercial purposes, please purchase the original version. If the content posted on this site violates your rights, please contact us to delete it, and we will deal with it in time!

联系我们 Contact us

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

0
希望看到您的想法,请您发表评论x