We are almost there.
Even though Partio was compiled as a external lib for SPlisHSPlasH, it doesn't have the Python version of it. We need to compile it from the source.
Again, clone the repository:
- git clone https://github.com/wdas/partio.git
- cd partio
- sudo apt-get install swig
- Version 4.0 is expected. This is for Python binding. Install via sudo so CMake can see it
- In the begining of the file:
- set(CMAKE_INSTALL_PREFIX "/home/liliane/miniconda/envs/DeepFluid" CACHE PATH "" FORCE )
- In the end of the file:
- message(STATUS "Instalation dir: " ${CMAKE_INSTALL_PREFIX})
Note: remember to change the user name as yours, and cofigure it with CMake two times. The installation directory may not be changed in the first time.
Now, compile it:
- mkdir build && cd build
- cmake ..
- make install
- python3 -c "import partio; print('Worked')"
- Must print "Worked" with no errors
No comments:
Post a Comment