Hello
Looking at source file I found script named “build_ubuntu_18.04.sh”.
The question is how to compile DevSim under Ubuntu (or Mint) distribution?
If I use this script directly, I will see error at 36%:
~/DevSim/src/AutoEquation/ModelExprEval.cc:41:10: fatal error: EngineAPI.hh: there is no such file or directory
41 | #include "EngineAPI.hh"
| ^~~~~~~~~~~~~~
compilation terminated.
All
dependencies are installed. The use of “install_miniconda_linux.sh”
and “install_ubuntu_depend.sh” do not find any new packages to
load.
There
is an instruction to use “.travis.yml” script in “Install”
file. I am not familiar with yml scripts, how should I launchg it?
Thanks that worked, but now compilation terminated at 98%:
~/DevSim/external/symdiff/src/pycomp/PythonSymdiffCommands.cc:23:10:
fatal error: Python.h: No such file or
directory
23 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [src/pycomp/CMakeFiles/symdiff_py3.dir/build.make:63: src/pycomp/CMakeFiles/symdiff_py3.dir/PythonSymdiffCommands.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:289: src/pycomp/CMakeFiles/symdiff_py3.dir/all] Error 2
in
cmake/ubuntu_18.04.cmake
SET
(PYTHON3_ARCHIVE -L /usr/lib/x86_64-linux-gnu/libpython3.8.so)
SET (PYTHON3_INCLUDE /usr/include/python3.8)
in external/symdiff_ubuntu_18.04.sh
PYTHON3_ARCHIVE="/usr/lib/x86_64-linux-gnu/libpython3.8.so"
PYTHON3_INCLUDE="/usr/include/python3.8"
Now entries are exactly the same. But this variant will also give the same error at 98%.
So
I decided to change to make this strings look like this:
in
cmake/ubuntu_18.04.cmake
SET (PYTHON37_INCLUDE /usr/include/python3.8)
SET (PYTHON37_ARCHIVE -L /usr/lib/x86_64-linux-gnu/libpython3.8.so)
in external/symdiff_ubuntu_18.04.sh
PYTHON3_INCLUDE="/usr/include/python3.8"
PYTHON3_ARCHIVE="/usr/lib/x86_64-linux-gnu/libpython3.8.so"
Now all compilation process completed at 100% without any errors. But at the end of compilation process I see this message in terminal:
Scanning dependencies of target pythonapi_interpreter_py37
[ 97%] Building CXX object src/pythonapi/CMakeFiles/pythonapi_interpreter_py37.dir/GetArgs.o
[ 97%] Building CXX object src/pythonapi/CMakeFiles/pythonapi_interpreter_py37.dir/PythonCommands.o
[ 97%] Building CXX object src/pythonapi/CMakeFiles/pythonapi_interpreter_py37.dir/CommandHandler.o
[ 98%] Building CXX object src/pythonapi/CMakeFiles/pythonapi_interpreter_py37.dir/ObjectHolder.o
[ 98%] Building CXX object src/pythonapi/CMakeFiles/pythonapi_interpreter_py37.dir/OutputStream.o
[ 99%] Building CXX object src/pythonapi/CMakeFiles/pythonapi_interpreter_py37.dir/Interpreter.o
[ 99%] Built target pythonapi_interpreter_py37
[ 99%] Linking CXX shared library devsim_py3.so
[100%] Built target devsim_py37
must specify dir name
Now I can see “linux_x86_64_release” directory, but there is no “lib” directory in it or in any sub folder.
~/DevSim/linux_x86_64_release$
ls
CMakeCache.txt cmake_install.cmake Makefile testing CMakeFiles CTestTestfile.cmake src