-
Notifications
You must be signed in to change notification settings - Fork 606
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] Windows Build issue with BOOST #401
Comments
It looks like you are trying to use Boost 1.76 but you have Python 3.8 - which the latest version of boost that uses python 3.8 is 1.74. Either upgrade your python version or downgrade your boost version and you should be good. The error is because the boost version you have installed was built with Python 3.9. |
i'd recommend using the link in the PR you linked to above to download a pre-compiled Boost 1.74. once you do and set your proper environmental variables it should work. |
I am actually facing the same issue with Boost 1.74 and Python 3.9. This used to work in Galactic, but for some reason seems to break in Humble. Trying to figure out what's going on! |
You can find the linking error on our Windows build in Github actions: https://github.com/RoboStack/ros-humble/runs/6868272365?check_suite_focus=true Any ideas? Would be very much appreciated! |
I fixed this by adding this to src/CMakeLists.txt
|
Hello ROS developers! I'm encountering the same error mentioned by @ShivamPR21 when building this package on Windows. I'm using Boost 1.74.0, Python 3.8, and OpenCV 4.1. module.obj : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl boost::python::handle<struct _object>::handle<struct _object>(void)" (__imp_??0?$handle@U_object@@@python@boost@@QEAA@XZ), referenciado na fun��o "public: void __cdecl boost::python::detail::keyword::`default constructor closure'(void)" (??_Fkeyword@detail@python@boost@@QEAAXXZ) [C:\Desktop\naad_ws\build\cv_bridge\src\cv_bridge_boost.vcxproj]
module.obj : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl boost::python::handle<struct _object>::handle<struct _object>(class boost::python::handle<struct _object> const &)" (__imp_??0?$handle@U_object@@@python@boost@@QEAA@AEBV012@@Z), referenciado na fun��o "public: __cdecl boost::python::detail::keyword::keyword(struct boost::python::detail::keyword &&)" (??0keyword@detail@python@boost@@QEAA@$$QEAU0123@@Z) [C:\Desktop\naad_ws\build\cv_bridge\src\cv_bridge_boost.vcxproj]
module.obj : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl boost::python::objects::py_function_impl_base::py_function_impl_base(void)" (__imp_??0py_function_impl_base@objects@python@boost@@QEAA@XZ), referenciado na fun��o "class boost::python::api::object __cdecl boost::python::detail::make_function1<class boost::python::api::object (__cdecl*)(class boost::python::api::object,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)>(class boost::python::api::object (__cdecl*)(class boost::python::api::object,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &),...)" (??$make_function1@P6A?AVobject@api@python@boost@@V1234@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@1@Z@detail@python@boost@@YA?AVobject@api@12@P6A?AV3412@V3412@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@1@ZZZ) [C:\Desktop\naad_ws\build\cv_bridge\src\cv_bridge_boost.vcxproj]
C:\Desktop\naad_ws\build\cv_bridge\src\boost\Release\cv_bridge_boost.pyd : fatal error LNK1120: 3 externo n�o resolvidos [C:\Desktop\naad_ws\build\cv_bridge\src\cv_bridge_boost.vcxproj] How can I resolve this issue? |
I'm not sure how I solved it, but adding the @wolfv part at iron branch and rebooting the PC worked. ¯_(ツ)_/¯ |
Hi! all
I am new to windows environment with ROS ecosystem.
Here facing problems with windows build of
cv_bridge
stating: fatal error LNK1120: 3 unresolved externals
I have tried some of the open PRs for fixes, but that didn't work #390
here is complete output:
The text was updated successfully, but these errors were encountered: