Problem trying to configure and build Ignition Common when installing Gazebo for windows
I have already faced several issues from point 8 in advance, as I had to manually add to "DCMAKE_PREFIX_PATH" in the configure bat files some dependecies as it wasn't able to locate them.
However, I am now in step 10 trying to configure and build Ignition Common, but I get an error when linking.
Here is my configure file:
:: Install dependencies call %win_lib% :download_unzip_install dlfcn-win32-vc15-x64-dll-MD.zip call %win_lib% :install_ign_project ign-math ign-math4
:: Set configuration variables @set build_type=Release @if not "%1"=="" set build_type=%1 @echo Configuring for build type %build_type%
:: Go to the directory that this configure.bat file exists in cd /d %~dp0
:: Create a build directory and configure md build cd build cmake .. -G "NMake Makefiles" -DCMAKE_PREFIX_PATH="C:\Users\yimmi\gz-ws\ign-cmake\build\install\Release\lib\cmake;C:\Users\yimmi\gz-ws\ign-math\build\install\Release\lib\cmake\ignition-math4;C:\Users\yimmi\gz-ws\dlfcn-win32-vc15-x64-dll-MD\share\dlfcn-win32" -DCMAKE_INSTALL_PREFIX="%WORKSPACE_INSTALL_DIR%" -DCMAKE_BUILD_TYPE="%build_type%" -DBUILD_TESTING:BOOL=False :: Note: We disable testing by default. If the intention is for the CI to build and test :: this project, then the CI script will turn it back on.
:: If the caller wants to build and/or install, they should do so after calling this script
When running it in Visual Studio 2019 Developer Command Prompt i get the following messages
-- The C compiler identification is MSVC 19.29.30141.0 -- The CXX compiler identification is MSVC 19.29.30141.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- ignition-common1 version 1.1.1
-- Operating system is Windows
-- ====== Finding Dependencies ====== -- Looking for ignition-math4 - found
-- Skipping search for tinyxml2 and using an internal version
-- Found DL: TRUE -- Looking for libdl - found
CMake Warning (dev) at C:/Users/yimmi/gz-ws/ign-cmake/build/install/Release/lib/cmake/ignition-cmake0/cmake0/IgnUtils.cmake:265 (message): -- THIS MESSAGE IS INTENDED FOR IGNITION-COMMON AUTHORS -- (IF YOU SEE THIS, PLEASE REPORT IT)
Could not find pkg-config information for DL. It was not provided by the find-module for the package, nor was it explicitly passed into the call to ign_find_package(~). This is most likely an error in this project's use of ign-cmake. Call Stack (most recent call first): CMakeLists.txt:62 (ign_find_package) This warning is for project developers. Use -Wno-dev to suppress it.
-- Adding tinyxml2 source files -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed -- Performing Test COMPILER_HAS_DEPRECATED -- Performing Test COMPILER_HAS_DEPRECATED - Success -- Testing is disabled -- skipping UNIT tests -- Build configuration successful -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Build type: Release -- Install prefix: -- Configuring done -- Generating done -- Build files have been written to ...