I am trying to compile opensees 2.5 with ActiveTcl8.5.18 and Microsoft visual studio com 2017 in windows 10.
I tried to build the Win 64 using Opensees.sln. I get at least 10 errors with warnings including:
Cannot open include ‘Python.h’ No such file or directory for (OpenSeesPy)
unresolved external symbol "void * __cdecl OPS_NewtonHallM(void)" … for (OpenSees)
Any help what I am doing wrong or what is missing?
For the check out version 6701 of the OpenSees.sln do the following:
Open "Solution Explorer".
At the "algorithm" filter, inside "analysis" project, add the following existing files:
At the "surfaceLoad" filter, inside "element" project, add the following existing files:
Open the properties of the "element" project. At "Configuration Properties" -> "C/C++" ->"General" -> "Additional Include Directories" insert a new entry:
At the "element" project, create a new filter named "tetrahedron". Add to it the following existing files:
or wait until aschellenberg updates the file "OpenSees.sln".
For the Python issue you reported, I guess that you have not installed python3 at the default location.
Open "Solution Explorer". Open the properties of the "OpenSeesPy" project. At "Configuration Properties" -> "C/C++" ->"General" -> "Additional Include Directories" locate the last entry ("c:\Program Files\Python36\include") and point it to the "include" subfolder of your python installation folder.
Although I receive zero errors when compiling opensees
========== Rebuild All: 27 succeeded, 0 failed, 0 skipped ==========
and opensees.exe is being created I still receive a very long warning list including:
Warning LNK4075 ignoring '/INCREMENTAL' due to '/FORCE' specification project: OpenSees
Warning C4244 'argument': conversion from 'Py_ssize_t' to 'int', possible loss of data project: OpenSeesPy
Warning LNK4006 ops_getndm_ already defined in OpenSeesCommands.obj; second definition ignored project: OpenSeesPy
Warning C4101 'b_dim1': unreferenced local variable project: cblas
Warning C4311 'type cast': pointer truncation from 'triangle *' to 'unsigned long' project: element
Warning C4101 'Info': unreferenced local variable project: graph
This warning list is removed when I build the solution again.
But, when I try to use the compiled file to run problems the solution cannot start with the compiled version although it run properly with the .exe version available in the website.
So how can I fix this issue ?