g95+OpenGL HowTo

97 views
Skip to first unread message

Leszek

unread,
Mar 12, 2006, 7:35:13 AM3/12/06
to gg95
On http://www.uni-koblenz.de/~yasko/g95gl/ the autor describes how to
attach f90gl OpenGL library to g95 compiler under Windows nad Unix. He
gives all indications to attach library and says tahat one's will need:

..for Win32 platform you need in files opengl.mod and glutreturn.o..?

Where or what to do to obtain opengl.mod and glutreturn.o. I am not
familiar with librares I am only fortran user and write code with
graphics in OpenGL.

Garry Willgoose

unread,
Mar 12, 2006, 9:59:21 PM3/12/06
to gg95
I have used opengl on Windows using Compaq fortran for 10 years or so
... so what I say may not apply for g95.

The opengl.mod is the module that links the f90 to the opengl.dll in
the win32 directory. We also couldn't find it and had to write our own.
Let me now if find anything. Elsewise I can root around and see if I
can find the original source for ours (if it still exists;-)

glutreturn.o looks to be an object file for the GLUT library. GLUT a
simple GUI library for opengl originally written for UNIX by Mark
Kilgard but ported by Nate Robins a few years back. As far as I know he
abandoned the project about 3-4 years ago but you can still find his
library on the web.

http://www.xmission.com/~nate/glut.html

Generally it implements the full GLUT interface though some of the more
advanced features are a bit idiosyncratic in operation. Some people
have commented of how slow it is though I have found it OK. As far as I
know there is no other implementation of glut though I'd be very
interested to know of any other out there ... insurance just in case
Vista breaks it.

Garry

Leszek

unread,
Mar 13, 2006, 4:19:34 AM3/13/06
to gg95
I have been using Compaq Fortran 6.6B (eariel F Power Station 4.0, 1.0,
MS Fortran, Profort etc..) too, but not everybody can buy comercials
and this is way I have been looking for g95+opengl free solution.

The autor from http://www.uni-koblenz.de/~yasko/g95gl/ explained to me
that he wrote *.mod himself and I unedrstood everything. But g95
changed and they left the project changing every time *.mod if g95
changed.

I guess that today doesn't exist g95+opengl in free form which I could
download,am I?

Lerszek Flis

I attached the orginal e-mail from the autor from
http://www.uni-koblenz.de/~yasko/g95gl/


***** from the autor http://www.uni-koblenz.de/~yasko/g95gl/ *****
Dear Leszek

Some months ago I without any assistance from G95 staff studied the MOD
file format and made G95 OpenGL bindings. My idea was very different
from f90gl. I did not use any intermediate libraries, only MOD file.
But after G95 staff changed the format of MOD files...! At the moment
it doen't work with new G95 versions.

If I'll find the fund, which to pay my my efforts, I'll remake it and
publish the work free.

Cincerely yours

Nick

***** from the autor http://www.uni-koblenz.de/~yasko/g95gl/ *****

Joost

unread,
Mar 13, 2006, 4:48:15 AM3/13/06
to gg95
directly writing .mod files seems a very fragile approach if you ask
me....

There are Fortran90 bindings to OpenGL, and from the status page of
g95, it seems that they should work.

http://math.nist.gov/f90gl/

It also comes with some documentation.

The other thing you should realize is that you can also write the
interfaces (that is roughly the high level equivalent of the .mod
files) using standard Fortran. That should be enough to call these
graphics routines. Furthermore, with the ISO_C_BINDING module you
should be able to do that for C routines rather easily.

Cheers,

Joost

Leszek

unread,
Mar 13, 2006, 8:23:23 AM3/13/06
to gg95
The problem is that I use bindings from http://math.nist.gov/f90gl/
with CVF 6.6B and it works excellent. But it doesn't work with g95
without changes.

Not everybody can buy a comercial Fortran. Everybody (you also and the
author of the f90gl William Mitchell) says that I should do little
changes to fit f90gl libraries to work with g95 Fortrant. I amn't
familiar with preparing librares, I am ordinary person who knows
Fortran and orders in OpenGl to show my work.

I am asking specialists that they have done combination g95+f90gl. I
won't menage to do it and I am asking that there are somebody that has
solved the problem and is willing to give me instruction how to do it
(as is done on http://math.nist.gov/f90gl/).

It is high time to connect fortran g95+f90gl but I am too weak to go
through the problem. It would be great deal g95+f90gl. Are there
anybody who is willig to help and show the solution not only ideas how
to do it?

By the way for every ideas thank you very much. May be the connection
g95+f90gl doesn't exist and we will be waiting long time for it.

All the best

Leszek Flis

Leszek

unread,
Mar 13, 2006, 8:29:10 AM3/13/06
to gg95
And one more .... the staus page of g95, shows that g95 works with
f90gl it ins't truth. It doesn't works as far as I know. Mayby there is
somebody who konws how to force g95 to work with f90gl - is is my main
postulate !!!

Leszek Flis

Doug

unread,
Mar 13, 2006, 8:56:42 AM3/13/06
to gg95

Well, it is a list of codes that people have compiled and got to work
with g95, but it doesn't say that it was easy!

Doug

Joost

unread,
Mar 13, 2006, 11:27:24 AM3/13/06
to gg95
If you download f90gl, g95 is even mentioned in the README...

February 2005, Version 1.2.10 released

- added support for x86/Linux/g95/Mesa
- added support for Macintosh/MacOS X/g95/OpenGL (thanks to Takeshi
Enomoto)

Joost

Leszek

unread,
Mar 14, 2006, 1:53:50 AM3/14/06
to gg95
Thank you, I will see ....some time ago I wrote to the autor f90gl and
got answer that something shuld be done in this case. Mayby from that
time it was add to readme - thank you

Leszek

unread,
Mar 14, 2006, 2:04:51 AM3/14/06
to gg95
Could you show me the adress or send me direction (name of file) wher
is indication to

added support for x86/Linux/g95/Mesa
- added support for Macintosh/MacOS X/g95/OpenGL (thanks to Takeshi
Enomoto

I can't find anything...only 1.2.8 for Windows I am looking for Windows
solution.

Leszek

unread,
Mar 14, 2006, 2:17:14 AM3/14/06
to gg95
Could you show me the adress or send me direction (name of file) wher
is indication to

added support for x86/Linux/g95/Mesa


- added support for Macintosh/MacOS X/g95/OpenGL (thanks to Takeshi

Enomoto

I can't find anything...only 1.2.8 for Windows I am looking for Windows
solution.

I it possible to relase some readme taht shows what to do to attach
f90gl to g95.

Mayby I am not an expert in fortran but ordinary users like me can't go
througt and join correct f90gl to workin g95. It isn't easy for me. I
have working g95 and now where is f90gl. Can use precompiled library
that join CVF+f90gl in Wndows but I can't join g95+f90gl

Are there some who is willing to help me.......pleas about readme.txt
or ather indication.

I can solve the problem with source code - I don't know how to
precomiled f90gl (what and how - lak of readme.txtx) that works with
g95.

L.F

Alex

unread,
Mar 5, 2015, 8:44:38 AM3/5/15
to gg...@googlegroups.com

Hello,

The link http://www.uni-koblenz.de/~yasko/g95gl/ is dead.
Do you know how to find the information about how to attach f90gl OpenGL library to g95 ?

Thanks,

Alex

--
Reply all
Reply to author
Forward
0 new messages