problems with installation ; Unknown CMake command "DEAL_II_ADD_LIBRARY"

368 views
Skip to first unread message

Pablo Perez del Castillo

unread,
Jul 2, 2016, 1:21:57 PM7/2/16
to deal.II User Group
I can not install dealii, it was downloaded with Git

pablo@pablo-HP-Spectre-13-Ultrabook:~/dealii/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/pablo/dealii /home/pablo/dealii/source -DOPENCASCADE_DIR=/usr/local/include/oce
-- Setting up library
CMake Error at fe/CMakeLists.txt:113 (DEAL_II_ADD_LIBRARY):
  Unknown CMake command "DEAL_II_ADD_LIBRARY".


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

    cmake_minimum_required(VERSION 2.8)

  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.

Advanced thanks

Pablo

Timo Heister

unread,
Jul 3, 2016, 12:58:23 PM7/3/16
to dea...@googlegroups.com
Pablo,

can you try putting the source directory path at the end of the cmake
command as in
cmake -DCMAKE_INSTALL_PREFIX=/home/pablo/dealii
-DOPENCASCADE_DIR=/usr/local/include/oce /home/pablo/dealii/source
> --
> 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.



--
Timo Heister
http://www.math.clemson.edu/~heister/

Pablo Perez del Castillo

unread,
Jul 4, 2016, 4:15:34 AM7/4/16
to deal.II User Group
Hello Timo,

I got same Error. No idea.

Pablo

Daniel Arndt

unread,
Jul 4, 2016, 6:26:21 PM7/4/16
to deal.II User Group
Pablo,

Can you try without Opencascade and a clean build directory? Do you get this error also with the latest release tarball?

Best,
Daniel

Pablo Perez del Castillo

unread,
Jul 5, 2016, 6:16:59 AM7/5/16
to deal.II User Group
Yes, i tried without opencascade, and i doewnloaded tar, and then zip, and then from git pull.

Bulent Tokay

unread,
Jun 14, 2017, 1:10:53 PM6/14/17
to deal.II User Group
Hello,

I am using xubuntu 16.04 as a newbie and trying to install deal.ii. At the stage of building the error shown as below emerged unfortunately. I tried the same way with a different release (i.e. deal.ii-8.5.0) and faced with the similar problem again. I checked another replies to fix it, but I could do nothing.
Does anybody know how to solve such a problem?

Versions used for the installation:
cmake-3.8.2
deal.ii-8.4.2

Thanks,



daieren@daieren:~/deal.ii$ cmake -DCMAKE_INSTALL_PREFIX=/home/daieren/deal.ii/ /home/daieren/deal.ii-8.4.2/source
-- Setting up library
CMake Error at numerics/CMakeLists.txt:88 (DEAL_II_ADD_LIBRARY):
  Unknown CMake command "DEAL_II_ADD_LIBRARY".


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

    cmake_minimum_required(VERSION 3.8)

  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!
See also "/home/daieren/deal.ii/CMakeFiles/CMakeOutput.log".


-----------------------------------------------------------------------------------------------------------------




5 Temmuz 2016 Salı 13:16:59 UTC+3 tarihinde Pablo Perez del Castillo yazdı:

Bruno Turcksin

unread,
Jun 14, 2017, 1:37:16 PM6/14/17
to deal.II User Group
Hi,


On Wednesday, June 14, 2017 at 1:10:53 PM UTC-4, Bulent Tokay wrote:
daieren@daieren:~/deal.ii$ cmake -DCMAKE_INSTALL_PREFIX=/home/daieren/deal.ii/ /home/daieren/deal.ii-8.4.2/source

this looks strange. Try:
cmake -DCMAKE_INSTALL_PREFIX=/home/daieren/deal.ii/ /home/daieren/deal.ii-8.4.2
The source directory that you want to give to CMake is the directory which contains the top CMakeLists.txt

Best,

Bruno

Bulent Tokay

unread,
Jun 15, 2017, 7:32:18 AM6/15/17
to deal.II User Group
Hi Bruno,

Thanks for your reply!
I changed the source directory as you suggested firstly. But, building did not take place unexpectedly in the directory where I wanted to install; did instead in the source directly. As you guess, installation collapsed, unfortunately.
Then, I tried the same way in deal.ii-8.5.0, and no problem happened during building and installation. However, after make test command, I received output of failure. Detailed.log and related feedback in terminal are attached.

Cheers,



14 Haziran 2017 Çarşamba 20:37:16 UTC+3 tarihinde Bruno Turcksin yazdı:
detailed.log
failed_maketest_terminal

Bruno Turcksin

unread,
Jun 15, 2017, 8:14:49 AM6/15/17
to dea...@googlegroups.com
2017-06-15 7:32 GMT-04:00 Bulent Tokay <bulent...@gmail.com>:
> Then, I tried the same way in deal.ii-8.5.0, and no problem happened during
> building and installation. However, after make test command, I received
> output of failure. Detailed.log and related feedback in terminal are
> attached.
I think it is the same problem though. You should create a directory
build. From this directory, you type the cmake command then make. When
it's done you type 'make install'. This will install the library in
the path you gave (basically it moves the files that you need to the
install directory). Then, you can remove the build directory.

Best,

Bruno

Bulent Tokay

unread,
Jun 15, 2017, 10:39:21 AM6/15/17
to deal.II User Group
Hi Bruno,

I followed procedure as you said;

mkdir build-directory
later, within the build-directory; cmake command > make > make install > make test

, and then got the same error. Detailed.log is appended.

Am I doing something wrong insistently?

Cheers,



15 Haziran 2017 Perşembe 15:14:49 UTC+3 tarihinde Bruno Turcksin yazdı:
detailed.log

Bruno Turcksin

unread,
Jun 15, 2017, 10:46:33 AM6/15/17
to dea...@googlegroups.com
2017-06-15 10:39 GMT-04:00 Bulent Tokay <bulent...@gmail.com>:
> , and then got the same error. Detailed.log is appended.
>
> Am I doing something wrong insistently?
Does the file /home/daieren/dealii-master/tests/test.h exist? To me it
looks like a problem with the test itself not your install. Can you
run the tutorials?

Best,

Bruno

Bulent Tokay

unread,
Jun 15, 2017, 9:57:25 PM6/15/17
to deal.II User Group
Hi Bruno,

I checked if test.h is present. Nothing is there. You are right. There is no problem. Tutorials work..

Thanks a lot! :)

Best regards,



15 Haziran 2017 Perşembe 17:46:33 UTC+3 tarihinde Bruno Turcksin yazdı:
Reply all
Reply to author
Forward
0 new messages