CINT & WIN32 & OpenGL

Hello,

I there an openGL support for CINT on WIN32. By looking at the CINT/Lib/Gl/setup.bat file there seems to be support for OpenGL for Win32 when I tried to run the script, using Visual c++, I get the following output:

$ ./setup.bat

c:\cint\lib\gl>set INC=’-Ic:\Program Files\Microsoft Visual Studio\VC98\Include’

c:\cint\lib\gl>rem #LIB=’-L/usr/X11R6/lib -lGL -lGLU -lglut -lXmu -lX11 -lXi’

c:\cint\lib\gl>rem set LIB=’-lGLAUX -lGLU32’

c:\cint\lib\gl>move …\include/GL …\include/GLx
The system cannot find the path specified.

c:\cint\lib\gl>makecint -mk Makefile -dl gl.dll ‘-Ic:\Program Files\Microsoft Visual Studio\VC98\Include’ -h TOP.h -l “c:\Program Files\Microsoft Visual Studio\VC98\Lib\glaux.lib” “c:\Program Files\Microsoft Visual Studio\VC98\Lib\glu32.lib”
################################################################

makecint : interpreter-compiler for cint (Visual C++ version)

Copyright© 1995~2004 Masaharu Goto (MXJ02154@niftyserve.or.jp)

(cint mailing list 'cint@root.cern.ch’)

################################################################
Makefile is created. Makecint success.
Do ‘make -f Makefile’ to compile the object

c:\cint\lib\gl>make

c:\cint\lib\gl>nmake CFG=“gl - Win32 Release”

Microsoft ® Program Maintenance Utility Version 6.00.8168.0
Copyright © Microsoft Corp 1988-1998. All rights reserved.

    if not exist ".\Release/" mkdir ".\Release"
    cint   -K -w1 -zgl -nG__c_gl.c  -D__MAKECINT__  -c-2   TOP.h

Microsoft ® 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright © Microsoft Corp 1984-1998. All rights reserved.

stg._cint.c
c:\cint\include\X11/Xutil.h(1) : warning C4182: #include nesting level is 364 deep; possible infinite recursion
c:\cint\include\X11/Xutil.h(1) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
cl.exe /nologo /MT /W3 /GX /O2 /I “c:\cint” /I “c:\cint/src” /D “NDEBUG” /D “WIN32” /D “_WINDOWS” /D “G__VISUAL” /D “G__WIN32” /D “G__SHAREDLIB” /Fp".\Release/gl.pch" /YX /Fo".\Release/" /c "G__c_gl.c"
G__c_gl.c
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\windef.h(118) : warning C4005: ‘CALLBACK’ : macro redefinition
cintGL.h(15) : see previous definition of 'CALLBACK’
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\windef.h(121) : warning C4005: ‘APIENTRY’ : macro redefinition
cintGL.h(14) : see previous definition of 'APIENTRY’
C:\PROGRA~1\MICROS~2\VC98\INCLUDE\wingdi.h(21) : warning C4005: ‘WINGDIAPI’ : macro redefinition
cintGL.h(13) : see previous definition of 'WINGDIAPI’
link.exe @c:\DOCUME~1\BAk\LOCALS~1\Temp\nma00420.
Creating library .\Release/gl.lib and object .\Release/gl.exp
LINK : warning LNK4089: all references to “LIBCINT.dll” discarded by /OPT:REF

c:\cint\lib\gl>del gl.dll
Could Not Find c:\cint\lib\gl\gl.dll

c:\cint\lib\gl>move Release\gl.dll .\gl.dll

on opengl dll gl.dll is created but it doesnt export any functions. It seems that cint is continously including the GL.h file which is at the current directory, but not the GL.h in the visual c++ include dir. If I delete the GL.h file I get numerous linker errors eventhough I set correct path for the lib files.

G__c_gl.obj : error LNK2001: unresolved external symbol _glGetClipPlane
G__c_gl.obj : error LNK2001: unresolved external symbol _glGetBooleanv
G__c_gl.obj : error LNK2001: unresolved external symbol _glGenTextures
G__c_gl.obj : error LNK2001: unresolved external symbol _glGenLists
G__c_gl.obj : error LNK2001: unresolved external symbol _glFrustum
G__c_gl.obj : error LNK2001: unresolved external symbol _glFrontFace

How can I get over these problems.

Thank you

Batu Akan

Hello,

OpenGL support in Cint is experimental. There are a few environments it works to some extent. But, it is not as portable as I hope it should be. A little difference in environment makes things broken. Sorry about this. But, I have no time to work on this subject now. I am pretty much occupied by reengineering.

Masa Goto