Sign in to follow this  
plastic_dragon99

GLFW help

Recommended Posts

hi all, well as the title says I cant quite get glfw to work. I know that the files have to be linked but thats about as far as I can get. I've been programming for a while but this is the first time I've tried to link something. Any help or even a nudge in the right direction would be greatly appreciated.

Share this post


Link to post
Share on other sites
i cant even get that far.

When i download glfw its comes in a bunch of source files and i was told that i needed to combine those into a single library. Well i have no idea how to do that. If it had been errors and code problems i would have posted it.

Share this post


Link to post
Share on other sites
Not familiar with Code Blocks but am familiar with GLFW. A google search yields this

http://www.learncpp.com/cpp-tutorial/a3-using-libraries-with-codeblocks/

How you build GLFW depends on the OS. One of the GLFW tutorials is a good start.

http://glfw.sourceforge.net/tutorials/lesson00/lesson00.html

Other than that you could potentially include the source in your project, not the most elegant solution, and compile it with the rest of your files.

If you can be more specific on the platform you're running on it may be beneficial.

Share this post


Link to post
Share on other sites
Okay so I'm assuming you're doing Cygwin then?

If you read the documentation in the readme included with the source code you need to get into a cygwin shell, not a windows shell. Get to the directory where you unpacked the source and type the following

make cygwin-install

That should get everything going for you, and copy everything to the cygwin directory.

Honestly I'm not terribly familiar with using Cygwin as I'm more of a visual studio person, but that SHOULD work for you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this