Compiling Delft3D on Win10- Unable to create python file delft3d_open.sln - Forum - Delft3D
Forum
- Home
- 3. Archive
- General
- Compilation on Windows
- Compiling Delft3D on Win10- Unable to create python file delft3d_open.sln
Compiling Delft3D on Win10- Unable to create python file delft3d_open.sln
Compiling Delft3D on Win10- Unable to create python file delft3d_open.sln
Youngling Posts: 3 Join Date: 8/22/16 Recent PostsI am trying to compile the latest trunk version of Delft 3D on Windows 10 and have the following prerequisites installed. Unfortunately I am having trouble generating the python file after running prepare_sln python file (screen shot attached with Command line error). Hence I am unable to generate the python file delft3d_open.sln
Subversion (download successful)
Microsoft Visual Studio 2017 with C++ Compilers
Intel FORTRAN compiler 18
(Intel Parallel Studio XE 2018 Update 2 Composer Edition for Fortran Windows* Integration for Microsoft Visual Studio* 2017, Version 18.0.0038.15)
Python
It says that the the newest version are still to be tested? However I am having problems obtaining older versions. Please would you be able to recommend the next step to proceed. Thanks a lot.
Kind Regards
Siddhi
Dr. Siddhi Joshi
Post Doc in Geography
National University of Ireland Galway
RE: Compiling Delft3D on Win10- Unable to create python file delft3d_open.s
Padawan Posts: 97 Join Date: 1/3/11 Recent PostsHi Siddhi,
I'm afraid you have to modify the script "prepare_sln.py" yourself to fit to your system. Line 186 is:
getucrtdir["2017"] = '"' + str(os.environ.get("VS140COMNTOOLS")) + "..\\..\\VC\\vcvarsall.bat" + '" amd64&&set UniversalCRTSdkDir'
It seems that environment parameter VS140COMNTOOLS does not exist on your system. Can you find out what the correct way is to reach the "vcvarsall.bat" script?
Regards,
Adri
RE: Compiling Delft3D on Win10- Unable to create python file delft3d_open.s
Padawan Posts: 97 Join Date: 1/3/11 Recent PostsHi Siddhi,
The string "getucrtdir" is executed in a separate process to detect the location/name of the ucrt directory, see line 467 in the prepare_sln.py script. It seems that the VisualStudio behaviour is changed in VS2017. I don't expect that the change in "working directory" causes the problem. But I'm not able to investigate this problem.
Regards,
Adri