I am looking for some assistance compiling the phylogeny package,  
ARB. Ben Hines will be looking at compiling ARB on Leopard but I  
would like to get the latest source for ARB to compile on intel/ 
Tiger.  So far, it compiles much of the way then stops with the  
error: invalid conversion from 'int*' to 'GLint*'.  I have seen  
discussions of this kind of error but I would appreciate some expert  
assistance on how to patch the ARB code.

Thanks, Mike Dyall-Smith,  mlds (AT) unimelb (DOT) edu.au


------------------------------------------------------------------------ 
-------- Make everything in RNA3D
g++ -DDARWIN -DNO_REGEXPR  -no-cpp-precomp -DHAVE_BOOL -O4 -DNDEBUG  - 
DARB_OPENGL -DFAKE_VTAB_PTR=char -D_ARB_RNA3D -c -o RNA3D_Main.o  
RNA3D_Main.cxx  -I. -I/sw2/src/fink.build/arb-20071029ogl-2007/./ 
INCLUDE -I/usr/X11R6/include -I/sw2/include/
g++ -DDARWIN -DNO_REGEXPR  -no-cpp-precomp -DHAVE_BOOL -O4 -DNDEBUG  - 
DARB_OPENGL -DFAKE_VTAB_PTR=char -D_ARB_RNA3D -c -o RNA3D_Interface.o  
RNA3D_Interface.cxx  -I. -I/sw2/src/fink.build/arb-20071029ogl-2007/./ 
INCLUDE -I/usr/X11R6/include -I/sw2/include/
g++ -DDARWIN -DNO_REGEXPR  -no-cpp-precomp -DHAVE_BOOL -O4 -DNDEBUG  - 
DARB_OPENGL -DFAKE_VTAB_PTR=char -D_ARB_RNA3D -c -o RNA3D_Graphics.o  
RNA3D_Graphics.cxx  -I. -I/sw2/src/fink.build/arb-20071029ogl-2007/./ 
INCLUDE -I/usr/X11R6/include -I/sw2/include/
g++ -DDARWIN -DNO_REGEXPR  -no-cpp-precomp -DHAVE_BOOL -O4 -DNDEBUG  - 
DARB_OPENGL -DFAKE_VTAB_PTR=char -D_ARB_RNA3D -c -o  
RNA3D_OpenGLEngine.o RNA3D_OpenGLEngine.cxx  -I. -I/sw2/src/ 
fink.build/arb-20071029ogl-2007/./INCLUDE -I/usr/X11R6/include -I/sw2/ 
include/
g++ -DDARWIN -DNO_REGEXPR  -no-cpp-precomp -DHAVE_BOOL -O4 -DNDEBUG  - 
DARB_OPENGL -DFAKE_VTAB_PTR=char -D_ARB_RNA3D -c -o  
RNA3D_OpenGLGraphics.o RNA3D_OpenGLGraphics.cxx  -I. -I/sw2/src/ 
fink.build/arb-20071029ogl-2007/./INCLUDE -I/usr/X11R6/include -I/sw2/ 
include/
RNA3D_OpenGLGraphics.cxx: In member function 'void  
OpenGLGraphics::WinToScreenCoordinates(int, int, GLdouble*)':
RNA3D_OpenGLGraphics.cxx:110: error: invalid conversion from 'int*'  
to 'GLint*'
RNA3D_OpenGLGraphics.cxx:110: error:   initializing argument 2 of  
'void glGetIntegerv(GLenum, GLint*)'
RNA3D_OpenGLGraphics.cxx:117: error: invalid conversion from 'int*'  
to 'const GLint*'
RNA3D_OpenGLGraphics.cxx:117: error:   initializing argument 6 of  
'GLint gluUnProject(GLdouble, GLdouble, GLdouble, const GLdouble*,  
const GLdouble*, const GLint*, GLdouble*, GLdouble*, GLdouble*)'
make[1]: *** [RNA3D_OpenGLGraphics.o] Error 1
make: *** [RNA3D/RNA3D.dummy] Error 2
### execution of /var/tmp/tmp.2.AmmNm4 failed, exit code 2


_____________for reference, lines 102-118 of  
RNA3D_OpenGLGraphics.cxx: _________

void OpenGLGraphics::WinToScreenCoordinates(int x, int y, GLdouble  
*screenPos) {
     //project window coords to gl coord
     glLoadIdentity();
     GLdouble modelMatrix[16];
     glGetDoublev(GL_MODELVIEW_MATRIX,modelMatrix);
     GLdouble projMatrix[16];
     glGetDoublev(GL_PROJECTION_MATRIX,projMatrix);
     int viewport[4];
     glGetIntegerv(GL_VIEWPORT,viewport);
     gluUnProject(x, y, 0,
                  modelMatrix,
                  projMatrix,
                  viewport,
                  //the next 3 parameters are the pointers to the  
final object coordinates.(double)
                  &screenPos[0], &screenPos[1], &screenPos[2]
                  );
}
______________________________________________________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to