Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

OpenGL for Linux 64 bit

john3
Beginner
752 Views
Am back to the problem of compiling Fortran OpenGL on Linux 64 bit platforms using IVF 10.1. (Windows 32 & 64 bit all work). Want the mod files (opengl_gl, opengl_glu, opengl_glut) as well as the NIST f90gl.lib, f90glu.lib and f90glut.lib.

Problem on Linux 64 is in compiling the NIST Fortran OpenGL package to make the mod files and libraries for this 64 bit environment. (Note that this worked in Windows for both 32 and 64).

Has anyone been successful at this? And if so, how. This is very frustrating!

Thanks.

John S
0 Kudos
2 Replies
Steven_L_Intel1
Employee
752 Views
What problems are you having?
0 Kudos
john3
Beginner
752 Views
Was able to compile the *.mod and *.lib for f90gl-1.2.12. But when trying the examples from this NIST directory, get possible name mangle. Here are a few initial lines of the output :

ne):/opt/OpenGL/f90gl-1.2.12/examples # make -f mf8lim7
ifort -O -o blender -I../include/GL blender.f90
-L../lib -L/lib -lf90glut -lf90GLU -lf90GL -lglut -lGLU -lGL -L/usr/X11R6/lib -lXaw -lXt -lXmu -lXi -lXext -lX11 -lm
../lib/libf90glut.a(cwrapglt.o): In function `fglutjoystickfunc_':
cwrapglt.c:(.text+0x161): undefined reference to `__glutSetFCB'
../lib/libf90glut.a(cwrapglt.o): In function `fortranJoystickWrapper':
cwrapglt.c:(.text+0x1a2): undefined reference to `__glutGetFCB'

The blender.mod was made, but then the above errors.

In the mf8lim7 make file for f90gl-1.2.12, there is a setting for name mangle, and I've tried LOWERCASE and UNDERSCORE. Neither worked.

So, ....?

John
0 Kudos
Reply