caffe之mac环境下通过XCode调试C++程序
2017-03-14 18:57
351 查看
caffe log输出参考:http://blog.csdn.net/langb2014/article/details/50482150 mac下用xcode开发caffe:http://coldmooon.github.io/2015/08/14/compile_caffe_cpp/ Xcode编译Undefined symbols for architecture xxx 错误总结:https://my.oschina.net/ioslighter/blog/363211 Xcode, 给项目添加framework:http://www.cnblogs.com/SeeMeFly/archive/2011/09/09/2172688.html 1.飞哥给的一些参考:http://blog.csdn.net/roland_sun/article/details/50452646 2. 飞哥给的一些参考:http://blog.csdn.net/koupoo/article/details/6872678
还没成功
问题:
LOG(ERROR) 可以正常打印信息。
LOG(INFO) 不起作用。
解决办法:
添加此句: FLAGS_alsologtostderr =1
然后先看一下是怎么加输出到日志,
#高性能矩阵计算,数值运算库 brew install openblas #不加可能不会在/usr/local/include(bin) 中创建openblas的link,导致查找不到cblas.h的错误 brew link openblas --force
一、C++ Standard Library
二、Build Settings/ Other Linker Flags添加:-lboost_system
Undefined symbols for architecture x86_64: "boost::system::system_category()", referenced from: ___cxx_global_var_init.2 in main.o "boost::system::generic_category()", referenced from: ___cxx_global_var_init in main.o ___cxx_global_var_init.1 in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
三、未解决
Undefined symbols for architecture x86_64: "caffe::Net<float>::Net(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, caffe::Phase, int, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const*, caffe::Net<float> const*)", referenced from: Classifier::Classifier(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
相关文章推荐
- mac环境下分别用vim和Xcode运行C++(hello word)程序
- mac下使用xcode编写c++程序
- Eclipse CDT环境下编写、调试、运行C++程序详谈
- zz:在Xcode4.2和iOS5 SDK的环境下用“老设备”调试iOS 4.x程序
- 嵌入式环境下通过 UDP 链接来调试 QT 程序
- Mac环境Java通过jni调用C++ OpenCv代码
- Eclipse CDT环境下编写、调试、运行C++程序详谈
- C++技术资源库(全部在Visual C++ 6.0环境下调试通过)
- Linux环境下通过pdb调试Python程序
- 这可能是我觉得最折腾的C++环境配置(编码+调试)--mac+eclipse
- 【嵌入式Linux学习七步曲之第二篇 ARM+Linux开发环境】在AT91RM9200上通过nfs调试linux程序
- VS调试C++程序,提示无法启动程序,MSVC\../../bin\caffe.exe系统找不到指定的文件
- Mac和Xcode的第一次历险,成功在PC上安装iphone开发环境记(可在iphone或ipod touch真机上运行调试)
- 【嵌入式Linux学习七步曲之第二篇 ARM+Linux开发环境】在AT91RM9200上通过nfs调试linux程序
- Mac eclipse 编译、调试c++ 程序
- 用 gdb 调试 C/C++ 程序
- VS2005 无网络环境下调试mobile 程序
- 想通过看看一些程序来学习c++
- 通过core文件调试程序
- 单源最短路径 C++实现 调试通过