Open akav opened 6 years ago
Thanks @akav.
@shehzan10 any ideas?
Unfortunately I don't have access to a Linux machine with CUDA.
@akav Do you think you can try linking the shared glfw library? On Ubuntu 16.04, you can install it using sudo apt install libglfw3-dev
and then change the library name from glfw3
to glfw
in CMakeLists.txt
.
@shehzan10 I have just tried it with same results.
To get round the issue of not having a Linux machine, under Windows 10 you can enable the Linux subsystem, then download the network deb for CUDA 8 and install CUDA just fine. You can also do the same within a virtual machine under VirtualBox or VMWare Player.
I went back to GLFW instructions: http://www.glfw.org/docs/3.0/build.html
And have added: find_package(PkgConfig REQUIRED) pkg_search_module(GLFW REQUIRED glfw3)
and then:
target_link_libraries(${CMAKE_PROJECT_NAME} src
${GLFW_LIBRARIES}
${CORELIBS}
)
Build is successful now when dynamic linking GLFW and works static linking when switching to ${GLFW_STATIC_LIBRARIES} in target_link_libraries.
Sounds great! Sorry about the delay on my end. My laptop is failing to boot so my problems have simply been compounded.
I'll try to investigate this in more detail once I'm back on track.
No worries, take your time. Just wanted to point out also that the same issue I faced in this source tree is evident in other CIS565 projects (including CUDA rasterizer). Making the change should help fix build issues for all other projects as well.
@shehzan10 just wanted to catch up on this. Have you tried the fix I mentioned?
Library linking sequence as set in CMakeList: list(APPEND CMAKE_EXE_LINKER_FLAGS "-lX11 -lXxf86vm -lXrandr -lXi") cause the linker to break with the aforementioned error w/ Ubuntu 14.04 and 16.04, gcc 4.9.