Jump to content
  • Advertisement
Sign in to follow this  
plastic_dragon99

GLFW help

This topic is 3798 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Here is a very good link for you. Hope it helps.

http://wiki.codeblocks.org/index.php?title=Using_GLFW_with_Code::Blocks

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!