Kratos: Unable to compile on Windows 10

Created on 29 Aug 2020  路  22Comments  路  Source: KratosMultiphysics/Kratos

Description
I am not able to compile Kratos on Windows using the new scripst.

Scope
Which areas of Kratos are involved: Compilation

Additional info
This is batch file that I am using:

configure_release.bat

@echo off
rem Please do not modify this script

rem For any question please contact with us in:
rem - https://github.com/KratosMultiphysics/Kratos

rem Optional parameters:
rem You can find a list will all the compiation options in INSTALL.md or here:
rem - https://github.com/KratosMultiphysics/Kratos/wiki/Compilation-options

rem Set compiler
set CC=cl.exe
set CXX=cl.exe

rem Set variables
rem set KRATOS_SOURCE=~0,-1%/..
set KRATOS_SOURCE=..
set KRATOS_BUILD=%KRATOS_SOURCE%/build
set KRATOS_APP_DIR=applications

rem Warning: In windows this option only works if you run through a terminal with admin privileges
set KRATOS_INSTALL_PYTHON_USING_LINKS=ON

rem Set basic configuration
set KRATOS_BUILD_TYPE=Release
set BOOST_ROOT="D:\Program_Files\boost\boost_1_70_0"
set PYTHON_EXECUTABLE="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe"
set PYTHON_LIBRARIES="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python37.dll"

rem Set applications to compile
set KRATOS_APPLICATIONS=
CALL :add_app %KRATOS_APP_DIR%\LinearSolversApplication;
CALL :add_app %KRATOS_APP_DIR%\ExternalSolversApplication;
CALL :add_app %KRATOS_APP_DIR%\StructuralMechanicsApplication;
CALL :add_app %KRATOS_APP_DIR%\GeoMechanicsApplication;

rem Clean
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\cmake_install.cmake"
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\CMakeCache.txt"
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\CMakeFiles"

rem Configure
@echo on
cmake -G"Visual Studio 16 2019" -H"%KRATOS_SOURCE%" -B"%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%" ^
-DUSE_EIGEN_MKL=OFF

rem Build
cmake --build "%KRATOS_BUILD%/%KRATOS_BUILD_TYPE%" --target install -- /property:configuration=%KRATOS_BUILD_TYPE% /p:Platform=x64
goto:eof

rem Function to add apps
:add_app
set KRATOS_APPLICATIONS=%KRATOS_APPLICATIONS%%1;
goto:eof

Error

Could Not Find D:\src\Kratos\build\Release\cmake_install.cmake

D:\src\Kratos\scripts>cmake -G"Visual Studio 16 2019" -H".." -B"../build\Release" -DUSE_EIGEN_MKL=OFF
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17134.
-- The C compiler identification is MSVC 19.23.28107.0
-- The CXX compiler identification is MSVC 19.23.28107.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/Professional/VC/Tools/MSVC/14.23.28105/bin/Hostx64/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/2019/Professional/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No KRATOS_SOURCE_DIR is defined, using: D:/src/Kratos
-- No KRATOS_BINARY_DIR is defined, using: D:/src/Kratos/build/Release
-- No INSTALL_RUNKRATOS is defined, setting to ON
-- No KRATOS_BUILD_TESTING is defined. Setting to ON
-- No CMAKE_INSTALL_MESSAGE is defined. Setting to NEVER
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.16.1.windows.4")
-- CMAKE_SYSTEM_NAME = Windows
Detected compiler as MSVC
-- Found PythonInterp: "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe"
CMake Error at cmake_modules/FindPythonLibsNew.cmake:95 (message):
Python config failure:

Call Stack (most recent call first):
cmake_modules/pybind11Tools.cmake:16 (find_package)
CMakeLists.txt:260 (include)

-- Configuring incomplete, errors occurred!
See also "D:/src/Kratos/build/Release/CMakeFiles/CMakeOutput.log".

D:\src\Kratos\scripts>rem Build

D:\src\Kratos\scripts>cmake --build "../build/Release" --target install -- /property:configuration=Release /p:Platform=x64
Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: install.vcxproj

Compilation Help Wanted Windows

All 22 comments

CMakeOutput.log
The system is: Windows - 10.0.17134 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:
Build flags:
Id flags:

The output was:
0
Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 29-8-2020 20:58:53.
Project "D:\src\Kratos\build\Release\CMakeFiles\3.18.2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc142.pdb" /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
CompilerIdC.vcxproj -> D:\src\Kratos\build\Release\CMakeFiles\3.18.2\CompilerIdC.\CompilerIdC.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "D:\src\Kratos\build\Release\CMakeFiles\3.18.2\CompilerIdC\CompilerIdC.vcxproj" (default targets).

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:01.61

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"

