Skip to content
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

CMake variable GLFW_LIBRARY not set #37

Open
elwl opened this issue Jul 6, 2015 · 3 comments
Open

CMake variable GLFW_LIBRARY not set #37

elwl opened this issue Jul 6, 2015 · 3 comments

Comments

@elwl
Copy link

elwl commented Jul 6, 2015

src/client/CMake/Modules/glfwConfig.cmake kinda needs it. Bypassed by just throwing it in as a variable from command line.
cmake . -DGLFW_LIBRARY=/usr/local/lib/libglfw3.3.1.dylib
or whatever version brew installed.
Yay OS X.

@stephen304
Copy link

Similar problem on arch linux, cmake couldn't find glfwConfig.cmake. I set the path to glfwConfig.cmake manually in ccmake:

glfw_DIR                         /home/stephen/git/NoLifeStory/src/client/CMake/Modules

For some reason a relative path didn't work. Then it was able to find glfw3 fine.
(also needed portaudio and libsquish, just putting these here I may make an arch package)

@ghost
Copy link

ghost commented May 22, 2016

For me on OS X, I was able to deal with glfw by installing with brew and adding this to CMakeLists.txt:

+if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND "${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
 +    add_compile_options(-stdlib=libc++)
 +    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -l glfw3")
 +endif()

Seemingly the same end result.

@ghost
Copy link

ghost commented May 22, 2016

@stephen304 I noticed you mentioned libsquish, which I found quite difficult to acquire the dylib for this as the original source was made to build so files. If anyone needs a working libsquish.dylib, here's this fresh built one that finally allowed me to build NoLifeWzToNx!

libsquish.dylib.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants