微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

编译openzwave示例时出错

如何解决编译openzwave示例时出错

我使用 sudo make 和 sudo make install 在树莓上成功安装了 Open-zwave。在此之后,我想编译这个包中的示例(cpp/example 并做了“make”),但在此之后他向我展示了许多他没有找到的函数。这是错误

usr/bin/ld: /home/pi/projet_intern/open-zwave/cpp/examples/MinOZW/.lib/Main.o:在 函数 OnNotification(OpenZWave::Notification const*,void*)': Main.cpp:(.text+0x468): undefined reference to OpenZWave::Manager::HasExtendedTxStatus(unsigned int)' /usr/bin/ld: Main.cpp:(.text+0x48c): 未定义的引用 OpenZWave::Manager::s_instance' /usr/bin/ld: /home/pi/projet_intern/open-zwave/cpp/examples/MinOZW/.lib/Main.o: in function main': Main.cpp:(.text.startup+0x44): 未定义的引用 OpenZWave::Manager::getVersionLongAsstring[abi:cxx11]()' /usr/bin/ld: Main.cpp:(.text.startup+0x9c): undefined reference to OpenZWave::Options::Create(std::__cxx11::basic_string const&,std::__cxx11::basic_string const&,std::__cxx11::basic_string const&)' /usr/bin/ld: Main.cpp:(.text.startup+0xd8): 未定义的引用 OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0xf8): undefined reference to OpenZWave::Options::AddOptionInt(std::__cxx11::basic_string const&,int)' /usr/bin/ld: Main.cpp:(.text.startup+0x10c): 未定义的引用 OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x12c): undefined reference to OpenZWave::Options::AddOptionInt(std::__cxx11::basic_string const&,int)' /usr/bin/ld: Main.cpp:(.text.startup+0x140): 未定义的引用 OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x160): undefined reference to OpenZWave::Options::AddOptionInt(std::__cxx11::basic_string const&,int)' /usr/bin/ld: Main.cpp:(.text.startup+0x174): 未定义的引用 OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x194): undefined reference to OpenZWave::Options::AddOptionInt(std::__cxx11::basic_string const&,int)' /usr/bin/ld: Main.cpp:(.text.startup+0x1a8): 未定义的引用 OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x1c8): undefined reference to OpenZWave::Options::AddOptionBool(std::__cxx11::basic_string const&,bool)' /usr/bin/ld: Main.cpp:(.text.startup+0x1dc): 未定义的引用 OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x1fc): undefined reference to OpenZWave::Options::AddOptionBool(std::__cxx11::basic_string const&,bool)' /usr/bin/ld: Main.cpp:(.text.startup+0x214): 未定义的引用 OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x218): undefined reference to OpenZWave::Options::Lock()' /usr/bin/ld: Main.cpp:(.text.startup+0x21c): 未定义的引用 OpenZWave::Manager::Create()' /usr/bin/ld: Main.cpp:(.text.startup+0x22c): undefined reference to OpenZWave::Manager::AddWatcher(void ()(OpenZWave::Notification const,void*),void*)' /usr/bin/ld: Main.cpp:(.text.startup+0x27c): 未定义的引用 OpenZWave::Manager::AddDriver(std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char> > const&,OpenZWave::Driver::ControllerInterface const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x2d8): undefined reference to OpenZWave::Manager::RemoveDriver(std::__cxx11::basic_string const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x2f8): 未定义的引用 OpenZWave::Manager::RemoveWatcher(void (*)(OpenZWave::Notification const*,void*)' /usr/bin/ld: Main.cpp:(.text.startup+0x2fc): undefined reference to OpenZWave::Manager::Destroy()' /usr/bin/ld: Main.cpp:(.text.startup+0x300): 未定义的引用 OpenZWave::Options::Destroy()' /usr/bin/ld: Main.cpp:(.text.startup+0x3cc): undefined reference to OpenZWave::Manager::RemoveDriver(std::__cxx11::basic_string const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x3e8): 未定义的引用 OpenZWave::Manager::AddDriver(std::__cxx11::basic_string<char,OpenZWave::Driver::ControllerInterface const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x448): undefined reference to OpenZWave::Manager::GetNodeName[abi:cxx11](unsigned int,unsigned char)' /usr/bin/ld: Main.cpp:(.text.startup+0x478): 未定义 参考 OpenZWave::Manager::GetNodeManufacturerName[abi:cxx11](unsigned int,unsigned char)' /usr/bin/ld: Main.cpp:(.text.startup+0x4a8): undefined reference to OpenZWave::Manager::GetNodeProductName[abi:cxx11](unsigned int,unsigned char)' /usr/bin/ld: Main.cpp:(.text.startup+0x514): 未定义 参考 OpenZWave::Manager::GetValueLabel[abi:cxx11](OpenZWave::ValueID const&,int)' /usr/bin/ld: Main.cpp:(.text.startup+0x53c): undefined reference to OpenZWave::ValueID::GetTypeAsstringabi:cxx11 const' /usr/bin/ld: Main.cpp:(.text.startup+0x574): 未定义的引用 OpenZWave::Manager::GetValueHelp[abi:cxx11](OpenZWave::ValueID const&,int)' /usr/bin/ld: Main.cpp:(.text.startup+0x5a0): undefined reference to OpenZWave::Manager::GetValueUnits[abi:cxx11](OpenZWave::ValueID const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x5c8): 未定义 参考 OpenZWave::Manager::GetValueMin(OpenZWave::ValueID const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x5e0): undefined reference to OpenZWave::Manager::GetValueMax(OpenZWave::ValueID const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x5f8): 未定义 参考 OpenZWave::ValueID::GetGenreAsstring[abi:cxx11]() const' /usr/bin/ld: Main.cpp:(.text.startup+0x668): undefined reference to OpenZWave::Manager::GetDriverStatistics(unsigned int,OpenZWave::Driver::DriverData*)' /usr/bin/ld: Main.cpp:(.text.startup+0x7b8): 未定义的引用 `OpenZWave::Manager::s_instance' collect2:错误:ld 返回 1 个退出 状态 make: *** [Makefile:70: /home/pi/projet_intern/open-zwave/cpp/examples/MinOZW/.lib/MinOZW] 错误 1

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?