1/19/2024 0 Comments Cmake install ubuntu terminalThere are universal Linux binaries provided, but you'll need to pick an install location. Kitware provides a Debian/Ubuntu apt repository, as well as snap packages. You can also get it on most other package managers, such as Chocolatey for Windows or MacPorts for macOS. It's not a bad way to get it on macOS either (and a Universal2 version is supplied supporting both Intel and Apple Silicon), but using brew install cmake is much nicer if you use Homebrew (and you should Apple even supports Homebrew such as during the Apple Silicon rollout). This is how you will probably get CMake if you are on Windows. APT repository (Ubuntu/Debian only) (official).Pip(x) (official, often updates same-day).Quick list (more info on each method below) Feel free to instruct your users here if they complain about a CMake requirement being set too high. You can easily install a new one instead, either on the system level or the user level. If you have a built in copy of CMake, it isn't special or customized for your system. It should be newer than the libraries you are using (especially Boost). i.Your CMake version should be newer than your compiler. Thank you for your help.Įdit: I tried following viewtopic.php?f=2&t=3653&p=12338&hilit=. Building CXX object fem/src/CMakeFiles/elmersolver.dir/ usr/include/hypre/HYPRE_utilities.h:20:10: fatal error: mpi.h: No such file or directory In file included from /usr/include/hypre/_hypre_utilities.h:8,įrom /home/renzo/elmerfem/fem/src/SolveHypre.c:47: Building C object fem/src/CMakeFiles/elmersolver.dir/SolveHypre.c.o In desperation I tried to this command from the sources and compilation to see if it would fix this:Ĭmake -DWITH_ELMERGUI:BOOL=FALSE -DWITH_MPI:BOOL=FALSE -DCMAKE_INSTALL_PREFIX=./install. Building CXX object fem/src/CMakeFiles/elmersolver.dir/ make: *** Error 1 make: *** Waiting for unfinished jobs. Building C object fem/src/CMakeFiles/elmersolver.dir/SolveHypre.c.o In file included from /usr/include/hypre/_hypre_utilities.h:8, from /home/renzo/elmerfem/fem/src/SolveHypre.c:47: /usr/include/hypre/HYPRE_utilities.h:20:10: fatal error: mpi.h: No such file or directory 20 | #include "mpi.h" | ^~~~~~~ compilation terminated. I forget what I did, but I got a different error after doing something: Built target elmersolver make: *** Error 2 Build files have been written to: /home/renzo/build LAPACK library: /usr/lib/x86_64-linux-gnu/liblapack.so /usr/lib/x86_64-linux-gnu/libblas.so BLAS library: /usr/lib/x86_64-linux-gnu/libblas.so checking for thread-local storage - found ELMERSOLVER_RPATH_STRING_MOD $ORIGIN/./lib/elmersolver Found 124 modules from /home/renzo/elmerfem/fem/src/modules Library not found: >MMG_FOUNDMMG_INCLUDE_DIRMMG_LIBRARYNetCDF_FOUNDNetCDF_INCLUDE_DIRNetCDF_LIBRARYNetCDFF_LIBRARYHDF5_FOUNDHDF5_INCLUDE_DIRHDF5_LIBRARYHDF5F_LIBRARY< Mesh adaptation 2D/3D looking for tools Checking whether GFortran version >= 4.8 - yes Implicitly converting 'FILE' to 'STRING' type. elmer.cmakeĬMake Warning (dev) at /home/renzo/elmer.cmake:19 (SET): elmerfem -DMAKE_INSTALL_PREFIX="/home/elmeruser/Elmer" Then I continued, making a build directoryĬmake -C. SET(MPIEXEC_PREFLAGS "-allow-run-as-root" CACHE STRING "") Dont try to automatically pick required packages. SET(BYPASS_DEB_DEPENDENCIES TRUE CACHE BOOL "") # Elmer packaging specific. "libopenblas-base, libmumps-5.2.1, libopenmpi3, libparmetis4.0, libmetis5, libhypre-2.18.2, libblas.so.3, liblapack.so.3, liboce-modeling11, liboce-foundation11, libqt5widgets5, libqt5script5, libqt5core5a, libqt5gui5, libqt5help5, libqt5opengl5, libvtk6.3, libvtk6.3-qt" CACHE STRING "") SET(MAKE_RPM_PACKAGE FALSE CACHE BOOL "") SET(QWT_LIBRARY "/usr/lib/libqwt-qt5.so.6" CACHE FILE "qwt library file name") SET(ELMER_SOLVER_HOME "/usr/share/elmersolver" CACHE PATH "") SET(Hypre_INCLUDE_DIR "/usr/include/hypre" CACHE PATH "") SET(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "") Then I followed the video to make the elmer.cmake (precache) file and I deleted the last few lines of code as instructed. Sudo apt-get install -y liboce-modeling-dev \ Sudo apt install -y -no-install-recommends \ Here's the installation process I followed on Ubuntu within a vm. If you recommend restarting and following another installation tutorial, thank you in advance. elmerfem/ -DCMAKE_INSTALL_PREFIX="/home/elmeruser/Elmer" command, and the make -j 3 command. I followed the YouTube video "Elmer compilation for Ubuntu Focal", I typed into the terminal on Ubuntu, and I may have caught errors during the cmake -C. I am using Ubuntu 20.04 on Oracle VM VirtualBox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |