I have been trying to compile a cuda application that will contain interop with opengl. I cannot seem to successfully link in glut and opengl. Anybody have any success with this. I have moved the code to a linux VM and it compiles successfully. However, on a mac since nvcc does not support the -framework option. And even with direct linking with -L and -l. I cannot seem to compile successfully. Any ideas?
You need to use the Xlinker flag:
-Xlinker “-L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL -lGLU”