Open ahmadshiddiqn opened 4 years ago
D:\Gazebo\gz-ws\ign-fuel-tools\build>nmake install
Microsoft (R) 程序维护实用工具 14.16.27043.0 版 版权所有 (C) Microsoft Corporation。 保留所有权利。
[ 4%] Linking CXX shared library ignition-fuel_tools1.dll LINK: command "C:\PROGRA~2\MICROS~1\2017\BUILDT~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x64\link.exe /nologo @CMakeFiles\ignition-fuel_tools1.dir\objects1.rsp /out:ignition-fuel_tools1.dll /implib:ignition-fuel_tools1.lib /pdb:D:\Gazebo\gz-ws\ign-fuel-tools\build\src\ignition-fuel_tools1.pdb /dll /version:1.2 /machine:x64 /INCREMENTAL:NO ..\install\Release\bin\libcurl.dll D:\Gazebo\gz-ws\ign-common\build\src\ignition-common1.lib ..\install\Release\lib\jsoncpp.lib ..\install\Release\lib\yaml.lib ..\install\Release\bin\libcurl.dll ..\install\Release\lib\ignition-math4.lib ..\install\Release\lib\jsoncpp.lib ..\install\Release\lib\yaml.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:ignition-fuel_tools1.dll.manifest" failed (exit code 1107) with the following output: ClientConfig.cc.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance ..\install\Release\bin\libcurl.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x350 RRS feed NMAKE : fatal error U1077: “"C:\Program Files\CMake\bin\cmake.exe"”: 返回代码“0xffffffff” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"”: 返回代码“0x2” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"”: 返回代码“0x2” Stop.
D:\Gazebo\gz-ws\ign-fuel-tools\build>nmake install
Microsoft (R) 程序维护实用工具 14.16.27043.0 版 版权所有 (C) Microsoft Corporation。 保留所有权利。
[ 4%] Linking CXX shared library ignition-fuel_tools1.dll LINK: command "C:\PROGRA~2\MICROS~1\2017\BUILDT~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x64\link.exe /nologo @CMakeFiles\ignition-fuel_tools1.dir\objects1.rsp /out:ignition-fuel_tools1.dll /implib:ignition-fuel_tools1.lib /pdb:D:\Gazebo\gz-ws\ign-fuel-tools\build\src\ignition-fuel_tools1.pdb /dll /version:1.2 /machine:x64 /INCREMENTAL:NO ..\install\Release\bin\libcurl.dll D:\Gazebo\gz-ws\ign-common\build\src\ignition-common1.lib ..\install\Release\lib\jsoncpp.lib ..\install\Release\lib\yaml.lib ..\install\Release\bin\libcurl.dll ..\install\Release\lib\ignition-math4.lib ..\install\Release\lib\jsoncpp.lib ..\install\Release\lib\yaml.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:ignition-fuel_tools1.dll.manifest" failed (exit code 1107) with the following output: ClientConfig.cc.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance ..\install\Release\bin\libcurl.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x350 RRS feed NMAKE : fatal error U1077: “"C:\Program Files\CMake\bin\cmake.exe"”: 返回代码“0xffffffff” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"”: 返回代码“0x2” Stop. NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"”: 返回代码“0x2” Stop.
I refine it by change the build.make file.
Change every ..\install\Release\bin\libcurl.dll
to ..\install\Release\lib\libcurl_imp.lib
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]
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:
What step have I done?
Step to reproduce:
ign_find_package(YAML REQUIRED)
in CMakeLists.txt in ign-fuel-tools repo toign_find_package(YAMLCPP REQUIRED)
. Run configure.bat again