I am running dealii in Docker container and because of issue to do with
using filesystem under c++17 i have:
*[ 0%] Building CXX object
source/CMakeFiles/rotatingMHD.dir/problem_class.cc.o *
*/home/dealii/rotmhd/source/problem_class.cc: In constructor
‘RMHD::Problem<dim>::Problem(const
RMHD::RunTimeParameters::ProblemBaseParameters&)’:
/home/dealii/rotmhd/source/problem_class.cc:185:13: error:
‘std::filesystem’ has not been declared 185 | if
(!std::filesystem::exists(prm.graphical_output_directory) && |
^~~~~~~~~~ /home/dealii/rotmhd/source/problem_class.cc:190:12:
error: ‘std::filesystem’ has not been declared 190 |
std::filesystem::create_directories(prm.graphical_output_directory);
| ^~~~~~~~~~ make[2]: ***
[source/CMakeFiles/rotatingMHD.dir/build.make:206:
source/CMakeFiles/rotatingMHD.dir/problem_class.cc.o] Error 1*
Does the dealii Docker container support c++17?
On Friday, 31 December 2021 at 21:44:54 UTC+2 [email protected] wrote:
> This happened to me when I forgot to call `DEAL_II_SETUP_TARGET` from the
> CMakeLists.txt. Did you resolve this issue?
>
> On Tuesday, December 14, 2021 at 9:54:42 AM UTC+1 jack urombo wrote:
>
>> The current docker image is not finding mpi.h
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *[ 50%] Building CXX object CMakeFiles/cdr.dir/cdr.cc.o In file included
>> from /usr/include/deal.II/base/conditional_ostream.h:19,
>> from /home/dealii/dealii/cdr/cdr.cc:1:
>> /usr/include/deal.II/base/config.h:490:12: fatal error: mpi.h: No such file
>> or directory 490 | # include <mpi.h> | ^~~~~~~
>> compilation terminated. make[2]: *** [CMakeFiles/cdr.dir/build.make:63:
>> CMakeFiles/cdr.dir/cdr.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:76:
>> CMakeFiles/cdr.dir/all] Error 2 make: *** [Makefile:84: all] Error 2
>> dealii@cdab72233c4c:~/dealii/cdr$ *
>>
>
--
The information in this message is confidential and legally
privileged.
It is intended solely for the addressee(s). Access to this message
by
anyone else is unauthorized. If received in error, please accept our
apologies
and notify the sender immediately. You must also delete the
original message
from your machine. If you are not the intended recipient,
any use, disclosure,
copying, distribution or action taken in reliance of
it, is prohibited and may
be unlawful. The information, attachments,
opinions or advice contained in this
email are not the views or opinions of
Harare Institute of Technology, its
subsidiaries or affiliates. Although
this email and any attachments are
believed to be free of any virus or
other defects which might affect any
computer or IT system into which they
are received, no responsibility is
accepted by Harare Institute of
Technology and/or its subsidiaries for any loss
or damage arising in any
way from the receipt or use thereof.
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/463617a3-0c39-4636-a749-eb4da4ad592bn%40googlegroups.com.