Cmake-GUI error

34 views
Skip to first unread message

GaryR

unread,
Sep 17, 2019, 6:13:54 PM9/17/19
to deal.II User Group
I keep getting the following error when running cmake-gui.


CMake Error at /home/gary/Deal.II/share/deal.II/macros/
macro_deal_ii_setup_target.cmake:64 (INCLUDE):
INCLUDE could not find load file:


/home/gary/Deal.II/lib/cmake/deal.II/deal.IITargets.cmake
Call Stack (most recent call first):
/home/gary/Deal.II/share/deal.II/macros/macro_deal_ii_invoke_autopilot.
cmake:55 (DEAL_II_SETUP_TARGET)
CMakeLists.txt:39 (DEAL_II_INVOKE_AUTOPILOT)


I've tried mucking my way through the CMakeLists.txt. and the
setup_target_.cmake files. I can find the place where the error occurs but
am not familiar enough with the coding to make sense of the problem.

I am running Debian Buster with a KDE Desktop.
AMD 4 core processor with 16GB of ram.
Using Deal.II-9.1.1
Using Cmake-GUI-3.13.2
Using Eclipse 2019.6 (4.12.0)

I have Cmake-GUI set up to produce an Eclipse compatible build.

Any help will be sincerely appreciated.

GaryR

Wolfgang Bangerth

unread,
Sep 17, 2019, 9:20:51 PM9/17/19
to dea...@googlegroups.com
I don't think any of us uses the Cmake-GUI. We all just call cmake on
the command line. Does that work?

It's also not entirely clear to me at which stage this happens to you.
Is this the deal.II cmake you're trying to execute? Or in a tutorial
program? Or in your own project?

Best
W.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
Message has been deleted

Gary Roach

unread,
Sep 18, 2019, 4:16:39 PM9/18/19
to deal.II User Group
- show quoted text -
Thanks for the reply.

For your second question: I am installing Deal.II from dealii-9.1.1.tar.gz. I created a Deal.II directory in my home directory and unzipped the tar file there. I completely stripped out a previous installation because I thought I had misinstalled it.

I've used the GUI successfully in the past and for the occasional cmake user it is great. I suspect that someone that uses cmake a lot, it might be cumbersome. For use with the tutorials I created a bash file that includes the complete command line entry.

For you first question: The use of "cmake Eclipse CDT4 - Unix Makefiles ."on the command line throws an error, but different from the one thrown by cmake-GUI.  From the CMakeError.log, I found "#error "__AVX__ flag not set, no support for AVX" error. Now my understanding that AVX is associated with the Intel Math Library but not needed for an AMD installation. Not sure why this is happening.

I have attached the error log. Hope it helps.

GaryR
- show quoted text -
Attachments (1)
 

Wolfgang Bangerth

unread,
Sep 18, 2019, 4:59:49 PM9/18/19
to dea...@googlegroups.com
On 9/18/19 2:10 PM, Gary Roach wrote:
>
>
> Thanks for the reply. I'm not sure that this is the correct way to
> fashion a response. I fnound the forum format a bit confusing.
>
> For your second question: I am installing Deal.II from
> dealii-9.1.1.tar.gz. I created a Deal.II directory in my home directory
> and unzipped the tar file there. I completely stripped out a previous
> installation because I thought I had misinstalled it.

Are you calling the cmake gui in the directory into which you unpacked
the sources? You should be calling it in a separate build directory instead.


> I've used the GUI successfully in the past and for the occasional cmake
> user it is great. I suspect that someone that uses cmake a lot, it might
> be cumbersome. For use with the tutorials I created a bash file that
> includes the
>
> For you first question: The use of "cmake Eclipse CDT3 - Unix Makefiles
> ."on the command line throws an error,

Yes. The correct syntax is
cmake -G"cmake Eclipse CDT3 - Unix Makefiles" .
Note the quotes. (Although for me, it is CDT4. I don't know if CDT3 was
ever correct.)


> but different from the one thrown
> by cmake-GUI.  From the CMakeError.log, I found "#error "__AVX__ flag
> not set, no support for AVX" error. Now my understanding that AVX is
> associated with the Intel Math Library but not needed for an AMD
> installation. Not sure why this is happening.

The AVX flags relate to instructions your processor understands. This is
something that cmake should figure out itself. Did you set any of the
variables that relate to it in the GUI? That's one of the dangers of
using the GUI: You get to see all of the internal variables, and might
have been tempted to change things that aren't meant to be changed.

My recommendation is to just blow the whole directory away and start
from scratch.

Gary Roach

unread,
Sep 18, 2019, 5:26:12 PM9/18/19
to deal.II User Group


On Tuesday, September 17, 2019 at 3:13:54 PM UTC-7, GaryR wrote:
 Sorry about a couple of things. I mistakenly posted the reply with a couple of errors and tried to delete it and re-post. Obviously it didn't work. The CDT3 was a typo. I'm taking your advise and trashing the whole thing and starting over with no GUI.

Thanks for you timely response

GaryR

On Tuesday, September 17, 2019 at 3:13:54 PM UTC-7, GaryR wrote:

Bruno Blais

unread,
Sep 19, 2019, 11:39:11 AM9/19/19
to deal.II User Group
Dear Gary,
I use the cmake curse gui a lot (which I guess is what you mean by cmake gui).
I have never had any problem installing dealii using it. It should work.
Reply all
Reply to author
Forward
0 new messages