Installation on mac "does not appear to contain CMakeLists.txt"

968 views
Skip to first unread message

Chenchen Liu

unread,
Aug 7, 2015, 10:17:11 PM8/7/15
to deal.II User Group
Hi,

I downloaded the latest edition of deal.II. When I tried to build the library using the sentence "cmake -DCMAKE_INSTALL_PREFIX=/........./deal.II", it always shows the error:

CMake Error: The source directory "/" does not appear to contain CMakeLists.txt.

Specify --help for usage, or press the help button on the CMake GUI.


Also, I checked the content of deal.II folder, and I did not see any file called CMakelists.txt.


I have no idea how to pass this step. I tried to copy one CMakelists.tex file from folder "step-1" or other examples. But it gave me other error and I cannot 'make' it.


I will appreciate very much if anyone could give me some suggestions.


Best,

Chenchen


Wolfgang Bangerth

unread,
Aug 7, 2015, 10:39:24 PM8/7/15
to dea...@googlegroups.com

Chenchen,

> I downloaded the latest edition of deal.II. When I tried to build the library
> using the sentence "cmake -DCMAKE_INSTALL_PREFIX=/........./deal.II", it
> always shows the error:
>
> CMake Error: The source directory "/" does not appear to contain CMakeLists.txt.

Can you please specify the *exact* command line? It need to look like this:
cmake -DCMAKE_INSTALL_PREFIX=/.../ source-dir
Note the last argument that indicates where the deal.II sources are located.

Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/

Luca Heltai

unread,
Aug 7, 2015, 11:08:13 PM8/7/15
to Deal.II Users
Dear Chenchen,

if you downloaded the dmg package, the deal.II library is already compiled for you.

You only need to run the “app” (which is only a terminal that sets the right environment variables for you).

Deal.II gets installed in

/Applications/deal.II.app/Contents/Resources

and you’ll find the examples in

/Applications/deal.II.app/Contents/Resources/examples/

Best,

L.

--
Luca Heltai <luca....@gmail.com>
http://people.sissa.it/~heltai/
Scuola Internazionale Superiore di Studi Avanzati
Phone: +39 040 3787 449, Office: 622
--
There are no answers, only cross references
> --
> 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.

Chenchen Liu

unread,
Aug 7, 2015, 11:47:43 PM8/7/15
to dea...@googlegroups.com
​Thank you for the quick reply.

According to the instructions for mac users, I did not realize that I should download sources files​. I thought the .dmg file will contain all the information. So, maybe I made this mistake. 

Then, I downloaded the cources files, and built the library successfully. However, when I tried to run step-1, I met the following error:

###

-- Configuring done

-- Generating done

-- Build files have been written to: /dealii-8.3.0/examples/step-1

bash-3.2$ make run

Scanning dependencies of target step-1

[ 33%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o

[ 66%] Linking CXX executable step-1

[ 66%] Built target step-1

Scanning dependencies of target run

[100%] Run step-1 with Debug configuration

dyld: Library not loaded: @rpath/libdeal_II.g.8.3.0.dylib

  Referenced from: /dealii-8.3.0/examples/step-1/./step-1

  Reason: Incompatible library version: step-1 requires version 8.3.0 or later, but libdeal_II.g.8.3.0.dylib provides version 0.0.0

make[3]: *** [CMakeFiles/run] Trace/BPT trap: 5

make[2]: *** [CMakeFiles/run.dir/all] Error 2

make[1]: *** [CMakeFiles/run.dir/rule] Error 2

make: *** [run] Error 2


Do you know what is the problem?


Thanks!


Chenchen


--
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 a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/GMMBR5cHWMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.

Chenchen Liu

unread,
Aug 7, 2015, 11:50:51 PM8/7/15
to dea...@googlegroups.com
Dear Luca,

Thank you very much for the reply. As you said, I can run examples directly without building the library. However, when I run step-1,  it gave me the following error:

bash-3.2$ cmake -DDEAL_II_DIR=/Applications/deal.II.app/

-- Autopilot invoked

-- Run   $ make info  to print a detailed help message

-- Configuring done

-- Generating done

-- Build files have been written to: /Applications/deal.II.app/Contents/Resources/examples/step-1

bash-3.2$ make run

[ 33%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o

error: invalid value 'c++14' in '-std=c++14'

make[3]: *** [CMakeFiles/step-1.dir/step-1.cc.o] Error 1

make[2]: *** [CMakeFiles/step-1.dir/all] Error 2

make[1]: *** [CMakeFiles/run.dir/rule] Error 2


Do you have any suggestions?

Thanks!

Chenchen


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/GMMBR5cHWMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.

Luca Heltai

unread,
Aug 8, 2015, 2:26:26 AM8/8/15
to Deal.II Users
Dear Chenchen,

what version of XCode do you have installed? I have generated the package for the latest version of everything…

I’ll create a new backward compatible package as soon as I can. The error message is telling you that your compiler does not support CXX14. This can only be if you have not updated xcode, or if you have not installed its command line utilities.

I’ll update the instruction page as well.

L.

--
Luca Heltai <luca....@gmail.com>
http://people.sissa.it/~heltai/
Scuola Internazionale Superiore di Studi Avanzati
Phone: +39 040 3787 449, Office: 622
--
There are no answers, only cross references

Luca Heltai

unread,
Aug 8, 2015, 2:54:53 AM8/8/15
to Deal.II Users
Can you try the package that you find here:

https://github.com/dealii/dealii/releases/tag/v8.3.0

called

deal.II-8.3.0.nocxx14.dmg

?

This should be backward compatible, as it does not uses CXX14, which is not available on older macs.

L.

--
Luca Heltai <luca....@gmail.com>
http://people.sissa.it/~heltai/
Scuola Internazionale Superiore di Studi Avanzati
Phone: +39 040 3787 449, Office: 622
--
There are no answers, only cross references

> On 08 Aug 2015, at 5:50, Chenchen Liu <che...@seas.upenn.edu> wrote:
>

Chenchen Liu

unread,
Aug 8, 2015, 3:21:50 PM8/8/15
to dea...@googlegroups.com
Dear Luca,

Thank you so much. It works now!! I feel so happy.
Now I can move on to use deal.II. Hope everything will be fine.

Thanks again.

Chenchen
Reply all
Reply to author
Forward
0 new messages