CMake will not be able to correctly generate this project.

95 views
Skip to first unread message

Mahdi

unread,
Dec 19, 2023, 1:50:10 PM12/19/23
to deal.II User Group
Hi everyone,

I was trying to run my code, but it did not work. I tried different ways (that I know) but was not able to resolve the issue. So, I thought it might be an error in my code or my CMake file. So, I decided to run one of the examples on deal.ii. Unfortunately, it did not work either.

I am attaching the error message that I get. Any help would be highly appreciated.

Also,  when I was trying to fix the issue, I decided to "re-install" deal.ii. I learned that the new package does not have the basic examples (step-1,....), or at least it does not match the address given at https://github.com/dealii/dealii/wiki/MacOSX

If I may suggest (and I am not sure what is the reason, so please excuse me if this is nonsense), it would be great if the example folder stays as it was in the previous versions. It would be even better if the example folder be as close as it could be to the "root", so it would be accessible for the newbies like me (again, I am not aware of technical limits).

Happy holidays,
Mahdi
Screenshot 2023-12-19 at 12.25.04 PM.png

Mahdi

unread,
Dec 30, 2023, 2:01:10 PM12/30/23
to deal.II User Group
Hi,

I am still trying to see if I can run the examples from the given directory when I open the dealii terminal. Apparently, there is not any folder named examples in the given path. Could you please let me know if I am doing something wrong, or the path for examples has been changed. I can find "high end" examples, but I am not successful with locating "original tutorials" named step-1, step-2, ... .

Any help is highly appreciated,
Mahdi

Tim hyvärinen

unread,
Jan 1, 2024, 7:29:34 AM1/1/24
to deal.II User Group
hi mahdi,

It's apparent in your cmake error message, that c++ compiler doesn't work, so I suppose even the deal.ii compilation had been failed.

Deal.ii builds all examples as test during it's compilation+installation by default, one usually can find the compiled examples at installation directory i.e., what one put for flag CMAKE_INSTALL_PREFI after success compilation+installation of deal.ii.
Then, step-1 would have been built if deal.ii is successfully compiled.

Did you try to set the c++ compiler according to this documentation page: https://www.dealii.org/current/users/cmake_dealii.html#compiler  ?

best,
Tim  
Reply all
Reply to author
Forward
0 new messages