Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-04

GLUT vs windows 64 bits

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Philippe

I made an application with GLUT. I did not have any problem to run under windows 32.

Under windows 64 bits, the program does not
recognize the glut32.dll properly and returns a message.

I made a test
with example program openglcontrol_demo. Just added GLU, GLUT in a unit, no other change to the project. I got:

Object openglcontrol_demo
raised exception class `Exception` with message:
Could not load Glut
from glut32.dll

I tried with GLUT32.DLL in windows32, in syswow64 and in both.

When I try to registrer the dll in either directory I got a message which tells me that the DLL was found but

dllRegisterServer
not found

And this is the very same file GLUT32.DLL I am using with XP e Windows 8 32 bits ...

Well ... may be there is better mail list for
this kind of problem!!!

I appreciate any help. Even suggestion of
other "compatible" package (I have visited lists ... but some packages are quite as old as GLUT himself, or example does not work, or very different and I may not be able to move to ...)

Philippe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140410/b82a18df/attachment.html>

Reply by email

Reimar Grabowski
to Philippe
I made an application with GLUT.

Don't. Just do not use GLUT in any way or shape.
It is very, very old. AFAIR the latest pre-compiled binary distributions were for Windows 95 and NT. Of course there is no official Windows 64 support as GLUT is dead and rotten. Use OpenGLControl for context managment in Lazarus and get rid of GLUT. If you absolutely must use GLUT (although I cannot think of any viable reason) use freeglut as it is at least maintained.

hih
R.

Reply by email

Sven Barth
to Philippe: I made an application with GLUT. I did not have any problem to run under windows 32.…
Philippe wrote 5 lines
I made an application with GLUT. I did not have any problem to run under windows 32. Under windows 64 bits, the program does not recognize the glut32.dll properly and returns a message.

Are you using a 64-Bit compiler to compiler your application that uses Glut? If so then this explains why you can't use Glut... It's a 32-Bit library. You'll need a 64-Bit version of it.

Regards,
Sven

Reply by email

Sven Barth
to Philippe: I made an application with GLUT. I did not have any problem to run under windows 32.…
Philippe wrote 5 lines
I made an application with GLUT. I did not have any problem to run under windows 32. Under windows 64 bits, the program does not recognize the glut32.dll properly and returns a message.

Note: I would suggest you to use FreeGLUT if you want to keep the API. It's a drop in replacement for the original GLUT, but also provides 64-Bit libraries. See here: http://freeglut.sourceforge.net/ (at Prepackaged Releases you can find a link for Windows binaries)

Regards,
Sven

Reply by email

Philippe
to Sven Barth

I read some confuse documentation ... and get in trouble!!!

thanks. I?ll try first with freeglut ... seems to be the laziest way! may be latter with openGl Control ... I?ll read
http://wiki.freepascal.org/OpenGL_Tutorial next ...

thanks again

Philippe

Sven Barth wrote
On 10.04.2014
Philippe wrote
> I made an application with GLUT. I did not

have any problem to run under windows 32. Under windows 64 bits, the program does not recognize the glut32.dll properly and returns a message.

Note: I would suggest you to use FreeGLUT if you want to

keep the API.

It's a drop in replacement for the original GLUT, but

also provides

64-Bit libraries. See here:

http://freeglut.sourceforge.net/ [1] (at

Prepackaged Releases you can

find a link for Windows binaries)

Show quoted text 6 lines
Regards, Sven --

Reply by email

Philippe
to Sven Barth: Note: I would suggest you to use FreeGLUT if you want to keep the API. It's a drop in…

my program worked with freeglut ...

I just noted some differences
on windows 7 64 bits ... may be because it is on notebook!!!!

thanks a
lot for your help!

Philippe

Sven Barth wrote
On 10.04.2014 18:43, Philippe wrote: > I made an

application with GLUT. I did not have any problem to run under windows
32. Under windows 64 bits, the program does not recognize the glut32.dll properly and returns a message.

Note: I would suggest you to use

FreeGLUT if you want to keep the API.

It's a drop in replacement for

the original GLUT, but also provides

64-Bit libraries. See here:

http://freeglut.sourceforge.net/ [1] (at

Prepackaged Releases you can

find a link for Windows binaries)

Show quoted text 6 lines
Regards, Sven --

Reply by email

Anthony Tekatch
to Reimar Grabowski: On Thu, 10 Apr 2014 13:43:56 -0300 Don't. Just do not use GLUT in any way or shape. It is…
Reimar Grabowski wrote 11 lines
On Thu, 10 Apr 2014 13:43:56 -0300 Philippe wrote: > I made an application with GLUT. Don't. Just do not use GLUT in any way or shape. It is very, very old. AFAIR the latest pre-compiled binary distributions were for Windows 95 and NT. Of course there is no official Windows 64 support as GLUT is dead and rotten. Use OpenGLControl for context managment in Lazarus and get rid of GLUT. If you absolutely must use GLUT (although I cannot think of any viable reason) use freeglut as it is at least maintained.

I am a bit confused now. This page seems to use GLUT for many examples: http://wiki.freepascal.org/OpenGL_Tutorial
is it out of date?

I would like to easily draw shapes like a torus/sphere/cone etc., and also put some rotatable text in a 3D image for a Lazarus project on a Windows/Mac/Linux systems. This seems to be easily done with GLUT, but will require the installation of a glut32.dll or a freeglut dll file, is that true?

Looking forward to your recommendations.

Reply by email

Reimar Grabowski
to Anthony Tekatch
I am a bit confused now. This page seems to use GLUT for many examples: http://wiki.freepascal.org/OpenGL_Tutorial is it out of date?

Well, concerning OpenGL use yes.
The type of OpenGL you see there is deprecated ("fixed function") modern OpenGL is shader based. On the other hand using GLUT for simple Demos is using GLUT as it was meant to be used but it should not be used for complete applications as it is very limited and old.

Show quoted text 5 lines
I would like to easily draw shapes like a torus/sphere/cone etc., and also put some rotatable text in a 3D image for a Lazarus project on a Windows/Mac/Linux systems. This seems to be easily done with GLUT, but will require the installation of a glut32.dll or a freeglut dll file, is that true?

Yes.

Looking forward to your recommendations.

If you just want to get your stuff going, go ahead use freeglut (as it at least lets you exit GLUTs application main loop). But remember that you are using a deprecated API and not using the hardware resources to their fullest. Modern OpenGL (3+) has a steeper learning curve but is a much better API the old one is only around for legacy applications.

hih
R.

Reply by email

Anthony Tekatch
to Reimar Grabowski
Reimar Grabowski wrote
... Modern OpenGL (3+) has a steeper learning curve but is a much better API the old one is only around for legacy applications.

Thank you for your wisdom! I will start the "steep" (opengl) climb :)

Reply by email