Author Topic: openGL, SFML setup  (Read 8778 times)

Offline Holy_Bible_Servant

  • Single posting newcomer
  • *
  • Posts: 5
    • Free Bible Info
openGL, SFML setup
« on: September 23, 2021, 02:19:40 am »
I am new and im here . . . im having such a problem getting open GL

https://www.opengl.org/archives/resources/code/samples/glut_examples/examples/examples.html

to work on my x64/windows 8.1 computer to work.  ive done many tuts on youtube to try to get open GL files to work correctly but no success.  I am looking to get into 3D game programming and i already know how to model 3D with autodesk maya.  can anyone shoot me some links to where I can get openGL/freeGLUT to work correctly?

specs: windows 8.1 x64, tdm-GCC compiler install,
Free Bible Info
https://tinyurl.com/dp5uaf8s

REPENT!

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: openGL, SFML setup
« Reply #1 on: September 23, 2021, 01:33:22 pm »
Install a nightly and a recent compiler, then use the project wizard to create a basic OpenGL project and later modify that project using the examples.

Offline Holy_Bible_Servant

  • Single posting newcomer
  • *
  • Posts: 5
    • Free Bible Info
Re: openGL, SFML setup
« Reply #2 on: September 25, 2021, 12:49:31 pm »
thanks for the reply Miguel, the compiler I installed for my version is https://jmeubank.github.io/tdm-gcc/download.

Is this nightly compatible with this?
do you know where i can watch any good tutorials on how to work with nightlies so i can get my openGL to work correctly?
Free Bible Info
https://tinyurl.com/dp5uaf8s

REPENT!

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: openGL, SFML setup
« Reply #3 on: September 25, 2021, 01:26:12 pm »
The nightly is the last release with bug fixes and enhancements, and one of them will eventually become the next release. You can use any tutorial for 20.03 or 17.12 with little or no changes.

Just use the OpenGL wizard (File -> New -> Project -> OpenGL project) to create your first project and then modify it as you learn.

Offline Holy_Bible_Servant

  • Single posting newcomer
  • *
  • Posts: 5
    • Free Bible Info
Re: openGL, SFML setup
« Reply #4 on: September 27, 2021, 05:19:07 am »
For the life of me I cant figure out how to get these stupid lib files to work so that I can do open GL and freeglut projects.  I really don't see why if you want to do 3d graphic coding you need to download extra files, drag and drop to this folder and that folder, transfer this to that, setup the linker text, bla bla bla.  Why cant they just make these ide's be able to be installed, everything works, and you start typing?  this is getting on my nerves.  Do you know anyone that can take over my computer with teamviewer and get the openGL/freeglut things to work so i can start coding my 3d models that I made in maya?  Im willing to pay via cashapp or paypal.  You know anyone that is interested ??
Free Bible Info
https://tinyurl.com/dp5uaf8s

REPENT!

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: openGL, SFML setup
« Reply #5 on: September 27, 2021, 09:19:29 am »
TDM should include all the needed library and header files, you don't need to download anything. If the OpenGL wizard does not setup the path to the libraries look for them in the TDM folder (libopengl32.a, libglut32.a) and add their path to Project -> Linker -> Search directories

Offline Holy_Bible_Servant

  • Single posting newcomer
  • *
  • Posts: 5
    • Free Bible Info
Re: openGL, SFML setup
« Reply #6 on: September 27, 2021, 10:14:13 am »
TDM should include everything but it doesnt.  thats why Im asking maybe I can find a person that can take over my computer with team viewer and maybe they can set it up for me and I pay them.  I dont see why one has to download all these extra files and drag and drop to all these various folders, all this extra stuff is unecessary.  But if these game studios want someone to buy their game, the customer wouldnt need to download and install lib files and extra files just to get the game to work when they paid money for the game.  You should be able to just download and installl codeblocks and get started coding.  There should be a special precompiled openGL/directx/SFML version that you can download and install.  having to set up lib files and linker files, compilers, etc, all that is making me frustrated, ive been trying it for 2 weeks now, ive downloaded sfml and glut files from like 20 different youtube videos and this isnt working for me at all.  You dont know anyone that wants to make some money and install it for me??
Free Bible Info
https://tinyurl.com/dp5uaf8s

REPENT!

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: openGL, SFML setup
« Reply #7 on: September 27, 2021, 11:55:25 am »
In fact TDM from your link includes them:

Code
C:\TDM-GCC-64\x86_64-w64-mingw32\lib\libopengl32.a
C:\TDM-GCC-64\x86_64-w64-mingw32\lib\libglu32.a

If you download libraries from random sites you will get only frustration and gnashing of teeth.

*PLONK*
« Last Edit: September 29, 2021, 06:48:52 pm by Miguel Gimenez »

Offline Holy_Bible_Servant

  • Single posting newcomer
  • *
  • Posts: 5
    • Free Bible Info
Re: openGL, SFML setup
« Reply #8 on: September 27, 2021, 12:24:05 pm »
ill check to see if these files are there, but ive compiled and ran a console game with tdm-gcc but when i try to utilize
#include <GL/glut.h> it wont find the files.  ill ask around and see if i can get some help from somewhere, this is getting annoying. .   in the meantime ill just do some more C++ tuts from the youtube channels i know about.
« Last Edit: September 27, 2021, 12:33:08 pm by Holy_Bible_Servant »
Free Bible Info
https://tinyurl.com/dp5uaf8s

REPENT!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: openGL, SFML setup
« Reply #9 on: September 27, 2021, 08:39:58 pm »
FYI: TDM GCC 32 bit and 64 bit are totally different from each other!!!!

Edit:
Neither 32 nor 64 bit TDM GCC has  "glut.h".
But, both had "glu.h" in GL folder.
Edit2: On-line info says "glu.h" is a header useful only for old code and should not be used for new projects.

Tim S.
« Last Edit: September 28, 2021, 09:21:41 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org