How to install the freeglut library in dev c++?

Asked

Viewed 871 times

-1

Can anyone help me? How do I install the freeglut library in devc++? Next semester will have computer graphics in college and I can’t install the freeglut library to help me in game development.

What I have so far is a briefcase called freeglut inside it has

A folder called Bin, another Include and another called Lib

Inside the bin folder has the freeglut.dll file Inside the include folder is the freeglut files. h glut. h freeglut_std. h freeglud_ext. h Inside the lib folder has two libfreeglut files. a and libfreeglut_static. a

Can anyone help me ? I have no idea how to install and every time I try wrong.

1 answer

1

Withdrawal response from a discussion from the Dev-C page++:

1) click on the Projects -> "Project Options" -> "Parameters"

2) under "Linker", where it says: "Add library or object", click on that button,

3) scan the list until you find the library you want to link, (** if your library. a is not in the default / lib / folder, select the folder correct ), double-click on it, which will put libcurl. in the list of linkers, repeat the process for more libraries,

4) Click the OK button to close the window, 5) Under FILE, click "Save All", 6) Under Run, click "Rebuild All"

Advice

Personally I would recommend the SDL2 for this type of project, because it is possible to create the window and from there already implement Opengl, Directx and Vulkan , ie, greatly facilitates if you at some point make your game/application support multiple graphical Apis.

You mentioned game development, so I would recommend Unreal Engine 4 for her future projects, she has support to different platforms (including televisions) and graphic Apis, she has games enshrined in her resume as street Fighter and the remake of the final Fantasy VII that be in production.

  • I thought Unreal didn’t have a student version. I now saw in "about": use for free, pay 5% when dispatching

  • Didn’t help me much friend !! Its got the glut. h a glut32dll and a glut.lib I added the lib and now ?

  • Well, you’re going to need basically the header, the library. that of glut and the.dll file that should be put in the execution directory of your program, as you are using glut I suppose your project will use opengl, so you should add the opengl32 linkage parameter, but I have no idea how to do it in devc++

  • This Microsoft page explains about using dlls https://msdn.microsoft.com/pt-br/library/1ez7dh12.aspx would be a good idea if you used visual studio community in your projects

  • 1

    @Jeffersonquesado yes, lately she is being considered the queen of the Dies, because you have an AAA engine and only pay 5% of your profits, and every day she improves, recently she has integrated the simplygon completely in your editor allowing free use for mesh optimization

Browser other questions tagged

You are not signed in. Login or sign up in order to post.