安装caffe 在16.10下遇到 : “未定义引用” 问题
来源:互联网 发布:淘宝美宝莲旗舰店 编辑:程序博客网 时间:2024/06/08 03:55
http://www.fx114.net/qa-94-147874.aspx
解决办法:
Hi all,
Thanks for the thread. I just install 15.10 and this saved me from a lot of troubles.
With the latest version 15.10.1, only hacking CUDA is not enough. The error is because google-glog got built with -D_GLIBCXX_USE_CXX11_ABI=0 while everything else use the default option!
This is also the cause of the error that Locke Lee haveshown.
I have made a full guide, (feel free to correct my English :D)
///////////////////////////////////////////////////////
1. HACK CUDA
+As all other packages in ubuntu 15.10 is built with GCC 5(.2) but CUDA (7.5) not allow >4.9 gcc version!
+We would like to "hack" CUDA to compile cuda files with gcc-5 as follows:
a) sudo gedit /usr/local/cuda/include/host_config.h
b) change line 113 to #if __GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ > 2)
///////////////////////////////////////////////////////
2. FIX google-glog
+Some bad guys build google-glog with wrong gcc abi config! And the wrong build is in
the official repository. Fack!
+i.e when all other package is built with -D_GLIBCXX_USE_CXX11_ABI=1 (default). They built it with
-D_GLIBCXX_USE_CXX11_ABI=0! We need to built it ourself!
a)
sudo apt-get remove libgoogle-glog-dev libgoogle-glog0v5
cd ~ //other folder is ok
apt-get source libgoogle-glog-dev
cd google-glog-0.3.4
./configure
b) The generated makefile have some mistakes (?)
- change line 613 to ACLOCAL=aclocal-1.15
- change line 619 to AUTOMAKE=automake-1.15
c)
make // this will have some errors, dont worry
automake --add-missing
make -j 16 //or 100,whatever
sudo make install
//////////////////////////////////////////////////////////
Now we can build caffe! Profit!
Hi all,
Thanks for the thread. I just install 15.10 and this saved me from a lot of troubles.
With the latest version 15.10.1, only hacking CUDA is not enough. The error is because google-glog got built with -D_GLIBCXX_USE_CXX11_ABI=0 while everything else use the default option!
This is also the cause of the error that Locke Lee haveshown.
I have made a full guide, (feel free to correct my English :D)
//////////////////////////////
1. HACK CUDA
+As all other packages in ubuntu 15.10 is built with GCC 5(.2) but CUDA (7.5) not allow >4.9 gcc version!
+We would like to "hack" CUDA to compile cuda files with gcc-5 as follows:
a) sudo gedit /usr/local/cuda/include/host_
b) change line 113 to #if __GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ > 2)
//////////////////////////////
2. FIX google-glog
+Some bad guys build google-glog with wrong gcc abi config! And the wrong build is in
the official repository. Fack!
+i.e when all other package is built with -D_GLIBCXX_USE_CXX11_ABI=1 (default). They built it with
-D_GLIBCXX_USE_CXX11_ABI=0! We need to built it ourself!
a)
sudo apt-get remove libgoogle-glog-dev libgoogle-glog0v5
cd ~ //other folder is ok
apt-get source libgoogle-glog-dev
cd google-glog-0.3.4
./configure
b) The generated makefile have some mistakes (?)
- change line 613 to ACLOCAL=aclocal-1.15
- change line 619 to AUTOMAKE=automake-1.15
c)
make // this will have some errors, dont worry
automake --add-missing
make -j 16 //or 100,whatever
sudo make install
//////////////////////////////
Now we can build caffe! Profit!
2 **!!!!如果 遇到:::error: version mismatch. This is Automake 1.15.1,
解决办法看这里
http://askubuntu.com/questions/550824/intltool-automake-version-mismatch
0 0
- 安装caffe 在16.10下遇到 : “未定义引用” 问题
- ubuntu编译caffe遇到未定义的引用cublas*_v2错误
- 在服务器安装caffe和Anaconda遇到的一些问题
- Window下安装Libnet环境时候遇到的问题:找不到'Pcap.h'和'未定义ip-nh'
- 安装caffe遇到的问题
- caffe 安装遇到的问题
- Caffe安装遇到的问题
- 在编译caffe中遇到问题集锦
- caffe安装遇到的问题总结
- caffe安装遇到的问题总结
- [caffe]安装中遇到的问题
- 安装caffe遇到问题及解决
- centos 6.5安装caffe遇到的问题
- ubuntu安装caffe以及遇到的问题
- caffe安装流程和遇到问题
- ubuntu16.04安装caffe遇到一些问题
- ubuntu16.04 CAFFE 安装遇到的问题
- 安装caffe中间遇到的一些问题
- 常见兼容性问题
- 封装--javascript的原型(prototype)
- Oracle数据库
- spring框架学习(二)依赖注入
- Eclipse关联jar源码
- 安装caffe 在16.10下遇到 : “未定义引用” 问题
- ios教程笔记,第三节 swift中的switch,for循环和while循环
- Apk反编译
- spring框架学习(三)junit单元测试
- 欢迎使用CSDN-markdown编辑器
- ZJOI2007棋盘制作
- android自定义view复用UI
- spring框架学习(四)自动装配
- 初步使用ngrok 原文地址 http://qydev.com/ 下载