I want to install CGAL in my account in our cluster; as a prerequisite, I installed PMG in a folder, and according to this post https://unix.stackexchange.com/questions/265239/how-to-install-a-custom-gmp-lib-for-just-one-user
I added some lines to the content of the .bashrc file.
GMP_DIR="${HOME}/gmp-6.1.2"
export LD_LIBRARY_PATH=${GMP_DIR}/lib64:$LD_LIBRARY_PATH
export LIBRARY_PATH=${GMP_DIR}/lib64:$LIBRARY_PATH
export CPATH=${GMP_DIR}/include:$CPATH
But after configuring CGAL with the following command
cmake -DWITH_CGAL_Core=ON -DWITH_CGAL_Qt5=OFF -DWITH_CGAL_ImageIO=OFF -DWITH_examples=OFF -DWITH_demos=OFF -DGMP_LIBRARIES_DIR:PATH=/data/home/parisa/gmp-6.1.2/lib -DGMP_INCLUDE_DIR:PATH=/data/home/parisa/gmp-6.1.2/include .
I got this error message :
External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
-- Preconfiguring library: GMP ...
-- Could NOT find GMP (missing: GMP_LIBRARIES)
CMake Error at cmake/modules/CGAL_SetupDependencies.cmake:66 (message):
CGAL requires GMP to be found
Call Stack (most recent call first):
CMakeLists.txt:673 (include)
-- Configuring incomplete, errors occurred!
See also "/data/home/parisa/CGAL-4.9.1/CMakeFiles/CMakeOutput.log".
I tried to change the lib in the above command to libgmp.a, libgmp.la ,and ... but none of them worked!
How can I fix this error?
Related
When trying to compile cv_bridge in ROS2 cmake find_package does not find boost-python3 package.
Follow error ensues:
--- stderr: cv_bridge
CMake Error at /usr/local/Cellar/cmake/3.17.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find Boost (missing: python3) (found version "1.72.0")
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.17.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.17.1/share/cmake/Modules/FindBoost.cmake:2145 (find_package_handle_standard_args)
CMakeLists.txt:32 (find_package)
---
Failed <<< cv_bridge [ Exited with code 1 ]
What is the reason for this?
Making sure CMake uses the built-in Boost CMake files instead of the Boost-installed one fixes the issue:
colcon build --symlink-install --cmake-args ' -DBoost_NO_BOOST_CMAKE:BOOL=0'
Add the CMake argument -D Boost_NO_BOOST_CMAKE:BOOL=0
As described and referenced from here https://www.forum.freecadweb.org/viewtopic.php?f=4&t=39301 :
This tells cmake to not use the cmake-config files included in boost directly. Instead config files from cmake are used like for the previous boost versions.
Due to the needs of the project,need to use vcpkg to install 1.18grpc and 3.6.1.3protobuf,so I modified vcpkg-master\ports\rpc\CONTROL to the specified version,Of course, I also modified the CONTROL of protobuf.Finally vcpkg reported error: Error: Building package grpc: x86-windows failed with: BUILD_FAILED
windows10 ,the latest version of vcpkg-master.zip
Building package grpc[core]:x86-windows...
-- Note: grpc only supports static library linkage. Building static library.
-- Using cached D:/Google/vcpkg-master/downloads/grpc-grpc-75475f090875e737ad6909a6057c59577f0c79b1.tar.gz
-- Extracting source D:/Google/vcpkg-master/downloads/grpc-grpc-75475f090875e737ad6909a6057c59577f0c79b1.tar.gz
-- Applying patch 00001-fix-uwp.patch
-- Applying patch 00002-static-linking-in-linux.patch
-- Applying patch 00003-undef-base64-macro.patch
-- Applying patch 00004-link-gdi32-on-windows.patch
-- Using source at D:/Google/vcpkg-master/buildtrees/grpc/src/577f0c79b1-086c8c6e6c
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
Command failed: D:/Google/vcpkg-master/downloads/tools/cmake-3.14.0-windows/cmake-3.14.0-win32-x86/bin/cmake.exe --build . --config Debug --target install -- -v
Working Directory: D:/Google/vcpkg-master/buildtrees/grpc/x86-windows-dbg
See logs for more information:
D:\Google\vcpkg-master\buildtrees\grpc\install-x86-windows-dbg-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:96 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
ports/grpc/portfile.cmake:73 (vcpkg_install_cmake)
scripts/ports.cmake:73 (include)
I hope that vcpkg can install the specified version of protobuf and grpc, but the actual vcpkg only installed protobuf, and grpc failed.
I found the same issue about your problem in #8710, I think it can work for you:
It seems the function is getting duplicate with system function.
Can you unzip this patch , move it to VCPKG_PATH/ports/grpc/ and add line:
fix-duplicate-gettid.patch
to VCPKG_PATH/ports/grpc/portfile.cmake line 27
then try to rebuild grpc?
I am trying to install JDFTx by simply following the instructions on the page http://jdftx.org/CompilingBasic.html.
I have installed Cygwin from here (Windows, x64): https://cygwin.com/install.html . And I also believe that I have installed necessary libraries, listed here: http://jdftx.org/Dependencies.html .
Now, when I enter in the Cygwin64 terminal the command:
cmake ../jdftx-VERSION/jdftx
I am getting the following message:
CMake Error at /usr/share/cmake-3.6.2/Modules/FindBLAS.cmake:690 (message):
A required library with BLAS API not found. Please specify library
location.
Call Stack (most recent call first):
/usr/share/cmake-3.6.2/Modules/FindLAPACK.cmake:165 (find_package)
CMake-Modules/FindLAPACK_ATLAS.cmake:20 (find_package)
CMakeLists.txt:85 (find_package)
-- Configuring incomplete, errors occurred!
See also "/cygdrive/c/jdftx/build/CMakeFiles/CMakeOutput.log".
See also "/cygdrive/c/jdftx/build/CMakeFiles/CMakeError.log".
The solution is to use this command instead, thus explicitly specifying the location of the library:
cmake -DLAPACK_LIBRARIES=/usr/lib/liblapack.dll.a ../jdftx-1.4.1/jdftx
However, now I am getting the following output, containing another error message:
-- Forcing static linking for Cygwin/Windows
-- Found GSL: /lib/libgsl.dll.a
-- Found FFTW3: /lib/libfftw3_threads.dll.a /lib/libfftw3.dll.a
-- Found LAPACK: /usr/lib/liblapack.dll.a
-- Found CBLAS: /usr/lib/libgslcblas.dll.a
-- Found MPI_C: /usr/lib/libmpi.dll.a;/usr/lib/libopen-rte.dll.a;/usr/lib/libope n-pal.dll.a;/usr/lib/libm.a;/usr/lib/w32api/libgdi32.a
CMake Warning at /usr/share/cmake-3.6.2/Modules/FindMPI.cmake:420 (message):
Unable to find MPI library mpi_cxx
Call Stack (most recent call first):
/usr/share/cmake-3.6.2/Modules/FindMPI.cmake:610 (interrogate_mpi_compiler)
CMakeLists.txt:93 (find_package)
CMake Error at /usr/share/cmake-3.6.2/Modules/FindPackageHandleStandardArgs.cmak e:148 (message):
Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.6.2/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA _FAILURE_MESSAGE)
/usr/share/cmake-3.6.2/Modules/FindMPI.cmake:628 (find_package_handle_standard _args)
CMakeLists.txt:93 (find_package)
-- Configuring incomplete, errors occurred!
See also "/cygdrive/c/jdftx/build/CMakeFiles/CMakeOutput.log".
See also "/cygdrive/c/jdftx/build/CMakeFiles/CMakeError.log".
Would anyone have an idea what other option should I use in the cmake call?
Thanks!
The solution is:
cmake -DLAPACK_LIBRARIES=/usr/lib/liblapack.dll.a -DMPI_CXX_LIBRARIES=/usr/lib/libmpi_mpifh.dll.a ../jdftx-1.4.1/jdftx
Now I realize, this is not a solution for the second error...
The actual solution is to uninstall all related libraries and install previous versions (instead of the newest ones). After I have done it, everything works fine.
I've just installed CLion and i needed compiler. I installed Cygwin.
But there was an error:
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
CMake Error: Error executing cmake::LoadCache(). Aborting.
Error code: 1
So, CMake was "bundled" and i tried to install it from site. But there was the next error:
Selected CMake might be incompatible with the Cygwin environment.
In order to run on Cygwin, CMake needs to be specially compiled.
Please select either CMake bundled with CLion or CMake from the Cygwin installation.
CMake Error: The source directory "/cygdrive/c/Users/Пользователь/AppData/Local/Temp/cmake_check_environment" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error code: 1
Then i've tried to install MinGW - this time it was the following problem:
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: D:/MinGW/mingw64/bin/gcc.exe
-- Check for working C compiler: D:/MinGW/mingw64/bin/gcc.exe -- broken
CMake Error at D:/CLion 182.2574.4/bin/cmake/share/cmake-3.11/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"D:/MinGW/mingw64/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/Пользователь/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp
Run Build Command:"D:/MinGW/mingw64/bin/mingw32-make.exe" "cmTC_a4ce5/fast"
D:/MinGW/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_a4ce5.dir\build.make CMakeFiles/cmTC_a4ce5.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/╧юы№чютрЄхы№/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a4ce5.dir/testCCompiler.c.obj
D:\MinGW\mingw64\bin\gcc.exe -o CMakeFiles\cmTC_a4ce5.dir\testCCompiler.c.obj -c C:\Users\╨Я╨╛╨╗╤М╨╖╨╛╨▓╨░╤В╨╡╨╗╤М\AppData\Local\Temp\cmake_check_environment\_build\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: C:\Users\╨Я╨╛╨╗╤М╨╖╨╛╨▓╨░╤В╨╡╨╗╤М\AppData\Local\Temp\cmake_check_environment\_build\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
mingw32-make.exe[1]: *** [CMakeFiles\cmTC_a4ce5.dir\build.make:65: CMakeFiles/cmTC_a4ce5.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/╧юы№чютрЄхы№/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp'
mingw32-make.exe: *** [Makefile:125: cmTC_a4ce5/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/Пользователь/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Пользователь/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeError.log".
Error code: 1
In both cases it's problems with paths, i think. I tried to give root to CLion, gcc, etc. - nothing.
I've tried to find logs or just way to this path - but all was worthless - path doesn't exist.I just can't find out, why that's happening.
Help me, please
Looks like there is a problem with encodings somewhere between windows/cygwin/clion/cmake (I assume you user name is non-ascii).
As a quick workaround try:
installing CLion in the location without non-latin symbols
changing CLion's system and config folders to the location without non-latin symbols. instructions
And to troubleshoot the problem, could you please check if the cygwin's console shows the user home path correctly? (e.g. use ls /cygdrive/c/Users/, then cd to the user home path).
If Cygwin can correctly work with the user home, could you please file a bug report and attach CLion's log files? (Help | Show Log in Explorer)
Encountered the following message while cmake-ing libjreen on Mac.
$ cmake ..
-- checking for module 'qca2'
-- package 'qca2' not found
CMake Error at /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find QCA2 (missing: QCA2_LIBRARIES QCA2_INCLUDE_DIR)
Call Stack (most recent call first):
/opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
cmake/FindQCA2.cmake:44 (find_package_handle_standard_args)
CMakeLists.txt:22 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
How do I go on about installing qca2?
Update I have installed qca through macports without any luck. It seems I would need libqca2-devel which is not present on macports. How do I install libqca2-devel?
Well, this got solved.
I had to install qca2 from source so that cmake could pick it up