The C compiler identification is MSVC, found in "D:/src/Kratos/build/Release/CMakeFiles/3.18.2/CompilerIdC/CompilerIdC.exe"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:
Build flags:
Id flags:

The output was:
0
Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 29-8-2020 20:58:55.
Project "D:\src\Kratos\build\Release\CMakeFiles\3.18.2\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc142.pdb" /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
CompilerIdCXX.vcxproj -> D:\src\Kratos\build\Release\CMakeFiles\3.18.2\CompilerIdCXX.\CompilerIdCXX.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "D:\src\Kratos\build\Release\CMakeFiles\3.18.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:01.75

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"

The CXX compiler identification is MSVC, found in "D:/src/Kratos/build/Release/CMakeFiles/3.18.2/CompilerIdCXX/CompilerIdCXX.exe"

Detecting C compiler ABI info compiled with the following output:
Change Dir: D:/src/Kratos/build/Release/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe cmTC_1f128.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28107 for x64

CMakeCCompilerABI.c

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1f128.dir\Debug\" /Fd"cmTC_1f128.dir\Debug\vc142.pdb" /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompilerABI.c"

cmTC_1f128.vcxproj -> D:\src\Kratos\build\Release\CMakeFiles\CMakeTmp\Debug\cmTC_1f128.exe

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: D:/src/Kratos/build/Release/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe cmTC_93112.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework

Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28107 for x64

CMakeCXXCompilerABI.cpp

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_93112.dir\Debug\" /Fd"cmTC_93112.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompilerABI.cpp"

cmTC_93112.vcxproj -> D:\src\Kratos\build\Release\CMakeFiles\CMakeTmp\Debug\cmTC_93112.exe

@roigcarlo will kill me, but did you tried to use MinGW?, https://github.com/KratosMultiphysics/Kratos/wiki/Windows-Install-(MinGW) it is much less troublesome in my opinion

Hi @Vahid-Galavi

Sems that python paths are wrong, from the config I see you are using

set PYTHON_EXECUTABLE="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe"
set PYTHON_LIBRARIES="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python37.dll"

which come with visual studio, maybe they updated the version. Updating the path should solve the problem.
If you can't find the path and you only have one version of python set PYTHON_EXECUTABLE=C:\Windows\py.exe should point to the one installed by Visual Studio directly.

Could you check if it works?

@loumalouomega I know you like Mingw but please stop recommending this procedure over VS until we fully support it.

Thanks @roigcarlo!

It solves the problem with python. Then I get some errors regarding BLAS that I have already solved. But now it gives error about Boost:

Log
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.

D:\src\Kratos\scripts>cmake -G"Visual Studio 16 2019" -H"~0,-1/.." -B"~0,-1/../build\Release" -DUSE_EIGEN_MKL=OFF
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17134.
-- No KRATOS_SOURCE_DIR is defined, using: D:/src/Kratos
-- No KRATOS_BINARY_DIR is defined, using: D:/src/Kratos/build/Release
-- No INSTALL_RUNKRATOS is defined, setting to ON
-- No KRATOS_BUILD_TESTING is defined. Setting to ON
-- No CMAKE_INSTALL_MESSAGE is defined. Setting to NEVER
-- CMAKE_SYSTEM_NAME = Windows
Detected compiler as MSVC
-- User defined install dir D:/src/Kratos/bin/Release
"KRATOS_SHARED_MEMORY_PARALLELIZATION" not defined, defaulting to "OpenMP"
Using OpenMP for shared memory parallelization
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR)
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR)
-- Boost Include: Boost_INCLUDE_DIR-NOTFOUND
-- Boost Linkdir:
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Preparing local ZLIB compilation.
-- AMatrix not found. Please define the AMATRIX_DIR pointing to the AMatrix root directory.

CMAKE_BUILD_TYPE ........ Release

WARNING: YOUR GIDPOST IS BEING COMPILED WITHOUT DEBUG (ALL ASSERTS WILL BE AVOIDED)
-- Configuring applications (ENV):
Adding application 'applications\LinearSolversApplication'
* configuring KratosLinearSolversApplication *
Adding application 'applications\ExternalSolversApplication'
* Configuring KratosExternalSolversApplication *
CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find BLAS (missing: BLAS_LIBRARIES)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.18/Modules/FindBLAS.cmake:947 (find_package_handle_standard_args)
applications/ExternalSolversApplication/CMakeLists.txt:21 (find_package)

-- Configuring incomplete, errors occurred!
See also "D:/src/Kratos/build/Release/CMakeFiles/CMakeOutput.log".
See also "D:/src/Kratos/build/Release/CMakeFiles/CMakeError.log".

D:\src\Kratos\scripts>rem Build

D:\src\Kratos\scripts>cmake --build "~0,-1/../build/Release" --target install -- /property:configuration=Release /p:Platform=x64
Microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

KratosVersion.vcxproj -> D:\src\Kratos\build\Release\kratos\KratosVersion.dir\Release\KratosVersion.lib
zlib.vcxproj -> D:\src\Kratos\build\Release\external_libraries\zlib\Release\zlib.dll
gidpost.vcxproj -> D:\src\Kratos\build\Release\external_libraries\gidpost\Release\gidpost.lib
triangle.vcxproj -> D:\src\Kratos\build\Release\external_libraries\triangle\Release\triangle.lib
mesh_condition.cpp
slip_constraint.cpp
D:\src\Kratos\kratos\includes/ublas_interface.h(37,14): fatal error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory [D:\src\Kratos\build\Release\kratos\KratosCore.vcxproj]
data_value_container.cpp
D:\src\Kratos\kratos\includes/dof.h(24,10): fatal error C1083: Cannot open include file: 'boost/variant.hpp': No such file or directory [D:\src\Kratos\build\Release\kratos\KratosCore.vcxproj]
flags.cpp
D:\src\Kratos\kratos\includes/ublas_interface.h(37,14): fatal error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory [D:\src\Kratos\build\Release\kratos\KratosCore.vcxproj]
model.cpp
D:\src\Kratos\kratos\includes/ublas_interface.h(37,14): fatal error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory [D:\src\Kratos\build\Release\kratos\KratosCore.vcxproj]
nodal_data.cpp
D:\src\Kratos\kratos\includes/ublas_interface.h(37,14): fatal error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory [D:\src\Kratos\build\Release\kratos\KratosCore.vcxproj]
variable_data.cpp
D:\src\Kratos\kratos\includes/ublas_interface.h(37,14): fatal error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory [D:\src\Kratos\build\Release\kratos\KratosCore.vcxproj]
variables_list.cpp
D:\src\Kratos\kratos\includes/ublas_interface.h(37,14): fatal error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory [D:\src\Kratos\build\Release\kratos\KratosCore.vcxproj]
embedded_nodal_variable_calculation_element_simplex.cpp
Attempting to cancel the build...
D:\src\Kratos\kratos\includes/ublas_interface.h(37,14): fatal error C1083: Cannot open include file: 'boost/numeric/ublas/matrix.hpp': No such file or directory [D:\src\Kratos\build\Release\kratos\KratosCore.vcxproj]
^CTerminate batch job (Y/N)? y

configure_release.bat

@echo off
rem Please do not modify this script

rem For any question please contact with us in:
rem - https://github.com/KratosMultiphysics/Kratos

rem Optional parameters:
rem You can find a list will all the compiation options in INSTALL.md or here:
rem - https://github.com/KratosMultiphysics/Kratos/wiki/Compilation-options

rem Set compiler
set CC=cl.exe
set CXX=cl.exe

rem Set variables
set KRATOS_SOURCE=~0,-1%/..
rem set KRATOS_SOURCE=..
set KRATOS_BUILD=%KRATOS_SOURCE%/build
set KRATOS_APP_DIR=applications

rem Warning: In windows this option only works if you run through a terminal with admin privileges
set KRATOS_INSTALL_PYTHON_USING_LINKS=ON

rem Set basic configuration
set KRATOS_BUILD_TYPE=Release
set BOOST_ROOT="D:\Program_Files\boost\boost_1_70_0"
rem set PYTHON_EXECUTABLE="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe"
rem set PYTHON_LIBRARIES="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python37.dll"
set PYTHON_EXECUTABLE=C:\Windows\py.exe
set LAPACK_LIBRARIES="D:\Program_Files\lapack\x64\liblapack.lib"
set BLAS_LIBRARIES="D:\Program_Files\blas\x64\libblas.lib"

rem Set applications to compile
set KRATOS_APPLICATIONS=
CALL :add_app %KRATOS_APP_DIR%\LinearSolversApplication;
CALL :add_app %KRATOS_APP_DIR%\ExternalSolversApplication;
CALL :add_app %KRATOS_APP_DIR%\StructuralMechanicsApplication;
CALL :add_app %KRATOS_APP_DIR%\GeoMechanicsApplication;

