Malik,

There is three different directories at play:
1. build directory (this is where you run cmake in)
2. the source directory (this is the deal.II download and contains
CMakeLists.txt and source/ include/, etc.)
3. the install directory

All three directories can be anything you want. For example I might use:
1. ~/dealii-9.1.1/build/
2. ~/dealii-9.1.1/
3. ~/dealii-9.1.1-installed/

In that case I would:
mkdir ~/dealii-9.1.1/build/
cd ~/dealii-9.1.1/build/
cmake -D CMAKE_INSTALL_PREFIX=~/dealii-9.1.1-installed/ ~/dealii-9.1.1/
make -j 4
make install

If that doesn't work for you, tell us exactly what command you run in
which directory.


On Thursday, April 9, 2020 at 4:38:52 AM UTC-4, Malik Tahiyat wrote:
>
> I was trying to follow this command in READ me section (after downloading 
> and unpacking the dealii-9.1.1.tar.gz to set install directory of deal.II 
>
>   cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/dir ../deal.II   
>
>
> i had changed it to cmake -DCMAKE_INSTALL_PREFIX=/home/projects/deal.II/
>
>
> However, everytime I got the following error
> CMake Error: The source directory "/home/malik/projects/dealii-9.1.1/build" 
> does not appear to contain CMakeLists.txt.
> Specify --help for usage, or press the help button on the CMake GUI.
>
>
> The only way it worked was if i added two dots after the command: 
>
> $ cmake -DCMAKE_INSTALL_PREFIX=/home/projects/deal.II/ ..
>
>
> But then, the installation does not happen in the deal.II directory. THe 
> program is installed in ~/projects/dealii-9.1.1/build
>
> THe deal.II folder stays empty
>
>
> ANd of course i face the error
>
>   *** Could not locate a (sufficiently recent) version of deal.II.  ***
>
>   
>
>   You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake
>
>   or set an environment variable "DEAL_II_DIR" that contains this path.
>
>
> I am fairly new to linux. Can you please say what is happening wrong here?
>
>
> I will be obliged.
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/213bb19e-aa8e-49e5-a416-cf0bc31bb9ab%40googlegroups.com.

Reply via email to