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
Installation error in Windows #66
Comments
Thanks. I had exactly the problem you describe. The file CmakeError.log reported that mpi.h was not found. I installed the MPI SDK on my system but nothing changed. Then I have tried using the file you have provided but now I have problems in the configuration phase. cmake -S . -B build/release -G "Visual Studio 15 2017 Win64"
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm CMake Error at ext/CMakeLists.txt:102 (add_library): |
I have no clue. The directory C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/ext/sgtelib/src has not been deleted ? Please note that the ctest command will not fully succeed. Some tests will be detected as failed. This is due to the script managing the tests (Bash script not compatible with Windows command shell). |
Thanks, Christophe,
I have removed the build\release directory and tried the installation process again.
Unfortunately, I get the same error in the configuration process.
If I do not use the file to temporary fix the error below, the configuration does not encounter any problems, but the building phase is not successful.
In this last case, checking the log file the error seems due to the fact the system does not find mpi.h
CMake Error at build/release/ext/sgtelib/cmake_install.cmake:39 (file):
file INSTALL cannot find
"C:/......../nomad-v.4.2.0/build/release/ext/sgtelib/Release/sgtelib_main.exe":
|
@paolafal, can you report the outputs when running the commands for configuration, building and installation. The configuration should work even if mpi is not available (there is a test for that). |
The output running with your temporary fix is in my first post. |
I will check. |
Since the error was weird. I have deleted everything and created a new clone of NOMAD. Without the fix I get the error reported by you. Applying the fix I get the following I get an error cmake --install build/release |
@paolafal, I cannot reproduce any of the problems you encounter (not even the first install error about sgtelib_main.exe). I installed fresh nomad sources, I use the same compiler (VS2017), I tried within Windows Power Shell and regular command shell. I am wondering if CMake version could play a role in this mess. I have CMake 3.20.4. What version are you using ? |
Thanks a lot, Christophe, |
I ran with cmake 3.18.0-rc3 and still no problem on my side. I would like to test a few things to see what causes the problem on your side. You mention The error happens when cmake tries to install "example1_lib.exe". Can you check if If it does not exist, could you remove the build directory, rerun STEP 1 and STEP 2, and send me the outputs from both steps ? You mentioned that it looks good, but I want to inspect the details of step 2 to see why example1_lib.exe is potentially not built. Thanks for your help. |
The directory Release is missing in the folder |
cmake -S . -B build/release -G "Visual Studio 15 2017 Win64" -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19044. |
cmake --build build/release Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Checking Build System |
For Windows, we need to force the build to be for Release config with the command : cmake --build build/release --config Release After that we can install the Release build: cmake --install build/release --config Release |
Is it working now ? I find myself silly to forgot to mention about this earlier! |
Thank you very much. From the Readme.txt file, I did not understand that I had to specify --config Release. |
Thanks a lot for your help. I will update the README to be more explicit and create a specific issue. |
The command
cmake --install build/release
in Windows powershellReturns
A temporary fix consists of replacing the file CMakeLists.txt in C:/..../nomad-v.4.2.0/ext/sgtelib by the one in attachment.
I just commented "sgtelib_main.exe" which is not necessary for Nomad optimization.
CMakeLists.txt
The text was updated successfully, but these errors were encountered: