Closed ctribes closed 2 years ago
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. I report below what happened. Any clue?
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. -- The C compiler identification is MSVC 19.16.27045.0 -- The CXX compiler identification is MSVC 19.16.27045.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/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/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring custom options -- Installation prefix set to C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release -- Configuring for use of Sgtelib library -- Configuring for use of Sgtelib library - Sgtelib found. done -- Test OpenMP for parallel functionalities -- found -- Configuring build for library and batch mode examples -- Add example library #1 -- Add example library #2 -- Add example library #3 -- Add example library single_obj_parallel -- Add example library tests using Suggest And Observe -- Add example batch #1 -- Add example batch #2 -- Add example batch single_obj -- Add example batch surrogate sort -- Add example batch single_obj_parallel -- Add example batch single_obj_MPIparallel (MPI found). -- Configuring build for library and batch mode examples - done -- C interface to Nomad NOT built -- Python interface to Nomad NOT built -- Matlab interface to Nomad NOT built -- Java Swig interface to Nomad NOT built -- Configuring custom options - done -- Configuring done CMake Error at ext/CMakeLists.txt:102 (add_library): Cannot find source file:
src/Kernel.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
CMake Error at ext/CMakeLists.txt:102 (add_library): No SOURCES given to target: sgtelib
I have no clue. The directory C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/ext/sgtelib/src has not been deleted ? Could you try to remove the build/release directory and repeat the build sequence ?
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 cmake -S . -B build/release -G "Visual Studio 15 2017 Win64"
with your temporary fix is in my first post. If I do not use the temporary fix, the configuration is successful.
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 STEP 1 (cmake -S . -B build/release -G "Visual Studio 15 2017 Win64") It looks good STEp 2 (cmake --build build/release) Looks good STEP 3 (cmake --install build/release)
I get an error
cmake --install build/release -- Install configuration: "Release" -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Defines.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Exception.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Kernel.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Matrix.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Metrics.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_CN.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_Ensemble.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_Ensemble_Stat.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_Factory.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_KS.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_Kriging.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_LOWESS.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_PRS.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_PRS_CAT.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_PRS_EDGE.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_Parameters.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_RBF.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Surrogate_Utils.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/Tests.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/TrainingSet.hpp -- Installing: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/include/sgtelib/sgtelib_help.hpp CMake Error at build/release/examples/basic/library/example1/cmake_install.cmake:55 (file): file INSTALL cannot find "C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/examples/basic/library/example1/Release/example1_lib.exe": File exists. Call Stack (most recent call first): build/release/examples/cmake_install.cmake:37 (include) build/release/cmake_install.cmake:42 (include)
@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 ? I don't know what else can be problematic. I have Microsoft MPI but it should compile without it. MPI is only required for examples\basic\batch\single_obj_MPIparallel.
Thanks a lot, Christophe, I did not have any more errors on the MPI in the last attempt since I had installed the Microsoft MPI. I still get the error on sgtelib_main.exe, though. The version of cmake I have is 3.18.0-rc3.
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 " 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 STEP 1 (cmake -S . -B build/release -G "Visual Studio 15 2017 Win64") It looks good STEp 2 (cmake --build build/release) Looks good STEP 3 (cmake --install build/release)"
The error happens when cmake tries to install "example1_lib.exe". Can you check if C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/examples/basic/library/example1/Release/example1_lib.exe
exists ? This file should be created during step 2.
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 C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/examples/basic/library/example1/ Now I will reperform the first two steps and post the outputs. If there is some log file that might be useful, let me know.
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. -- The C compiler identification is MSVC 19.16.27045.0 -- The CXX compiler identification is MSVC 19.16.27045.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/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/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring custom options -- Installation prefix set to C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release -- Configuring for use of Sgtelib library -- Configuring for use of Sgtelib library - Sgtelib found. done -- Test OpenMP for parallel functionalities -- found -- Configuring build for library and batch mode examples -- Add example library #1 -- Add example library #2 -- Add example library #3 -- Add example library single_obj_parallel -- Add example library tests using Suggest And Observe -- Add example batch #1 -- Add example batch #2 -- Add example batch single_obj -- Add example batch surrogate sort -- Add example batch single_obj_parallel -- Add example batch single_obj_MPIparallel (MPI found). -- Configuring build for library and batch mode examples - done -- C interface to Nomad NOT built -- Python interface to Nomad NOT built -- Matlab interface to Nomad NOT built -- Java Swig interface to Nomad NOT built -- Configuring custom options - done -- Configuring done -- Generating done -- Build files have been written to: C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release
cmake --build build/release
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/src/CMakeLists.txt WriteAttributeDefinitionFile.cpp WriteAttributeDefinitionFile.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\src\Debug\WriteAttributeDefinitionFile.exe Generating ../../../src/Attribute/cacheAttributesDefinition.hpp, ../../../src/Attribute/deprecatedAttributesDefinition.hpp, ../../../src/Attribute/displayAttributesDefinition.hpp, ../../. ./src/Attribute/evalAttributesDefinition.hpp, ../../../src/Attribute/evaluatorControlAttributesDefinition.hpp, ../../../src/Attribute/evaluatorControlGlobalAttributesDefinition.hpp, ../.. /../src/Attribute/pbAttributesDefinition.hpp, ../../../src/Attribute/runAttributesDefinition.hpp, ../../../src/Attribute/runAttributesDefinitionNM.hpp, ../../../src/Attribute/runAttribute sDefinitionCS.hpp, ../../../src/Attribute/runAttributesDefinitionPSDSSD.hpp, ../../../src/Attribute/runAttributesDefinitionQuadModel.hpp, ../../../src/Attribute/runAttributesDefinitionSgt elibModel.hpp, ../../../src/Attribute/runAttributesDefinitionVNS.hpp Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/src/CMakeLists.txt ArrayOfDouble.cpp ArrayOfPoint.cpp Direction.cpp Double.cpp LHS.cpp MatrixUtils.cpp Point.cpp RandomPickup.cpp RNG.cpp OutputDirectToFile.cpp OutputInfo.cpp OutputQueue.cpp StatsInfo.cpp AllParameters.cpp Attribute.cpp AttributeFactory.cpp CacheParameters.cpp DeprecatedParameters.cpp DisplayParameters.cpp EvalParameters.cpp Generating Code... Compiling... EvaluatorControlParameters.cpp EvaluatorControlGlobalParameters.cpp ParameterEntries.cpp ParameterEntry.cpp Parameters.cpp ParametersNomad3.cpp PbParameters.cpp RunParameters.cpp TypeAttribute.cpp BBInputType.cpp BBOutputType.cpp CallbackType.cpp ComputeType.cpp DirectionType.cpp EvalSortType.cpp EvalType.cpp LHSearchType.cpp ListOfVariableGroup.cpp SgtelibModelFeasibilityType.cpp SgtelibModelFormulationType.cpp Generating Code... Compiling... StepType.cpp AllStopReasons.cpp ArrayOfString.cpp Clock.cpp defines.cpp Exception.cpp fileutils.cpp StopReason.cpp Uncopyable.cpp utils.cpp Generating Code... Auto build dll exports Creating library C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/src/Debug/nomadUtils.lib and object C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/b uild/release/src/Debug/nomadUtils.exp nomadUtils.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\src\Debug\nomadUtils.dll Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/src/CMakeLists.txt CacheBase.cpp CacheSet.cpp Barrier.cpp BBInput.cpp BBOutput.cpp ComparePriority.cpp ComputeSuccessType.cpp Eval.cpp EvalPoint.cpp EvalQueuePoint.cpp Evaluator.cpp EvaluatorControl.cpp EvcMainThreadInfo.cpp Generating Code... Auto build dll exports Creating library C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/src/Debug/nomadEval.lib and object C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/bu ild/release/src/Debug/nomadEval.exp nomadEval.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\src\Debug\nomadEval.dll Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/ext/sgtelib/CMakeLists.txt Kernel.cpp Matrix.cpp Metrics.cpp Surrogate.cpp Surrogate_CN.cpp Surrogate_Ensemble.cpp Surrogate_Ensemble_Stat.cpp Surrogate_Factory.cpp Surrogate_KS.cpp Surrogate_Kriging.cpp Surrogate_LOWESS.cpp Surrogate_PRS.cpp Surrogate_PRS_CAT.cpp Surrogate_PRS_EDGE.cpp Surrogate_Parameters.cpp Surrogate_RBF.cpp Surrogate_Utils.cpp Tests.cpp TrainingSet.cpp sgtelib_help.cpp Generating Code... Creating library C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/ext/sgtelib/Debug/sgtelib.lib and object C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/no mad/build/release/ext/sgtelib/Debug/sgtelib.exp sgtelib.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\ext\sgtelib\Debug\sgtelib.dll Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/src/CMakeLists.txt Algorithm.cpp AlgoStopReasons.cpp CacheInterface.cpp EvcInterface.cpp Initialization.cpp Iteration.cpp IterationUtils.cpp MainStep.cpp MegaIteration.cpp MeshBase.cpp Projection.cpp Step.cpp Subproblem.cpp SubproblemManager.cpp SurrogateEvaluation.cpp Termination.cpp TrialPointStats.cpp CS.cpp CSInitialization.cpp CSIteration.cpp Generating Code... Compiling... CSMegaIteration.cpp CSMesh.cpp CSPoll.cpp CSPollMethod.cpp CSUpdate.cpp DoublePollMethod.cpp GMesh.cpp LHSearchMethod.cpp Mads.cpp MadsInitialization.cpp MadsIteration.cpp MadsMegaIteration.cpp MadsUpdate.cpp MegaSearchPoll.cpp NMSearchMethod.cpp NP1UniPollMethod.cpp Ortho2NPollMethod.cpp OrthoNPlus1PollMethod.cpp Poll.cpp PollMethodBase.cpp Generating Code... Compiling... QuadSldSearchMethod.cpp QuadSearchMethod.cpp Search.cpp SearchMethodAlgo.cpp SearchMethodBase.cpp SearchMethodSimple.cpp SgtelibSearchMethod.cpp SinglePollMethod.cpp SpeculativeSearchMethod.cpp UserSearchMethod.cpp VNSSearchMethod.cpp LH.cpp NM.cpp NMAllReflective.cpp NMInitialization.cpp NMInitializeSimplex.cpp NMIteration.cpp NMIterationUtils.cpp NMMegaIteration.cpp NMReflective.cpp Generating Code... Compiling... NMShrink.cpp NMSimplexEvalPoint.cpp NMUpdate.cpp PhaseOne.cpp PSDMads.cpp PSDMadsMegaIteration.cpp QuadModelAlgo.cpp QuadModelEvaluator.cpp QuadModelInitialization.cpp QuadModelIteration.cpp QuadModelIterationUtils.cpp QuadModelMegaIteration.cpp QuadModelOptimize.cpp QuadModelSinglePass.cpp QuadModelUpdate.cpp QuadModelSld.cpp QuadModelSldAlgo.cpp QuadModelSldEvaluator.cpp QuadModelSldInitialization.cpp QuadModelSldIteration.cpp Generating Code... Compiling... QuadModelSldIterationUtils.cpp QuadModelSldMegaIteration.cpp QuadModelSldOptimize.cpp QuadModelSldSinglePass.cpp QuadModelSldUpdate.cpp SgtelibModel.cpp SgtelibModelEvaluator.cpp SgtelibModelFilterCache.cpp SgtelibModelInitialization.cpp SgtelibModelIteration.cpp SgtelibModelMegaIteration.cpp SgtelibModelOptimize.cpp SgtelibModelUpdate.cpp SSDMads.cpp SSDMadsMegaIteration.cpp VNS.cpp Generating Code... Auto build dll exports Creating library C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/build/release/src/Debug/nomadAlgos.lib and object C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/b uild/release/src/Debug/nomadAlgos.exp nomadAlgos.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\src\Debug\nomadAlgos.dll Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/batch/SuggestAndObserve/CMakeLists.txt utils.cpp utils.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\batch\SuggestAndObserve\utils.dir\Debug\utils.lib Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/library/NMonly/CMakeLists.txt NMOpt.cpp NMOpt.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\library\NMonly\Debug\NMOpt.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/batch/single_obj/CMakeLists.txt bb.cpp bb.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\batch\single_obj\Debug\bb.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/batch/example1/CMakeLists.txt bb.cpp bb1.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\batch\example1\Debug\bb1.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/batch/example2/CMakeLists.txt bb.cpp bb2.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\batch\example2\Debug\bb2.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/batch/single_obj_parallel/CMakeLists.txt bb.cpp bb3.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\batch\single_obj_parallel\Debug\bb3.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/batch/single_obj_MPIparallel/CMakeLists.txt bb.cpp bb4.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\batch\single_obj_MPIparallel\Debug\bb4.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/batch/SuggestAndObserve/CMakeLists.txt bbr.cpp bbr.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\batch\SuggestAndObserve\Debug\bbr.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/library/example1/CMakeLists.txt example1_lib.cpp example1_lib.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\library\example1\Debug\example1_lib.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/library/example2/CMakeLists.txt example2_lib.cpp example2_lib.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\library\example2\Debug\example2_lib.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/library/example3/CMakeLists.txt example3_lib.cpp example3_lib.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\library\example3\Debug\example3_lib.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/library/FixedVariable/CMakeLists.txt fixedVariable.cpp fixedVariable.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\library\FixedVariable\Debug\fixedVariable.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/library/exampleSuggestAndObserve/CMakeLists.txt loopSuggestAndObserve.cpp loopSuggestAndObserve.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\library\exampleSuggestAndObserve\Debug\loopSuggestAndObserve .exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/src/CMakeLists.txt nomad.cpp nomad.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\src\Debug\nomad.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/batch/SuggestAndObserve/CMakeLists.txt observe.cpp observe.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\batch\SuggestAndObserve\Debug\observe.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/library/Restart/CMakeLists.txt restart.cpp restart.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\library\Restart\Debug\restart.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/library/PSDMads/CMakeLists.txt rosenbrock.cpp rosenbrock.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\library\PSDMads\Debug\rosenbrock.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/library/single_obj_parallel/CMakeLists.txt basic_lib.cpp single_obj_parallel.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\library\single_obj_parallel\Debug\single_obj_parallel.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/batch/surrogate_sort/CMakeLists.txt bb.cpp ss_bb.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\batch\surrogate_sort\Debug\ss_bb.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/basic/batch/surrogate_sort/CMakeLists.txt sgte.cpp ss_sgte.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\basic\batch\surrogate_sort\Debug\ss_sgte.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/batch/SuggestAndObserve/CMakeLists.txt suggest.cpp suggest.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\batch\SuggestAndObserve\Debug\suggest.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/library/exampleSuggestAndObserve/CMakeLists.txt suggestAndObserve.cpp suggestAndObserve.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\library\exampleSuggestAndObserve\Debug\suggestAndObserve.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/batch/LHonly/CMakeLists.txt u.cpp u.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\batch\LHonly\Debug\u.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/library/FixedVariable/CMakeLists.txt u.cpp ufl.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\library\FixedVariable\Debug\ufl.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/examples/advanced/batch/FixedVariable/CMakeLists.txt uu.cpp uu.exe.vcxproj -> C:\Users\pfalugi\work\Tools\software\solvers\NOMAD4\nomad\build\release\examples\advanced\batch\FixedVariable\Debug\uu.exe Building Custom Rule C:/Users/pfalugi/work/Tools/software/solvers/NOMAD4/nomad/CMakeLists.txt
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. I thought that it installed the debug version by default, and I had to specify --config Release If I wanted the release one. I thought that the name release in "build/release" could be any name. Yes, it works. Do not worry. When we work for a long time on something we get some information for granted. We all do that
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