Linking error when compiling with boost 1.71
Posted: Monday 14 October 2019 22:37
Hi everyone!
My first post here so bear with me. I can't get domoticz to compile in Arch Linux, well actually it compiles but fails in the linking step. I could not get the Arch Linux AUR package domoticz-git to work and went on trying to figure out why. I have read the wiki and this is what I have done:
Boost + Boost-libs (1.71 Arch Linux package, made sure 1.69 is uninstalled)
Cmake (3.15.4 Arch Linux package)
GCC (9.2.0 Arch Linux package)
Updated Openzwave (from Arch Linux AUR which git pulls r6502)
Cmake goes well and make goes to 99%, and then I get this error:
[ 99%] Linking CXX executable domoticz
/usr/bin/ld: CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o: in function `http::server::CWebServer::PluginList(Json::Value&)':
PluginManager.cpp:(.text+0x3dd2): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: PluginManager.cpp:(.text+0x3e12): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: PluginManager.cpp:(.text+0x3e63): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: PluginManager.cpp:(.text+0x3eaa): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: PluginManager.cpp:(.text+0x3efb): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o:PluginManager.cpp:(.text+0x3f42): more undefined references to `Json::Value::operator=(Json::Value&&)' follow
collect2: fel: ld returnerade avslutningsstatus 1
I have not found anyone else having this problem and I was thinking it could have something to do with boost 1.71 which appears to have a quite important role when it comes to linking. Any idea anyone?
Thanks for a great forum and an awesome home automation software, cheers!
My first post here so bear with me. I can't get domoticz to compile in Arch Linux, well actually it compiles but fails in the linking step. I could not get the Arch Linux AUR package domoticz-git to work and went on trying to figure out why. I have read the wiki and this is what I have done:
Boost + Boost-libs (1.71 Arch Linux package, made sure 1.69 is uninstalled)
Cmake (3.15.4 Arch Linux package)
GCC (9.2.0 Arch Linux package)
Updated Openzwave (from Arch Linux AUR which git pulls r6502)
Cmake goes well and make goes to 99%, and then I get this error:
[ 99%] Linking CXX executable domoticz
/usr/bin/ld: CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o: in function `http::server::CWebServer::PluginList(Json::Value&)':
PluginManager.cpp:(.text+0x3dd2): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: PluginManager.cpp:(.text+0x3e12): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: PluginManager.cpp:(.text+0x3e63): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: PluginManager.cpp:(.text+0x3eaa): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: PluginManager.cpp:(.text+0x3efb): undefined reference to `Json::Value::operator=(Json::Value&&)'
/usr/bin/ld: CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o:PluginManager.cpp:(.text+0x3f42): more undefined references to `Json::Value::operator=(Json::Value&&)' follow
collect2: fel: ld returnerade avslutningsstatus 1
I have not found anyone else having this problem and I was thinking it could have something to do with boost 1.71 which appears to have a quite important role when it comes to linking. Any idea anyone?
Thanks for a great forum and an awesome home automation software, cheers!