cyglfw3 icon indicating copy to clipboard operation
cyglfw3 copied to clipboard

Trouble building on Mint 17

Open cactorium opened this issue 9 years ago • 4 comments

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

cactorium avatar Nov 03 '15 02:11 cactorium

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

adamlwgriffiths avatar Nov 03 '15 05:11 adamlwgriffiths

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?

adamlwgriffiths avatar Nov 03 '15 22:11 adamlwgriffiths

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 [email protected] 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 .

cactorium avatar Nov 06 '15 23:11 cactorium

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.

adamlwgriffiths avatar Nov 07 '15 00:11 adamlwgriffiths