ros on windows, catkin_make build error

asked 2020-06-04 07:45:25 -0500

chillcirno gravatar image

I install ros melodic in win10. I use 'mklink /D' to create a symbolic links link 'E:/sdk/opt' to 'C:/opt'. After Install, It looks like it works.

But when I run catkin_make for a very simple c++ program, catkin_make said

C:\opt\rosdeps\x64\include\boost-1_66\boost/config/auto_link.hpp(388): fatal error C1189: #error:  "Mixing a dll boost library with a static runtime is a really bad idea..."

other infomation:

 F:\Project\aloam_ws>catkin_make --only-pkg-with-deps test --cmake-args -Wno-dev
Base path: F:\Project\aloam_ws
Source space: F:\Project\aloam_ws\src
Build space: F:\Project\aloam_ws\build
Devel space: F:\Project\aloam_ws\devel
Install space: F:\Project\aloam_ws\install
Whitelisted packages: test
####
#### Running command: "cmake F:\Project\aloam_ws\src -Wno-dev -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCATKIN_DEVEL_PREFIX=F:\Project\aloam_ws\devel -DCMAKE_INSTALL_PREFIX=F:\Project\aloam_ws\install -DCATKIN_WHITELIST_PACKAGES=test -G NMake Makefiles" in "F:\Project\aloam_ws\build"
####
-- The C compiler identification is MSVC 19.25.28614.0
-- The CXX compiler identification is MSVC 19.25.28614.0
-- Check for working C compiler: E:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: E:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: E:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: E:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: F:/Project/aloam_ws/devel
-- Using CMAKE_PREFIX_PATH: C:/opt/ros/melodic/x64;C:/opt/rosdeps/x64;C:/opt/vcpkg/installed/x64-windows
-- This workspace overlays: C:/opt/ros/melodic/x64
-- Found PythonInterp: C:/opt/python27amd64/python.exe (found suitable version "2.7.15", minimum required is "2")
-- Using PYTHON_EXECUTABLE: C:/opt/python27amd64/python.exe
-- Using default Python package layout
-- Found PY_em: C:\opt\python27amd64\lib\site-packages\em.pyc
-- Using empy: C:/opt/python27amd64/lib/site-packages/em.pyc
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: F:/Project/aloam_ws/build/test_results
-- Found gtest: gtests will be built
-- Using Python nosetests: C:/opt/python27amd64/Scripts/nosetests-2.7.exe
-- catkin 0.7.24
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- Using CATKIN_WHITELIST_PACKAGES: test
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - test
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'test'
-- ==> add_subdirectory(test)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Configuring done
-- Generating done
-- Build files have been written to: F:/Project/aloam_ws/build
####
#### Running command: "nmake" in "F:\Project\aloam_ws\build"
####

....
Microsoft (R) NMAKE 14.25.28614.0 
....

Scanning dependencies of target Project__setup_util.py_exec_install_python
[ 25%] Building CXX object CMakeFiles/Project__setup_util.py_exec_install_python.dir/catkin_generated/add_python_executable/Project__setup_util.py_exec_install_python/_setup_util.cpp.obj
_setup_util.cpp
[ 50%] Linking CXX ...
(more)
edit retag flag offensive close merge delete