compiling deal.ii 9.4 on wsl error

90 views
Skip to first unread message

jim wo

unread,
Sep 7, 2022, 10:22:25 AM9/7/22
to deal.II User Group
Hello,
I want to  develop my own project on wsl with deal.ii 9.4.  after make I got this message:
 
In file included from /home/wu/deal_II/include/deal.II/grid/tria.h:20,
                 from /home/wu/cmakeQuickStart/main.cpp:23:
/home/wu/deal_II/include/deal.II/base/config.h:540:12: fatal error: mpi.h: No such file or directory
  540 | #  include <mpi.h>
      |            ^~~~~~~
compilation terminated.
thanks for  your help
 Qiong

Daniel Arndt

unread,
Sep 7, 2022, 11:03:57 AM9/7/22
to dea...@googlegroups.com
Qiong,

What CMake settings did you use to configure deal.II?
Does your system indeed provide an MPI installation?

Bets,
Daniel

--
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 dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/c3b2d20c-923f-457f-b938-61ca4e13029fn%40googlegroups.com.

jim wo

unread,
Sep 7, 2022, 9:23:08 PM9/7/22
to deal.II User Group
I did install MPI on wsl 
and I congfigure deal.ii with DEAL_II_WITH_PETSC = ON
    DEAL_II_WITH_P4EST = ON


Message has been deleted

jim wo

unread,
Sep 7, 2022, 9:34:59 PM9/7/22
to deal.II User Group
I created a new cmake project on wsl with vscode ,I write the INCLUDE_DIRETORIES with header file of dealii in the CMakeLists and then cmake project ,I am not sure if its going to work . But when I make it comes error as follow
1662600815935.png
 best 
Qiong

jim wo

unread,
Sep 7, 2022, 9:38:02 PM9/7/22
to deal.II User Group
and at the same time, I write the codes and it comes "the deal.II/grid/tria.h not found" I dont konw why
best
Qiong

Daniel Arndt

unread,
Sep 8, 2022, 9:41:56 AM9/8/22
to dea...@googlegroups.com
Qiong,

It's not sufficient to include deal.II's include files but you need to link the library target. Have a look at https://www.dealii.org/current/users/cmake_user.html.

Best,
Daniel


jim wo

unread,
Sep 8, 2022, 10:24:03 AM9/8/22
to dea...@googlegroups.com
Daniel
thank you very much,you are so kind,God bless you.
best 
qiong

Daniel Arndt <d.arnd...@gmail.com> 于 2022年9月8日周四 21:41写道:
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/lX-r3fbwUd8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAOYDWbJ0Dv44iiiZ1Yy857P876SDiR2KMdgw3j1b93v8Ea9YQg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages