Wednesday, July 24, 2019

Fluid Simulation:Compile SPlisHSPlasH



Source code
https://github.com/InteractiveComputerGraphics/SPlisHSPlasH




sudo apt-get install freeglut3
sudo apt-get install git
sudo apt-get install libeigen3-dev
sudo apt-get install libglew-dev
sudo apt-get install libxmu-dev libxi-dev #GLUT_Xmu_LIBRARY (ADVANCED)

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-6 g++-6

sudo ln -s /usr/bin/gcc-6 /usr/bin/cc
sudo ln -s /usr/bin/g++-6 /usr/bin/c++

sudo apt install libomp-dev



#Add into two file lines for call openmp
Demos/DynamicBoundaryDemo/CMakeLists.txt
Demos/StaticBoundaryDemo/CMakeLists.txt

find_package(OpenMP)
if (OPENMP_FOUND)
  set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif(OPENMP_FOUND)


Demos changed by Simulators (2019), after find_package(OpenGL REQUIRED)


 vi ../Simulators/DynamicBoundaryDemo/CMakeLists.txt
 vi ../Simulators/StaticBoundarySimulator/CMakeLists.txt


No comments:

Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com