rem Clean
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\cmake_install.cmake"
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\CMakeCache.txt"
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\CMakeFiles"

rem Configure
@echo on
cmake -G"Visual Studio 16 2019" -H"%KRATOS_SOURCE%" -B"%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%" ^
-DUSE_EIGEN_MKL=OFF

rem Build
cmake --build "%KRATOS_BUILD%/%KRATOS_BUILD_TYPE%" --target install -- /property:configuration=%KRATOS_BUILD_TYPE% /p:Platform=x64
goto:eof

rem Function to add apps
:add_app
set KRATOS_APPLICATIONS=%KRATOS_APPLICATIONS%%1;
goto:eof

Seems that it cannot find boost, could you check if there is another folder inside D:\Program_Files\boost\boost_1_70_0 ? (sometimes its created when unzipping)

If that does not apply, try to set -DBOOST_INCLUDE_DIR="D:\Program_Files\boost\boost_1_70_0\includes" directly in the cmake command:

cmake -G"Visual Studio 16 2019" -H"%KRATOS_SOURCE%" -B"%KRATOS_BUILD%%KRATOS_BUILD_TYPE%" -DUSE_EIGEN_MKL=OFF -DBOOST_INCLUDE_DIR="D:\Program_Files\boost\boost_1_70_0\includes"

That should override the value in case cmake keeps failing

Boost folders are inside D:\Program_Files\boost\boost_1_70_0. However there is no filder, called "includes" in this folder. Actually there is no such a folder at all in any boost package.

Hi @Vahid-Galavi you are right, its the boost folder, sorry for the mistake. I've tried to reproduce the problem with CMake 3.18 and boost 1.70 and it seems to work in my laptop.

Maybe is a problem with permissions or with the backslash scaping. Can you try "D:/Program_Files/boost/boost_1_70_0" or removing the quotes instead of "D:\Program_Files\boost\boost_1_70_0" or ?

I will keep investigating in the meantime

@roigcarlo It seems that it is working now. I removed "includes" from the path and and also changed the key -DBOOST_INCLUDE_DIR to -DBoost_INCLUDE_DIR.

this is the new configure.bat:

@echo off
rem Please do not modify this script

rem For any question please contact with us in:
rem - https://github.com/KratosMultiphysics/Kratos

rem Optional parameters:
rem You can find a list will all the compiation options in INSTALL.md or here:
rem - https://github.com/KratosMultiphysics/Kratos/wiki/Compilation-options

rem Set compiler
set CC=cl.exe
set CXX=cl.exe

rem Set variables
set KRATOS_SOURCE=~0,-1%/..
rem set KRATOS_SOURCE=..
set KRATOS_BUILD=%KRATOS_SOURCE%/build
set KRATOS_APP_DIR=applications

rem Warning: In windows this option only works if you run through a terminal with admin privileges
set KRATOS_INSTALL_PYTHON_USING_LINKS=ON

rem Set basic configuration
set KRATOS_BUILD_TYPE=Release
set BOOST_ROOT="D:\Program_Filesboostboost_1_70_0"
rem set PYTHON_EXECUTABLE="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe"
rem set PYTHON_LIBRARIES="C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python37.dll"
set PYTHON_EXECUTABLE=C:\Windows\py.exe

rem Set applications to compile
set KRATOS_APPLICATIONS=
CALL :add_app %KRATOS_APP_DIR%\LinearSolversApplication;
CALL :add_app %KRATOS_APP_DIR%\ExternalSolversApplication;
CALL :add_app %KRATOS_APP_DIR%\StructuralMechanicsApplication;
CALL :add_app %KRATOS_APP_DIR%\GeoMechanicsApplication;

rem Clean
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\cmake_install.cmake"
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\CMakeCache.txt"
del /F /Q "%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%\CMakeFiles"

rem Configure
@echo on
cmake -G"Visual Studio 16 2019" ^
-H"%KRATOS_SOURCE%" ^
-B"%KRATOS_BUILD%\%KRATOS_BUILD_TYPE%" ^
-DBoost_INCLUDE_DIR="D:\Program_Filesboostboost_1_70_0" ^
-DLAPACK_LIBRARIES="D:\Program_Files\lapack\x64\liblapack.lib" ^
-DBLAS_LIBRARIES="D:\Program_Files\blas\x64\libblas.lib" ^
-DUSE_EIGEN_MKL=OFF

