Closed sunnyEV closed 2 years ago
I don't think CMake is able to use environment variables like that, you might need to pass them as CMake options like e.g. Misunderstood the question, is there any reason you explicitly specify these libraries as compared to building with your system installed ones?-DPNG_LIBRARY=/home/sun/data/softwares/libpng-1.6.37/lib
Either way, X11_Xxf86vm_LIB looks to be the correct option to specify but for me it's set to a specific .so file lib/libXxf86vm.so
as compared to just a lib folder, is that the issue?
Irrlichtmt is designed for our own usecases and we're not aiming to maintain compatibility with upstream irrlicht. It probably shouldn't be used by other projects
@rollerozxa Yes, you're right after setting environmental variable, cmake unable to find the lib. I dont really understand why it is showing this error message. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: X11_Xxf86vm_LIB
I tried to install in irrlichit in different server(SAGA). It says Could NOT find OpenGLES2 I try to find OpenGLES2 LIb in web it says OpenGL or OpenGL-ES are not libraries
https://stackoverflow.com/questions/18996801/opengl-es-2-0-gldrawelements-implementation
Some help please.
cmake . -DBUILD_SHARED_LIBS=OFF
-- Building IrrlichtMt 1.9.0 -- Looking for _IRR_COMPILE_WITHOGLES1 -- Looking for _IRR_COMPILE_WITHOGLES1 - found -- Found OpenGLES: OPENGLES_LIBRARY-NOTFOUND -- Looking for _IRR_COMPILE_WITHOGLES2 -- Looking for _IRR_COMPILE_WITHOGLES2 - found CMake Error at /cluster/software/CMake/3.16.4-GCCcore-9.3.0/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find OpenGLES2 (missing: OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR) Call Stack (most recent call first): /cluster/software/CMake/3.16.4-GCCcore-9.3.0/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) cmake/FindOpenGLES2.cmake:24 (find_package_handle_standard_args) source/Irrlicht/CMakeLists.txt:73 (find_package)
-- Configuring incomplete, errors occurred!
The library is called libGLESv2
. On a Debian system it would be part of libgles-dev
package.
I installed libgles-dev but I still get the same error `cmake . -DBUILD_SHARED_LIBS=OFF -- Building IrrlichtMt 1.9.0 -- Looking for _IRR_COMPILE_WITHOGLES1 -- Looking for _IRR_COMPILE_WITHOGLES1 - not found -- Looking for _IRR_COMPILE_WITHOGLES2 -- Looking for _IRR_COMPILE_WITHOGLES2 - not found -- Looking for _IRR_COMPILE_WITHOPENGL -- Looking for _IRR_COMPILE_WITHOPENGL - found -- Looking for _IRR_LINUX_X11XINPUT2 -- Looking for _IRR_LINUX_X11XINPUT2 - not found -- Looking for _IRR_COMPILE_WITH_SDLDEVICE -- Looking for _IRR_COMPILE_WITH_SDLDEVICE - not found -- Configuring done CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: X11_Xxf86vm_LIB (ADVANCED) linked by target "IrrlichtMt" in directory /home/kirrim/git/irrlicht/source/Irrlicht
-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly.`
Like the error message hints at you have to install libxxf86vm-dev
too.
Also note that you can't set variables using the environment like the submitter tried to do, it has to be -DNAME=value
on the CMake command line.
looks like everything gets fixed if I ignore the readme on this repo and just follow the instructions on the minetest-dev repo readme, which requests irrlichi and describes how to install it
Hi,
Trying to install irrlichtmt, I installed all the necessary libraries and exported the environmental variables in .bashrc. Still I'm end up in cmake error.