CMake cannot find OpenGL Libraries - opengl

I am trying to install Mantaflow in my machine, but it says that it can not find libraries for OpenGL.
CMake Error at /home/ewunpyae/anaconda3/envs/ewp-project-env/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY)
Call Stack (most recent call first):
/home/ewunpyae/anaconda3/envs/ewp-project-env/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/home/ewunpyae/anaconda3/envs/ewp-project-env/share/cmake-3.18/Modules/FindOpenGL.cmake:433 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:667 (find_package)
I am running CMake on a new conda environment. Could anyone help me how to solve this issue?

Related

Drake cmake Could NOT find Gurobi

I use ubuntu 20.04 and I trying install Drake software.
I have got error while making with cmake cmake -DWITH_GUROBI=ON -DWITH_MOSEK=ON ../drake:
CMake Error at cmake/modules/FindGurobi.cmake:13 (file):
file STRINGS file
"/home/dmitriy/git/drake/Gurobi_INCLUDE_DIR-NOTFOUND/gurobi_c.h" cannot be
read.
Call Stack (most recent call first):
CMakeLists.txt:450 (find_package)
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Gurobi: Found unsuitable version ".;.", but required is
exact version "9.5.1" (found Gurobi_INCLUDE_DIR-NOTFOUND)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:391 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindGurobi.cmake:52 (find_package_handle_standard_args)
CMakeLists.txt:450 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/dmitriy/git/drake-build/CMakeFiles/CMakeOutput.log".
I installed Gurobi and error dosappeared.

Unsuccessful install HHVM on MacOS

I try to install HHVM on Mac. I use this official link https://docs.hhvm.com/hhvm/installation/mac. I did brew tap hhvm/hhvm. After that I tried to do brew install hhvm. But I got next error:
Last 15 lines from /Users/user/Library/Logs/Homebrew/hhvm-4.118/01.cmake:
-- Could NOT find LibElf (missing: LIBELF_INCLUDE_DIRS)
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Failed
CMake Error at /opt/homebrew/Cellar/cmake/3.21.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find LibDwarf (missing: LIBELF_FOUND)
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.21.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
CMake/FindLibDwarf.cmake:56 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMake/HPHPFindLibs.cmake:259 (find_package)
CMakeLists.txt:112 (include)
-- Configuring incomplete, errors occurred!
See also "/tmp/hhvm-4.118-20210716-11584-nhka0x/hhvm-4.118.0/CMakeFiles/CMakeOutput.log".
See also "/tmp/hhvm-4.118-20210716-11584-nhka0x/hhvm-4.118.0/CMakeFiles/CMakeError.log".
I tried to install libelf with the help of homebrew. But it doesn't help me :(. Could anyone help me. I wasted 2 days to solve this problem but couldn't. Would be really grateful any help.

CMake Error: Could NOT find CryptoPP during Artery installation

I'm looking for solution to resolve the problems below. The error messages are generated during Vanetza installation of Artery ITS-G5 V2X system on Window OS.
Platform and tools are:
Window 10
MinGw-7.3.0
CMake-3.13.0-rc1
Boost 1.68
Crypto++ -7.0.0
The error message:
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find CryptoPP (missing: CryptoPP_INCLUDE_DIR CryptoPP_LIBRARY)
(Required is at least version "5.6.1")
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindCryptoPP.cmake:11 (find_package_handle_standard_args)
CMakeLists.txt:77 (find_package)
Though I have searched much information related, I could not find the proper solution.
I need your help. Thanks a lot in advance.

Unable to find the requested CGNS libraries

I am trying to install Paraview.I am following
http://www.paraview.org/Wiki/ParaView:Build_And_Install#Install_ParaView
With
ccmake $HOME/projects/ParaView
I got
CMake Error at CMake/FindCGNS.cmake:27 (message):
Unable to find the requested CGNS libraries.
Call Stack (most recent call first):
ParaViewCore/VTKExtensions/CGNSReader/CMakeLists.txt:8 (find_package)
CMake Error at VTK/CMake/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find CGNS (missing: CGNS_LIBRARY CGNS_INCLUDE_DIR)
Call Stack (most recent call first):
VTK/CMake/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
CMake/FindCGNS.cmake:33 (find_package_handle_standard_args)
ParaViewCore/VTKExtensions/CGNSReader/CMakeLists.txt:8 (find_package)
How to solve this?

Make Qt5 default for Cmake

I am trying to build amarok in my ubuntu 12. I have installed Qt5 and Qt4.8.1 both in my PC. When I am trying to build and I am getting the following error in Cmake.
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find Qt4: Found unsuitable version "4.8.2", but required is at least "4.8.3" (found /usr/bin/qmake) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:313 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindQt4.cmake:1393 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:83 (find_package)
You need to use the Qt5 specific CMake functions, as documented on the Qt5 CMake documentation page:
cmake_minimum_required(VERSION 2.8.11)
find_package(Qt5Core)
Then there isn't any Qt 4 involved. Anywhere.