Did you compile the library by using the "make install" command?
Cmake only configures the build but does not compile the library per say.
Best
Bruno


On Sunday, 7 June 2020 14:17:44 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>
> Dear Bruno,
>
> Great! It functioned...
>
> I put the commands:
> wilmar@linuxmint:~/build$ *mkdir dealii_library*
>
> So, I put the command and it runned:
> wilmar@linuxmint:~/build$ *cmake /home/wilmar/dealii-9.1.1 
> -DCMAKE_INSTALL_PREFIX=/home/wilmar/dealii_library*
> -- This is CMake 3.10.2
> -- 
> -- Include /home/wilmar/dealii-9.1.1/cmake/setup_external_macros.cmake
> -- Include /home/wilmar/dealii-9.1.1/cmake/macros/macro_add_flags.cmake
> -- Include 
> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_compiler_setup.cmake
> -- Include 
> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_cxx_compiler_bug.cmake
> -- Include 
> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_mpi_interface.cmake
> . . .
>
> At the end, nothing was on  */home/wilmar/dealii_library.  *Maybe it is 
> on dealii-9.1.1 but I didn't localize. 
>
> In the last step I did something wrong?
>
> Em dom., 7 de jun. de 2020 às 13:41, Bruno Blais <blais...@gmail.com 
> <javascript:>> escreveu:
>
>> So there are two things you must keep in mind when you run cmake
>>
>>
>> The command should be something similar to 
>> cmake /path/to/dealii/sources 
>> -DCMAKE_INSTALL_PREFIX=/path/to/where/you/want/to/install
>>
>> The first folder you point to is the folder you cloned the deal.II 
>> sources to (which will contain a CMakeLists.txt
>> The second folder you point to is where you want to install. Keep in 
>> mind, the install directory should be different from the build directory.
>> What happens is that you go from the sources to a build folder, and then 
>> you install the library. The build folder is an intermediary folder.
>>
>> Best
>> Bruno
>>
>>
>>
>>
>> On Sunday, 7 June 2020 12:06:38 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>>>
>>> Thank you Bruno,
>>>
>>> Yes, the valid path, I think, is  */home/wilmar/build . *Orientation on 
>>> *https://www.dealii.org/current/readme.html 
>>> <https://www.dealii.org/current/readme.html>* inform a different 
>>> directory from unpacked Deal.II.
>>>
>>> So, I returned to run cmake again, with the command:
>>> wilmar@linuxmint:~build$ 
>>> *cmake -DCMAKE_INSTALL_PREFIX=/home/wilmar/build*
>>> but cmake missed the CMakeLists.txt:   
>>> *CMake Error: The source directory "/home/wilmar/build" does not appear 
>>> to contain CMakeLists.txt*
>>>
>>> Yes, CMakeLists.txt isn't on /home/wilmar/build. I don't know where the 
>>> CMakeLists.txt for this compilation is. 
>>>
>>> Thank you in advance for orientation!
>>>
>>> Wilmar (Brazil)  -  Running from Covid!
>>>
>>>
>>> Em dom., 7 de jun. de 2020 às 12:03, Bruno Blais <blais...@gmail.com> 
>>> escreveu:
>>>
>>>> Hello,
>>>> You are getting this error because the installation path that you 
>>>> specified is not valid.
>>>> When you did you cmake command, you specific the installation path to 
>>>> :  */path/to/install/dir/share/deal.II/scripts*
>>>> This path on your linux machine is not a valid path, and consequently, 
>>>> this folder cannot be created.
>>>> You need to run cmake again and specify a valid installation path 
>>>> (something like /home/your_user/dealii/ for instance).
>>>> You are very close to getting it to fully compile :)
>>>>
>>>> Best
>>>> Bruno
>>>>
>>>>
>>>> On Sunday, 7 June 2020 09:54:39 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>>>>>
>>>>> I tried to install Deal II (dealii) on a PC with 2 GB RAM, but after 
>>>>> the command:
>>>>>
>>>>> wilmar@linuxmint:~build$ *make --jobs=1 install  *(jobs=4 was bad)  
>>>>> it stops on     [ 31%] Building CXX object 
>>>>> source/fe/CMakeFiles/obj_fe_release.dir/fe_q.cc.o.
>>>>>
>>>>> So, I tried on another PC with 4 GB RAM. It builds CXX object until 
>>>>> 100%:
>>>>>
>>>>> ...
>>>>> [100%] Building CXX object 
>>>>> source/non_matching/CMakeFiles/obj_non_matching_debug.dir/immersed_surface_quadrature.cc.o
>>>>> [100%] Built target obj_non_matching_debug
>>>>> Scanning dependencies of target deal_II.g
>>>>> [100%] Building CXX object source/CMakeFiles/deal_II.g.dir/dummy.cc.o
>>>>> [100%] Linking CXX shared library ../lib/libdeal_II.g.so
>>>>> [100%] Built target deal_II.g
>>>>> Scanning dependencies of target obj_integrators_debug
>>>>> [100%] Built target obj_integrators_debug
>>>>> Scanning dependencies of target obj_integrators_release
>>>>> [100%] Built target obj_integrators_release
>>>>> Scanning dependencies of target obj_rol_inst
>>>>> [100%] Built target obj_rol_inst
>>>>> Scanning dependencies of target obj_rol_release
>>>>> [100%] Built target obj_rol_release
>>>>> Scanning dependencies of target obj_rol_debug
>>>>> [100%] Built target obj_rol_debug
>>>>>
>>>>> but, there is a fly in the ointment. I proceeds:
>>>>>
>>>>> Install the project...
>>>>> -- Install configuration: "DebugRelease"
>>>>> CMake Error at cmake/scripts/cmake_install.cmake:41 (file):
>>>>>   file cannot create directory: 
>>>>> /path/to/install/dir/share/deal.II/scripts.
>>>>>   Maybe need administrative privileges.
>>>>> Call Stack (most recent call first):
>>>>>   cmake_install.cmake:42 (include)
>>>>>
>>>>> Makefile:73: recipe for target 'install' failed
>>>>> make: *** [install] Error 1
>>>>>
>>>>> The command did not manage to create the directoty  
>>>>> */path/to/install/dir/share/deal.II/scripts*
>>>>>
>>>>> I feel that I crossed the ocean and died on the beach!   but the cause 
>>>>> wasn't n-Cov19!
>>>>>
>>>>> Any help?
>>>>>
>>>> -- 
>>>> 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 dea...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/dealii/cdc2ec84-0007-485b-9a8f-71daec1301ebo%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/dealii/cdc2ec84-0007-485b-9a8f-71daec1301ebo%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> 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 dea...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/7db5379a-51ce-4675-b5ff-2a04a6b89b71o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/dealii/7db5379a-51ce-4675-b5ff-2a04a6b89b71o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/b5098809-24f7-47a8-bf13-30f35f400c9fo%40googlegroups.com.

Reply via email to