deal.ii installation error Unknown CMake command "SETUP_SOURCE_LIST"

103 views
Skip to first unread message

awyh...@gmail.com

unread,
Jun 3, 2018, 2:34:06 PM6/3/18
to deal.II User Group
Hi, I am trying to install deal.ii on Ubuntu virtual machine.
I did following steps to install deal.ii:

  • Downloaded dealii-9.0.0.tar.gz
  • tar -xvf dealii-9.0.0.tar.gz
  • It created subdirectory dealii-9.0.0
  • cd ./dealii-9.0.0 and then mkdir build
  • cd build
  • cmake -DCMAKE_INSTALL_PREFIX=/media/sf_Shared/dealii-9.0.0/install/ /media/sf_Shared/dealii-9.0.0/source/
But, I am getting error as

-- Setting up library
CMake Error at numerics/CMakeLists.txt:69 (SETUP_SOURCE_LIST):
  Unknown CMake command "SETUP_SOURCE_LIST".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.10)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Any idea how to fix this? I am using cmake 3.10.2

Jean-Paul Pelteret

unread,
Jun 3, 2018, 3:05:06 PM6/3/18
to dea...@googlegroups.com
Hi,

I think that the problem is that you’re pointing CMake to the wrong directory to pick up the deal.II’s base CMakeLists.txt file. I reckon that what you want is to call either
  • cmake -DCMAKE_INSTALL_PREFIX=/media/sf_Shared/dealii-9.0.0/install/ /media/sf_Shared/dealii-9.0.0/
or (even easier, since you’ve made “build” is a subdirectory of the source folder)
  • cmake -DCMAKE_INSTALL_PREFIX=/media/sf_Shared/dealii-9.0.0/install/ ..
I hope that this helps you to fix the issue and install deal.II!

Regards,
Jean-Paul

--
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.
For more options, visit https://groups.google.com/d/optout.

Matthias Maier

unread,
Jun 3, 2018, 4:44:04 PM6/3/18
to dea...@googlegroups.com
Hi all,

this happens so often that we should improve the error message. Please
have a look at

https://github.com/dealii/dealii/pull/6707

Best,
Matthias
>> The deal.II project is located at http://www.dealii.org/ <http://www.dealii.org/>
>> For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en <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 <mailto:dealii+un...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
Reply all
Reply to author
Forward
0 new messages