Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while compiling the example of openzwave #2606

Open
abir-wind opened this issue May 19, 2021 · 0 comments
Open

error while compiling the example of openzwave #2606

abir-wind opened this issue May 19, 2021 · 0 comments

Comments

@abir-wind
Copy link

had succesfully installed Open-zwave on raspberry with sudo make and sudo make install. After this I wanted to compile the example in this package(cpp/example and did "make"), but after this he show me many functions which he not found. This are the errors:

usr/bin/ld: /home/pi/projet_intern/open-zwave/cpp/examples/MinOZW/.lib/Main.o: in function OnNotification(OpenZWave::Notification const*, void*)': Main.cpp:(.text+0x468): undefined reference to OpenZWave::Manager::HasExtendedTxStatus(unsigned int)' /usr/bin/ld: Main.cpp:(.text+0x48c): undefined reference to 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): undefined reference to OpenZWave::Manager::getVersionLongAsStringabi:cxx11' /usr/bin/ld: Main.cpp:(.text.startup+0x9c): undefined reference to OpenZWave::Options::Create(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: Main.cpp:(.text.startup+0xd8): undefined reference to OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0xf8): undefined reference to OpenZWave::Options::AddOptionInt(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' /usr/bin/ld: Main.cpp:(.text.startup+0x10c): undefined reference to OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x12c): undefined reference to OpenZWave::Options::AddOptionInt(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' /usr/bin/ld: Main.cpp:(.text.startup+0x140): undefined reference to OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x160): undefined reference to OpenZWave::Options::AddOptionInt(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' /usr/bin/ld: Main.cpp:(.text.startup+0x174): undefined reference to OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x194): undefined reference to OpenZWave::Options::AddOptionInt(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' /usr/bin/ld: Main.cpp:(.text.startup+0x1a8): undefined reference to OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x1c8): undefined reference to OpenZWave::Options::AddOptionBool(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)' /usr/bin/ld: Main.cpp:(.text.startup+0x1dc): undefined reference to OpenZWave::Options::Get()' /usr/bin/ld: Main.cpp:(.text.startup+0x1fc): undefined reference to OpenZWave::Options::AddOptionBool(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)' /usr/bin/ld: Main.cpp:(.text.startup+0x214): undefined reference to 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): undefined reference to 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): undefined reference to OpenZWave::Manager::AddDriver(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, OpenZWave::Driver::ControllerInterface const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x2d8): undefined reference to OpenZWave::Manager::RemoveDriver(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x2f8): undefined reference to OpenZWave::Manager::RemoveWatcher(void ()(OpenZWave::Notification const, void*), void*)' /usr/bin/ld: Main.cpp:(.text.startup+0x2fc): undefined reference to OpenZWave::Manager::Destroy()' /usr/bin/ld: Main.cpp:(.text.startup+0x300): undefined reference to OpenZWave::Options::Destroy()' /usr/bin/ld: Main.cpp:(.text.startup+0x3cc): undefined reference to OpenZWave::Manager::RemoveDriver(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /usr/bin/ld: Main.cpp:(.text.startup+0x3e8): undefined reference to OpenZWave::Manager::AddDriver(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, 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): undefined reference to 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): undefined reference to 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): undefined reference to 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): undefined reference to 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): undefined reference to OpenZWave::ValueID::GetGenreAsStringabi: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): undefined reference to `OpenZWave::Manager::s_instance' collect2: error: ld returned 1 exit status make: *** [Makefile:70: /home/pi/projet_intern/open-zwave/cpp/examples/MinOZW/.lib/MinOZW] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant