ViennaPS
ViennaPS copied to clipboard
Error while building example
I was able to install the tool successfully (I hope) using the instructions given. However while checking out examples, I faced the following issue:
(base) [om@darkknight build]$ cmake .. -DVIENNAPS_BUILD_EXAMPLES=ON
-- Found ViennaLS at /home/om/Vienna/ViennaPS2/ViennaPS/dependencies/Install/viennals_external/lib/cmake/ViennaLS.
-- Found ViennaRay at /home/om/Vienna/ViennaPS2/ViennaPS/dependencies/Install/viennaray_external/lib/cmake/ViennaRay.
-- ViennaLS found at: /home/om/Vienna/ViennaPS2/ViennaPS/dependencies/Install/viennals_external/lib/cmake/ViennaLS
-- ViennaRay found at: /home/om/Vienna/ViennaPS2/ViennaPS/dependencies/Install/viennaray_external/lib/cmake/ViennaRay
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/om/Vienna/ViennaPS2/ViennaPS/build
(base) [om@darkknight build]$ make buildExamples
[ 3%] Building CXX object examples/volumeModel/CMakeFiles/volumeModel.dir/volumeModel.cpp.o
In file included from /home/om/Vienna/ViennaPS2/ViennaPS/include/psLogger.hpp:5:0,
from /home/om/Vienna/ViennaPS2/ViennaPS/include/cellSet/csDenseCellSet.hpp:16,
from /home/om/Vienna/ViennaPS2/ViennaPS/include/psDomain.hpp:13,
from /home/om/Vienna/ViennaPS2/ViennaPS/include/geometries/psMakeFin.hpp:6,
from /home/om/Vienna/ViennaPS2/ViennaPS/examples/volumeModel/volumeModel.cpp:1:
/home/om/Vienna/ViennaPS2/ViennaPS/include/psUtils.hpp:6:20: fatal error: optional: No such file or directory
#include <optional>
^
compilation terminated.
make[3]: *** [examples/volumeModel/CMakeFiles/volumeModel.dir/volumeModel.cpp.o] Error 1
make[2]: *** [examples/volumeModel/CMakeFiles/volumeModel.dir/all] Error 2
make[1]: *** [examples/CMakeFiles/buildExamples.dir/rule] Error 2
make: *** [buildExamples] Error 2
(base) [om@darkknight build]$
Is there a documentation on how to use the tool?
It appears that there may be compatibility issues with your compiler and the C++17 standard. Could you please verify if you are using a C++17 compiler? Additionally, providing more details about your system setup would be helpful for further diagnosis.
While there is some documentation available (ViennaPS Doc), it is currently a work in progress and may not cover all aspects comprehensively yet.