-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building With CMake and installed GLFW binaries #45
Comments
@thomastjeffery related glfw/glfw#634 |
As far as I can tell, the binary release contains no It really isn't trivial to find a |
I have this exact same problem. Thanks for raising the issue up! |
same issue.. anyone can help?? |
Ran into this issue today, solved by installing the |
For reference, I have seen two cases where this happens (these don't seem to be the case for the original user, but will hopefully help others):
|
Stumbled upon this via google, adding a "redirect" link.
As explained in glfw/glfw#483 (comment) , when you build and install GLFW then the file The file is not available in the precompiled Windows binary release. |
Still having this issue using the latest precompiled Windows binaries, can't find any information about where to find these files/where they need to be |
Updates on Findglfw3.cmake /glfw3Config.cmake [?] So glfw3 lib binaries, /include but no cmake files for dependent builds. Like Ospay_studio...snipped below.... :\catkin_ws>cd c:\repo\ospray_studio c:\repo\ospray_studio>cmake . Could not find a package configuration file provided by "glfw3" with any of
|
I installed |
Same issue, there is a solution? |
I found a Solution, you should follow this steps:
Now you can build your project :D |
@Areshkew I'm getting this on windows: wave.c
wave.vcxproj -> C:\Users\stewa\Downloads\VkGalaxy-main\glfw-master\build\examples\Debug\wave.exe
1>Building Custom Rule C:/Users/stewa/Downloads/VkGalaxy-main/glfw-master/tests/CMakeLists.txt
window.c
window.vcxproj -> C:\Users\stewa\Downloads\VkGalaxy-main\glfw-master\build\tests\Debug\window.exe
1>Building Custom Rule C:/Users/stewa/Downloads/VkGalaxy-main/glfw-master/examples/CMakeLists.txt
windows.c
windows.vcxproj -> C:\Users\stewa\Downloads\VkGalaxy-main\glfw-master\build\examples\Debug\windows.exe
1>Building Custom Rule C:/Users/stewa/Downloads/VkGalaxy-main/glfw-master/CMakeLists.txt
C:\Users\stewa\Downloads\VkGalaxy-main\glfw-master\build>cmake --install .
-- Install configuration: "Release"
CMake Error at src/cmake_install.cmake:39 (file):
file INSTALL cannot find
"C:/Users/stewa/Downloads/VkGalaxy-main/glfw-master/build/src/Release/glfw3.lib":
File exists.
Call Stack (most recent call first):
cmake_install.cmake:37 (include)
C:\Users\stewa\Downloads\VkGalaxy-main\glfw-master\build>cmake --install . --prefix install
-- Install configuration: "Release"
CMake Error at src/cmake_install.cmake:39 (file):
file INSTALL cannot find
"C:/Users/stewa/Downloads/VkGalaxy-main/glfw-master/build/src/Release/glfw3.lib":
File exists.
Call Stack (most recent call first):
cmake_install.cmake:37 (include)
C:\Users\stewa\Downloads\VkGalaxy-main\glfw-master\build> |
@FSSRepo For windows, you gotta make the build files, where you will find the cmake-gui to be easiest way. Also, make sure to use glfw3 as package name not just glfw, this is because the cmake in glfw-build is named glfw3Config.cmake As an example, here is mine, set(glfw3_DIR "${CMAKE_SOURCE_DIR}/Lib/glfw-build/src")
find_package(glfw3 3.4 REQUIRED)
include_directories(${glfw3_DIR}) |
I realized that I had to build it in Release mode, that's why it didn't allow me to use the |
i'm resolved this issue by installing above one |
This page says that you can add the line
find_package(glfw3 3.2 REQUIRED)
to your
CMakeLists.txt
, and be able to build the project using CMake.It does nothing to explain where to put the glfw3 binaries, and does not provide a
Findglfw3.cmake
,glfw3Config.cmake
, or aglfw3-config.cmake
file, which CMake needs to evaluate thefind_package
macro. The precompiled binaries from here do not provide them either.Simply adding the above
find_package
line to a simpleCMakeLists.txt
yields this error:
Is there an example
Findglfw3.cmake
,glfw3Config.cmake
, orglfw3-config.cmake
file somewhere?The text was updated successfully, but these errors were encountered: