Closed niansa closed 2 years ago
Hello. What version of Horde3D are you using (release version/master/develop branches)? What cmake version do you use? Did glfw compile successfully? Do you see generated .a file in 'project_glfw-prefix/lib/'? Do you see this problem only with terrain sample or with other samples as well? Please try to disable terrain extension (HORDE3D_BUILD_TERRAIN) and build again.
Hello. What version of Horde3D are you using (release version/master/develop branches)?
master branch
What cmake version do you use?
cmake version 3.22.1
Did glfw compile successfully?
Seems like it?
Do you see generated .a file in 'project_glfw-prefix/lib/'?
Yes. To be specific, in 'project_glfw-prefix/lib64/'
Do you see this problem only with terrain sample or with other samples as well?
All samples
Please try to disable terrain extension (HORDE3D_BUILD_TERRAIN) and build again.
No change
Hello. Well, it seems that the problem is that the file is generated to unexpected path, specifically to "project_glfw-prefix/lib64/". I'll try to replicate the issue, but I don't have machine with void linux installed, debian-based distros do not seem to have this problem. As a workaround, you can try to use glfw from your package manager by unsetting HORDE3D_FORCE_DOWNLOAD_GLFW option and setting GLFW_LIBRARY_PATH manually.
Hello.
Can you please modify line 52 in FindGLFW.cmake file
from
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DGLFW_BUILD_DOCS:BOOL=OFF -DGLFW_BUILD_EXAMPLES:BOOL=OFF -DGLFW_BUILD_TESTS:BOOL=OFF
to
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_INSTALL_LIBDIR:PATH=lib -DGLFW_BUILD_DOCS:BOOL=OFF -DGLFW_BUILD_EXAMPLES:BOOL=OFF -DGLFW_BUILD_TESTS:BOOL=OFF
Does it help? It seems that for some reason in void linux CMAKE_INSTALL_LIBDIR defaults to lib64, while on debian-based distros it defaults to lib.
Yep, that helped! Thanks a lot :D
Should be fixed by #204. It seems that the issue comes from new cmake versions and not distro. Please reopen if issue persists.
Hey, I am experiencing issues building on void linux:
glfw-devel
is definitely installed.