【发布时间】:2019-03-12 21:03:10
【问题描述】:
我正在尝试在 Linux 18.04.1 (VirtualBox) 上安装 NaoQI C++ SDK。我遵循了这个安装说明:http://doc.aldebaran.com/2-1/dev/cpp/install_guide.html
我的问题出现在 E 部分。第 3 步,当我尝试运行“qibuild make”时
我在尝试构建 helloworld 示例时收到此错误:
CMakeFiles/testhelloworld.dir/testhelloworld.cpp.o:在函数中
main': /home/nounou/Documents/SDKfolder/naoqi-sdk/doc/dev/cpp/examples/core/helloworld/testhelloworld.cpp:35: undefined reference toAL::ALBroker::createBroker(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, int, std::__cxx11::basic_string, std::allocator > const&, int, int, std::__cxx11::basic_string, std::allocator >, bool)' /home/nounou/Documents/SDKfolder/naoqi-sdk/doc/dev/cpp/examples/core/helloworld/testhelloworld.cpp:38: 未定义的引用AL::ALProxy::ALProxy(boost::shared_ptr<AL::ALBroker>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int)' CMakeFiles/testhelloworld.dir/testhelloworld.cpp.o: In functionqi::log::LogStream::~LogStream()':
....
CMakeFiles/testhelloworld.dir/build.make:113:目标配方 'sdk/bin/testhelloworld' 失败 make[2]: * [sdk/bin/testhelloworld] 错误 1 CMakeFiles/Makefile2:67:目标配方 'CMakeFiles/testhelloworld.dir/all' 失败 make[1]: * [CMakeFiles/testhelloworld.dir/all] 错误 2 Makefile:129: 配方 目标 'all' 失败 make: *** [all] 错误 2
[ERROR]:构建项目hello world时发生BuildFailed错误
如果您对问题所在有任何想法,请帮助我。谢谢!
【问题讨论】:
-
您的系统中缺少 ALProxy,因此编译器无法链接。它要么已安装但不在编译器可以找到的路径中,要么未安装。检查是否安装了“alcommon”库。
-
我检查过了。安装了“alcommon”库。我该怎么做才能让编译器找到它?
-
您安装了哪个版本的 C++ SDK? 2.1 ?
-
列出
qitoolchain info的输出可以帮助弄清楚到底发生了什么。 -
我已经安装了2.1.4.13版本的C++ SDK。我有一台 NAO 机器人 V4。
标签: c++ linux build cross-compiling nao-robot