rem Build
cmake --build "%KRATOS_BUILD%/%KRATOS_BUILD_TYPE%" --target install -- /property:configuration=%KRATOS_BUILD_TYPE% /p:Platform=x64
goto:eof

rem Function to add apps
:add_app
set KRATOS_APPLICATIONS=%KRATOS_APPLICATIONS%%1;
goto:eof

Great! Thx for the feedback. I will keep looking why it does not directly work with the BOOST_ROOT and add the Boost_include as a fallback mechanism.

Thanks for your help @roigcarlo!

It is still compiling. In the past, configure.bat created a VS solution where we could compile the code through VS. It seems that this is not the case anymore with the new scripts and the solution is compiled in the command prompt, right?

@loumalouomega Thanks for your suggestion! I started compiling using MingW but I have to install many packages. I am halfway. I will update you how it goes with MingW but first I have to finish the compilation using MS VS.

@loumalouomega Thanks for your suggestion! I started compiling using MingW but I have to install many packages. I am halfway. I will update you how it goes with MingW but first I have to finish the compilation using MS VS.

imagen

@roigcarlo Now I am getting these error messages at the end of compilation:

EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///KratosMonitor.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///KratosUnittest.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///analysis_stage.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/applicationGenerator.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/classes/__init__.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/classes/classCreator.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/classes/classMemberCreator.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/classes/conditionCreator.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/classes/elementCreator.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/classes/processCreator.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/classes/variableCreator.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/createApplication.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/laplacian_application_example.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/utils/__init__.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/utils/constants.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/utils/io.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//application_generator/utils/templateRule.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///apply_periodic_condition_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_flag_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_input_to_conditions_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_input_to_elements_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_input_to_entities_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_input_to_nodes_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_variable_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_variable_to_conditions_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_variable_to_constraints_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_variable_to_elements_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_variable_to_entities_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_scalar_variable_to_nodes_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_time_derivative_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_by_direction_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_by_direction_to_condition_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_by_direction_to_element_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_by_direction_to_entity_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_by_direction_to_node_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_variable_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_variable_to_conditions_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_variable_to_constraints_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_variable_to_elements_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_variable_to_entities_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///assign_vector_variable_to_nodes_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///auxiliary_solver_utilities.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///base_convergence_criteria_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///check_scalar_base_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///check_scalar_from_process_info_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///check_scalar_to_nodes_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///check_vector_components_to_nodes_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///compare_two_files_check_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///csv_points_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///deprecation_management.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///eigen_solver_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///fix_scalar_variable_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///fix_vector_variable_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///from_json_check_result_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///gid_mesh_to_mdpa.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///gid_output.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///gid_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///integration_values_extrapolation_to_nodes_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///json_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///json_utilities.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///kratos_collada.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///kratos_utilities.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///line_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///lsdyna_mesh_to_mdpa.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///modeler_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///multiple_points_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///new_linear_solver_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///operation.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///point_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///print_vars_to_xml.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///process_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///python_linear_solver_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///python_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///python_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///read_materials_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///read_modelpart_from_json.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///read_stl.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//response_functions/__init__.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//response_functions/response_function_interface.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///restart_utility.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///run_cpp_mpi_tests.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///run_cpp_tests.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///run_tests.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///save_restart_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///scipy_conversion_tools.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///skin_detection_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///sub_model_part_skin_detection_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///sympy_fe_utilities.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//testing/__init__.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics//testing/utilities.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///tikz_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///time_based_ascii_file_writer_utility.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///timer_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///unv_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///vtk_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics///write_json_input.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/LinearSolversApplication/__init__.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/LinearSolversApplication//dense_linear_solver_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/ExternalSolversApplication/__init__.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication/__init__.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//adaptative_remeshing_structural_mechanics_analysis.py': operation not permitted [D:\src\Kratos\build\Relea
se\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//adaptative_remeshing_structural_mechanics_implicit_dynamic_solver.py': operation not permitted [D:\src\Kra
tos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//adaptative_remeshing_structural_mechanics_static_solver.py': operation not permitted [D:\src\Kratos\build\
Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//adaptative_remeshing_structural_mechanics_utilities.py': operation not permitted [D:\src\Kratos\build\Rele
ase\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//automatic_rayleigh_parameters_computation_process.py': operation not permitted [D:\src\Kratos\build\Releas
e\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//auxiliar_methods_adaptative_solvers.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxp
roj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//check_and_prepare_model_process_structural.py': operation not permitted [D:\src\Kratos\build\Release\insta
ll.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//check_eigenvalues_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//convergence_criteria_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//displacement_control_with_direction_process.py': operation not permitted [D:\src\Kratos\build\Release\inst
all.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//distribute_load_on_surface_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxpr
oj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//eigen_solution_input_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//eigen_solution_output_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//element_sensitivity_domain_integration_process.py': operation not permitted [D:\src\Kratos\build\Release\i
nstall.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//impose_rigid_movement_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//impose_z_strain_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//kratos_main_structural.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//perturb_geometry_sparse_utility.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//perturb_geometry_subgrid_utility.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj
]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//postprocess_eigenvalues_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//project_vector_on_surface_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxpro
j]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//python_solvers_wrapper_adaptative_remeshing_structural.py': operation not permitted [D:\src\Kratos\build\R
elease\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//python_solvers_wrapper_structural.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxpro
j]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//rve_analysis.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//simplified_nodal_contact_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj
]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//sprism_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_adjoint_static_solver.py': operation not permitted [D:\src\Kratos\build\Release\insta
ll.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_analysis.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_custom_scipy_base_solver.py': operation not permitted [D:\src\Kratos\build\Release\in
stall.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_eigensolver.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj
]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_explicit_dynamic_solver.py': operation not permitted [D:\src\Kratos\build\Release\ins
tall.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_formfinding_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.
vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_harmonic_analysis_solver.py': operation not permitted [D:\src\Kratos\build\Release\in
stall.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_implicit_dynamic_solver.py': operation not permitted [D:\src\Kratos\build\Release\ins
tall.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_prebuckling_analysis.py': operation not permitted [D:\src\Kratos\build\Release\instal
l.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_prebuckling_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.
vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_mechanics_static_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxpr
oj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_response.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//structural_response_function_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vcx
proj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//trilinos_convergence_criteria_factory.py': operation not permitted [D:\src\Kratos\build\Release\install.vc
xproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//trilinos_structural_mechanics_implicit_dynamic_solver.py': operation not permitted [D:\src\Kratos\build\Re
lease\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//trilinos_structural_mechanics_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.vcx
proj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/StructuralMechanicsApplication//trilinos_structural_mechanics_static_solver.py': operation not permitted [D:\src\Kratos\build\Release\inst
all.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication/__init__.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//apply_excavation_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//apply_normal_load_table_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//apply_scalar_constraint_table_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//apply_vector_constraint_table_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//check_and_prepare_model_process_geo.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//check_and_prepare_model_process_geo_one_phase.py': operation not permitted [D:\src\Kratos\build\Release\install.v
cxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//collect_stages.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//geomechanics_U_Pw_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//geomechanics_analysis.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//geomechanics_cleaning_utility.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//geomechanics_constitutivelaw_utility.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//geomechanics_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//geomechanics_solvers_wrapper.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//geomechanics_static_solver.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//periodic_interface_activation_process.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
EXEC : CMake error : failed to create symbolic link 'D:/src/Kratos/bin/Release/KratosMultiphysics/GeoMechanicsApplication//run_multiple_stages.py': operation not permitted [D:\src\Kratos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: The command "setlocal [D:\src\Kratos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake [D:\src\Kra
tos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\src\Kratos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: :cmEnd [D:\src\Kratos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\src\Kratos\build\Release\install
.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: :cmErrorLevel [D:\src\Kratos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: exit /b %1 [D:\src\Kratos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: :cmDone [D:\src\Kratos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\src\Kratos\build\Release\install.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: :VCEnd" exited with code -1. [D:\src\Kratos\build\Release\install.vcxproj]

That's an easy one, just turn

set KRATOS_INSTALL_PYTHON_USING_LINKS=OFF

This option tries to create symlinks to python files so you don't have to re-compile every time you touch a py script, but can give problems on win. With the option turned off should work just fine. but be aware that you will have to re-install if you make changes in *.py files.

Thanks @roigcarlo!

Hi @Vahid-Galavi, were you using the windows terminal with admin privileges when you got the symbolic link errors?

Hi @marcnunezc ,

No, I did't. But now, I just tested with admin privilages and it works! No more symbolic link errors.

I think this should be mentioned in the wiki that the windows terminal with adim privileges should be used.

Added in #7399

FYI @Vahid-Galavi if you wrap your code in ~~~ it will be formatted much nicer / be better readable
See here

@philbucher Thanks!

closing as seems to be solved
please reopen if not

Was this page helpful?
0 / 5 - 0 ratings