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

OpenGL Failure on CVF sample programs

breeding
Beginner
909 Views
I have recently switched from NT4.0 to Windows 2000 using CVF 6.6 on a new machine. I was able to get the OpenGL samples to work on the old machine, but now they won't work on the new one.
For example, the 3D cube program compiles and starts. It pops up an auxiliary window as before, but now I get an error message saying:
wglCreateContext Failed.
This error occurs when the code calls fauxInitWindow.
I have reinstalled the entire CVF and it still doesn't work. Any suggestions?
0 Kudos
2 Replies
Steven_L_Intel1
Employee
909 Views
That's probably a problem with the OpenGL support on your new PC. Some video drivers have flaky OpenGL support. It isn't CVF-related.
0 Kudos
sumitm
Beginner
909 Views
I also think the problem is not CVF related.
I also run a lot of opengl on Win2K and XP and have been able to succesfully run on both systems.
This may not be the problem, but did you follow the instructions that came with the download of f90gl from Bill Mitchell's website
1. Copy libglut32.dll to your Windows System folder or some folder on your PATH
2. Copy libf90GL.lib, libf90GLU.lib, libf90GLUT.lib and libglut32.lib to your
Visual Fortran LIB folder (for example,
C:Program FilesMicrosoft Visual StudioDF98LIB)
3. Copy the eight .mod files in the lib folder to your Visual Fortran INCLUDE folder
(for example, C:Program FilesMicrosoft Visual StudioDF98INCLUDE)
4. If using the Developer Studio IDE, add the .LIB files from step 2 to your project
(Project..Add to project..Files). If using the command line, you will need to
name these libraries on your link command.
Folder "examples" contains example programs. Batch file mf8nvo.bat will build for
Visual Fortran. To build examples, start a Fortran Command Prompt window (Start..Programs..
Visual Fortran 6.x..Fortran Command Prompt) and type the command:
mf8nvo all
The most important one is the last line where you run mf8nvo all from the FORTRAN COMMAND PROMPT to rebuild the files for Win2K using the environment you have.
If that does not work then the graphics card or something else in the computer may be the problem. But I have seen my opengl applications run on even 8MB shared video integrated graphics cards.
Hope this helps.
Sumit
0 Kudos
Reply