adamlwgriffiths / cyglfw3

Cython bindings for GLFW3
Other
20 stars 6 forks source link

Trouble building on Mint 17 #20

Open cactorium opened 8 years ago

cactorium commented 8 years ago

The install fails with an ImportError: .... undefined symbol glfwGetMonitors. This is after compiling glfw3 from source and install it using make install. Installation using pip and setup.py both appear to fail in the same way

adamlwgriffiths commented 8 years ago

Are you running GLFW 3.1? Sounds more like you're running GLFW 2.

adamlwgriffiths commented 8 years ago

Sorry, just re-read that and noticed you said "glfw3 from source".

If you did a make install, chances are it ended up in /usr/local. Perhaps change the include / link paths to the setup.py?

Hmm, actually that is already added to the include paths, and /opt. Where did it install it?

cactorium commented 8 years ago

Hey! Sorry, I was basically reporting this on behalf of a friend's computer. I'll try to test it out more this weekend. Any details you'd think would help?

On Tue, Nov 3, 2015, 17:30 Adam Griffiths notifications@github.com wrote:

Sorry, just re-read that and noticed you said "glfw3 from source".

If you did a make install, chances are it ended up in /usr/local. Perhaps change the include / link paths to the setup.py?

— Reply to this email directly or view it on GitHub https://github.com/adamlwgriffiths/cyglfw3/issues/20#issuecomment-153509775 .

adamlwgriffiths commented 8 years ago

Well undefined symbol means it's found the headers (include files), but it's failing to find those references at link time. So the includes should be ok, but the link directives / paths could be wrong. It's possible Mint has moved away from GCC to LLVM and cause be causing issue, but LLVM is generally compatible, so I'm unsure. Apart from checking what compiler you're using, all I can suggest is playing around with the linker options in setup.py.