compiling deal.ii 9.4 on wsl error

ยอดดู 90 ครั้ง
ข้ามไปที่ข้อความที่ยังไม่อ่านรายการแรก

jim wo

ยังไม่อ่าน,
7 ก.ย. 2565 10:22:257/9/65
ถึง 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

ยังไม่อ่าน,
7 ก.ย. 2565 11:03:577/9/65
ถึง 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

ยังไม่อ่าน,
7 ก.ย. 2565 21:23:087/9/65
ถึง 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


ข้อความถูกลบแล้ว

jim wo

ยังไม่อ่าน,
7 ก.ย. 2565 21:34:597/9/65
ถึง 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

ยังไม่อ่าน,
7 ก.ย. 2565 21:38:027/9/65
ถึง 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

ยังไม่อ่าน,
8 ก.ย. 2565 09:41:568/9/65
ถึง 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

ยังไม่อ่าน,
8 ก.ย. 2565 10:24:038/9/65
ถึง 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.
ตอบทุกคน
ตอบกลับผู้สร้าง
ส่งต่อ
ข้อความใหม่ 0 รายการ