Skip to main content
GameDev.net gamedev.net
🔒 Locked

GLFW help

Started by plastic_dragon99 Jan 27, 2008 at 7:50 PM 6 replies 1k views
Original Post
plastic_dragon99
plastic_dragon99
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.
plastic_dragon99
plastic_dragon99
bump because im still stuck.

Also if it helps im using code::blocks
Ezbez
Ezbez
My crystal ball is in the shop - can you tell us the errors? Maybe give us some code?
plastic_dragon99
plastic_dragon99
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.
donny dont
donny dont
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.
plastic_dragon99
plastic_dragon99
Ok im checking the links now. Thanks for the help.

I use windows xp. I tried the glfw tutorials and no matter what i try i cant get it to work like the tutorial says it should.
donny dont
donny dont
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.
Boder
Boder
Here is a very good link for you. Hope it helps.

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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.