CMAKE Warnig: no source or binary provided

65 views
Skip to first unread message

Adnan

unread,
Apr 17, 2024, 10:59:11 PM4/17/24
to deal.II User Group
Dear dealii community,
i am trying to install dealii but i have been facing this problem. 
when i give the path to configure and build, it results into CMAKE warning: No Source or binary directory provided. 

cmake -DCMAKE_INSTALL_PREFIX=/home/adnan/Documents/dealii-9.5.2

i have attached the screen shot of terminal. 

Regards
Adnan Khan
CMAKE_Warning.png
directory.png

Wolfgang Bangerth

unread,
Apr 17, 2024, 11:04:05 PM4/17/24
to dea...@googlegroups.com
On 4/17/24 20:42, Adnan wrote:
> i am trying to install dealii but i have been facing this problem.
> when i give the path to configure and build, it results into CMAKE warning: No
> Source or binary directory provided.
>
> cmake -DCMAKE_INSTALL_PREFIX=/home/adnan/Documents/dealii-9.5.2
>
> i have attached the screen shot of terminal.

Adnan:
The error message is quite correct: All you say is where you want deal.II to
be installed (the directory after the CMAKE_INSTALL_PREFIX), but you do not
say where the sources are. Take another look here:
https://dealii.org/developer/readme.html#configuration

Best
W>

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


Adnan

unread,
Apr 18, 2024, 11:10:14 AM4/18/24
to deal.II User Group
Hi,

Thanks for the prompt reply. .

Best regards

Adnan 

Adnan

unread,
Apr 19, 2024, 5:56:42 PM4/19/24
to dea...@googlegroups.com
Hi,

i have failed again to install it with this erorr: 

Fixing CMake was unable to find a build program corresponding to "Unix Makefiles".
CMAKE_MAKE:PROGRAm ist not set. 
You probably need to select a different build tool. 
CMAKE_CXX_Compiler not set after enablelanguage.

How can i resolve this issue. 
 

Mit freundlichen Grüßen
Adnan Khan

Climate is important. Be kind to our environment....!!! 


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/f119177f-70f9-4423-a54d-7bb56951980b%40colostate.edu.

Wolfgang Bangerth

unread,
Apr 19, 2024, 6:55:09 PM4/19/24
to dea...@googlegroups.com
On 4/19/24 15:56, Adnan wrote:
>
> Fixing CMake was unable to find a build program corresponding to "Unix Makefiles".
> CMAKE_MAKE:PROGRAm ist not set.
> You probably need to select a different build tool.
> CMAKE_CXX_Compiler not set after enablelanguage.

Adnan:
can you remove everything in your build directory, run cmake again, and if you
get the same error again, show us *exactly* the command line you are using?

Best
W.

Adnan

unread,
Apr 19, 2024, 8:23:40 PM4/19/24
to dea...@googlegroups.com
Thanks for the reply. 
please find the fotos attached. 
i am confused about how to give the path and what should i do to correct. Everytime i was making mistake. 
Mit freundlichen Grüßen
Adnan Khan

Climate is important. Be kind to our environment....!!! 
--
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.
foto3.png
foto2.png
foto1.png

Matthias Maier

unread,
Apr 19, 2024, 8:33:59 PM4/19/24
to dea...@googlegroups.com
The problem is that you do not have a working compiler installed. If
this is an Ubuntu try to run:

$ sudo apt install gcc g++ gdb make ninja-build

to get a working toolchain. You might also be interested in the clang
toolchain:

$ sudo apt install clang-format clangd clang


Best,
Matthias



On Fri, Apr 19, 2024, at 19:23 CDT, Adnan <adnan...@gmail.com> wrote:

> Thanks for the reply.
> please find the fotos attached.
> i am confused about how to give the path and what should i do to correct.
> Everytime i was making mistake.
> Mit freundlichen Grüßen
> Adnan Khan
>
> *Climate is important. Be kind to our environment....!!! *
Reply all
Reply to author
Forward
0 new messages