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

examples fail to build: ld: error: undefined symbol: glfwGetTime #116

Open
yurivict opened this issue Mar 29, 2022 · 2 comments
Open

examples fail to build: ld: error: undefined symbol: glfwGetTime #116

yurivict opened this issue Mar 29, 2022 · 2 comments

Comments

@yurivict
Copy link
Contributor

: && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -Wall -Wextra -stdlib=libc++ -D_LIBCPP_VERSION -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong -stdlib=libc++ CMakeFiles/example1.dir/src/example1.cpp.o -o example1 -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/disk-samsung/freebsd-ports/x11-toolkits/nanogui/work/.build  libnanogui.so && :
ld: error: undefined symbol: glfwGetTime
@yurivict
Copy link
Contributor Author

The above is with NANOGUI_BUILD_GLFW=ON.
With NANOGUI_BUILD_GLFW=OFF the project installs these files:

include/GLFW/glfw3.h
include/GLFW/glfw3native.h

that conflict with a standalone glfw package.

@oikumene
Copy link

It seems that ON and OFF are reversed?
include/nanogui/opengl.h includes GLFW/glfw3.h, so these 2 files are needed to be installed with NANOGUI_BUILD_GLFW=ON. If you do not want the conflict with a standalone glfw, you need to specify NANOGUI_BUILD_GLFW=OFF and depend on the standalone glfw package.
NANOGUI_BUILD_GLFW=OFF requires the fix in #104 .

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