在ios项目中使用boost framework和opencv时出现编译错误
我需要在我的iOS项目中使用boost框架。我的第一个任务是为Ios工作。我试着用这个脚本 但由于lipo错误(?)而无法构建,并且无法找到解决方法。我寻找一个预编译的框架,并在github上访问了这个项目: lib部分包含了boost的Ios版本。所以我试着在我的项目中使用它 但现在,当我构建项目时,我会遇到以下错误:在ios项目中使用boost framework和opencv时出现编译错误,ios,boost,compiler-errors,Ios,Boost,Compiler Errors,我需要在我的iOS项目中使用boost框架。我的第一个任务是为Ios工作。我试着用这个脚本 但由于lipo错误(?)而无法构建,并且无法找到解决方法。我寻找一个预编译的框架,并在github上访问了这个项目: lib部分包含了boost的Ios版本。所以我试着在我的项目中使用它 但现在,当我构建项目时,我会遇到以下错误: Undefined symbols for architecture i386: "vtable for boost::filesystem::detail::utf8
Undefined symbols for architecture i386:
"vtable for boost::filesystem::detail::utf8_codecvt_facet", referenced from:
(anonymous namespace)::path_locale() in boost(path.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"_inflate", referenced from:
MatlabIO::uncompressVariable(unsigned int&, unsigned int&, unsigned int&, std::vector<char, std::allocator<char> > const&) in MatlabIO.o
"_inflateEnd", referenced from:
MatlabIO::uncompressVariable(unsigned int&, unsigned int&, unsigned int&, std::vector<char, std::allocator<char> > const&) in MatlabIO.o
"_inflateInit_", referenced from:
MatlabIO::uncompressVariable(unsigned int&, unsigned int&, unsigned int&, std::vector<char, std::allocator<char> > const&) in MatlabIO.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在我的xcode项目下,我没有链接到/usr/local/include/boost/或类似的东西。它似乎是用不正确的体系结构编译的
有什么解决办法吗?也许这个框架不是为Ios编译的?或者我的项目没有引用正确的版本您可以将BOOST 1.57.0与ofxiOSBoost静态库和头一起使用: libc++(c++11)的发行版,libstdc++
所有构建脚本都位于/scripts文件夹(更新的Peter Goodliffe脚本)为模拟器和设备构建该库-然后使用lipo加入两个版本,并在应用程序中使用生成的(通用)库。wan无法构建。你有脚本或下载的地方吗?请看我的答案@avnerbar。包括构建脚本(也包括静态libs,有关即插即用选项,请参阅发行版)(特别是对于OpenFrameworks项目;D)
sudo port install boost