Hi all,
I’m a newbie here. I successfully installed Channelflow 2.0, and passed all tests. When I built it as shared library, I used ‘sudo make install’
“mkdir build
cd build
cmake …/channelflow -DCMAKE_CXX_COMPILER=/usr/bin/mpicxx -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/user/local/ -DWITH_HDF5CXX=On
make -j4
sudo make install”
and everything showed on the terminal as a complete installation within the folder ‘user/local’ like this
‘-- Installing: /user/local/bin/
– Set runtime path of “/user/local/bin/” to “/user/local/lib”’
or this when I rebuilt
‘-- Up-to-date: /user/local/bin/’
I tried to copy the example “couette.cpp” to a folder outside, and compile it for testing shared library of Channelflow. However, I always get errors
couette.cpp:7:10: fatal error: channelflow/dns.h: No such file or directory
7 | #include “channelflow/dns.h”
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
I have checked ‘/user/local’ and found that nothing of Channelflow was installed here. I tried to build code in some folders. I found that I cannot build this library in folders of system (using ‘sudo make install’).
Now, I cannot add path to environment directly (I tried a few ways), so I decided to post this. I hope someone knows this and can help me overcome this.
Best,
Duc