-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[opengl] add GLEW 2.1.0 as a submodule #768
Conversation
I found them using registry repo to do auto glew.c generation: https://github.com/nigels-com/glfixes |
I made a ready-for-cmake version for glew, see https://github.com/archibate/glew-ready.
So I just extract their snapshot.tgz and toggle that to be a brand-new git repo. |
Because you didn't add target_include_dirs. |
Bad news:
GLEW deps GLU. |
I see. Is there an option to remove this dependency? Or a more lightweight alternative to GLEW is |
I still suggest to let user install glew them self... If they don't know how to install, even |
Actually I just found glad is in a |
Does |
Cmake bug: not building GLEW even if I specied |
tmr to add_sub_directory happy |
|
||
message("Building with GLFW") | ||
add_subdirectory(external/glfw) | ||
target_link_libraries(${LIBRARY_NAME} glfw) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I find is that adding this line enforces cmake
to build GLFW for libglfw3.a
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You find this enfocing on your machine? Did you install glfw in your /usr/include?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and I removed usr/lib/libglfw3.a
. Maybe you can try it on your Arch machine as well.
add_subdirectory(external/glfw glfw.out) | ||
target_include_directories(${LIBRARY_NAME} PUBLIC external/glfw/include) | ||
target_link_directories(${LIBRARY_NAME} PUBLIC external/glfw/src) | ||
target_link_libraries(${LIBRARY_NAME} glfw3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my end I find we should use glfw
instead of glfw3
here. On my computer glfw3
goes to the system /usr/local/lib/libglfw3.a
, but glfw
indeed goes to the submodule. Not sure what the reason is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually external/glfw generates libglfw3.a too... in external/glfw/src/libglfw3.a.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true, but for some reason using glfw
seems to be fine.
cmake phucks me too hurt, let's give up it and say |
tbh I'm now screen 30deg tilt to make my nose happy while making cmake happy at the same time :( won't work tnt, cu tmr. |
Sounds good. Thanks for your hard work! Good night. |
I find
Maybe their CMake script has a bug or something... |
If it's too hard to make
|
or ignore TIWITHOPENGL if not found.
Yes, we'll use the |
Replaced by #819 |
Related issue = #664
[Click here for the format server]