-
Notifications
You must be signed in to change notification settings - Fork 21
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
cant build ign-fuel-tools1 on windows: %win_dir% is empty, cant found YAML (yaml-0.1), unknown include path appeared, failed to nmake, etc. #93
Comments
D:\Gazebo\gz-ws\ign-fuel-tools\build>nmake install Microsoft (R) 程序维护实用工具 14.16.27043.0 版 [ 4%] Linking CXX shared library ignition-fuel_tools1.dll |
I refine it by change the build.make file. |
Greetings. For ahmadshiddiqn I suggest you start over by deleting the entire build folder in your ign-fuel-tools. Follow the tutorial for Gazebo9 for windows till the .\configure command of step 11. You should have downloaded and extracted all the dependencies listed in step 2. If the command prompt tells you that you are missing something then go to ..\gz-ws\ign-fuel-tools\build and open the CMakeCache.txt. There find the lines where it had tried to find the missing files and set the path for each of their configurations, includes and libraries. You may need to build ignition-tools as well because it was needed for me. Set the paths for only those it is missing that are causing the build warnings. It is also important that you specify the library paths to the .lib files themselves and set the CMAKE_INSTALL_PREFIX path like shown in the tutorial. Now execute nmake. Hopefully no errors pop up. Then do nmake install. You should have the ign-fuel-tools files build. It worked for me. I wish you luck, ahmadshiddiqn. |
Microsoft Windows [Version 10.0.19041.388]
It started from the first try of installing gazebo from following the tutorial
I use vcvarsall.bat from Visual Studio 2019 C++ (x64)
Hi, I've been trying build a plugin from source. But it needed ignition-common1 and ignition-fuel-tools1, so I tried to follow the steps to install gazebo on windows using the tutorial steps provided here
i managed to follow until step 9, when installin ign-common. I found the workaround and somehow am able to nmake install it. more problem occurs when i was trying to build ign-fuel-tools.
first of all, when running configure.bat, it expect to download and uzip the required zip files, but it failed (as with the previous steps). here's the output of said line:
the command from the batch file is
i assume both %win_lib% and download_unzip_install are exclusive to the ignition developres' CI system as written in the top of configure.bat. it wasn't that much of an issue as the process still runs.
the second one is on finding all the package, especially the YAML package. I already installed ros, and it cant find everything except CURL package (its already on rosdeps from installing ros). so i extracted them from the files i downloaded provided in the tutorial. i placed them on rosdeps as where all the library ros was installed (including gazebo). everything except yaml were all found. it is said, it needed yaml-0.1:
then, i realized when installing ros, there is already yaml provided, called yaml-cpp. so i looked for how to find_package for yaml-cpp. found the cmake files, and copy it to ign-cmake cmake files called FindYamlCpp.cmake, and change the CMakeList from ign_find_package(YAML REQUIRED) to YAMLCPP, and somehow it manages to keep going. with a warning, and the third error (i 'll include the warning with the third error log below).
the third error is when the cmake tried to finish it processes:
it said "JSONCPP::JSONCPP" includes path is non-existent because it refers to a directory i dont have in my pc. for some reason, the JSONCPP acknowledge its include path is on scpeters users whom i dont know. but i workaround it with creating folder with the same directory path as what JSONCPP include path acknowledged (C:/Users/scpeters/Downloads/jsoncpp-1.8.4/install/include) and it manage to finishe the configure part.
another problem arise from when i tried to nmake.
when i looked for the error source inside build.make line 477, the said line is like this (i included the line number in below snippet):
it's strange that in the configure part the ZIP is said to be found, but in the build.make, it's NOTFOUND. and so i change ZIP::ZIP-NOTFOUND the path of which zip.lib is at.
the problem seemed to be solved, so i tried running another nmake, and here's the output:
at this point, im no longer have knowledge of what happened. even the workaround i tried is something i figured out by reading through the process of what happen in the files and change the line of code without expecting what will be the output. i dont have knowledge of cmake and nmake in the first place, so i dont know what to do anymore.
i dont know if this a bug or this problems just happen to me. i hope i was right by reporting it here. thank you.
in short:
ign_find_package(YAML REQUIRED)
in CMakeLists.txt in ign-fuel-tools repo toign_find_package(YAMLCPP REQUIRED)
. Run configure.bat againThe text was updated successfully, but these errors were encountered: