[xcrysden] Installation of XCrySDen under Mac OSX snow leopard

Jian-Xin Zhu jxzhu at lanl.gov
Tue Jul 27 00:58:38 CEST 2010


Dear Prof. Kokalj and Respectful users,

These days I tried to install the XCrySDen on the Mac Intel with OSX  
Snow Leopard.
I downloaded xc-1.5.21-src-all.tar.gz from http://www.xcrysden.org/Download.html 
.

I have already installed Tcl, Tk, and Mesa through fink.

The OpenGL for "include" stuff is in /System/Library/Frameworks/ 
OpenGL.framework/Versions/A/Headers

However, when I execute the command
make all

Many errors (as copied/pasted below) came out when the C-code was  
compiled.



....
#------------------------------#
#                              #
#   Compiling XCRYSDEN C-code  #
#                              #
#------------------------------#

cd C; make "TOPDIR=/Users/jxzhu/XCrySDen" compile
make  TOPDIR=/Users/jxzhu/XCrySDen
gcc -ansi -fwritable-strings -funroll-loops -fPIC -DUSE_FONTS -dynamic  
-DMAC_OSX  -DUSE_FONTS    -I/usr/X11R6/include  -c detnsplit.c
In file included from /usr/X11R6/include/GL/gl.h:1386,
                  from struct.h:44,
                  from detnsplit.c:22:
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:37: error:  
expected identifier or '(' before '/' token
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:38: error:  
stray '#' in program
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2427: error:  
expected ')' before 'op'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2428: error:  
expected ')' before 'func'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2431: error:  
expected ')' before 'mode'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2432: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2435: error:  
expected ')' before 'mode'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2436: error:  
expected ')' before 'modeRGB'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2437: error:  
expected ')' before 'sfactor'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2439: error:  
expected declaration specifiers or '...' before 'GLenum'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2446: error:  
expected ')' before 'plane'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2480: error:  
expected ')' before 'face'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2481: error:  
expected declaration specifiers or '...' before 'GLenum'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2482: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2483: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2484: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2485: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2486: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2487: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2488: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2489: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2490: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2491: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2492: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2493: error:  
expected ')' before 'target'
/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2494: error:  
expected ')' before 'target'


...

In file included from struct.h:44,
                  from detnsplit.c:22:
/usr/X11R6/include/GL/gl.h:1407: error: expected ')' before 'op'
/usr/X11R6/include/GL/gl.h:1408: error: expected ')' before 'func'
/usr/X11R6/include/GL/gl.h:1411: error: expected ')' before 'mode'
/usr/X11R6/include/GL/gl.h:1412: error: expected ')' before 'target'
/usr/X11R6/include/GL/gl.h:1415: error: expected ')' before 'mode'
/usr/X11R6/include/GL/gl.h:1416: error: expected ')' before 'modeRGB'
/usr/X11R6/include/GL/gl.h:1417: error: expected ')' before 'sfactor'
/usr/X11R6/include/GL/gl.h:1419: error: expected declaration  
specifiers or '...' before 'GLenum'
/usr/X11R6/include/GL/gl.h:1426: error: expected ')' before 'plane'
/usr/X11R6/include/GL/gl.h:1460: error: expected ')' before 'face'
/usr/X11R6/include/GL/gl.h:1461: error: expected declaration  
specifiers or '...' before 'GLenum'
/usr/X11R6/include/GL/gl.h:1462: error: expected ')' before 'target'
/usr/X11R6/include/GL/gl.h:1463: error: expected ')' before 'target'
/usr/X11R6/include/GL/gl.h:1464: error: expected ')' before 'target'
/usr/X11R6/include/GL/gl.h:1465: error: expected ')' before 'target'
/usr/X11R6/include/GL/gl.h:1466: error: expected ')' before 'target'
/usr/X11R6/include/GL/gl.h:1467: error: expected ')' before 'target'
...

In file included from /usr/X11R6/include/GL/gl.h:1993,
                  from struct.h:44,
                  from detnsplit.c:22:
/usr/X11R6/include/GL/glext.h:5226: error:  
'PFNGLCHECKFRAMEBUFFERSTATUSPROC' declared as function returning a  
function
/usr/X11R6/include/GL/glext.h:7613: error:  
'PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC' declared as function returning a  
function
/usr/X11R6/include/GL/glext.h:8393: error:  
'PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC' declared as function  
returning a function
In file included from detnsplit.c:22:
struct.h:859: error: field 'shademodel' declared as a function
make[2]: *** [detnsplit.o] Error 1
make[1]: *** [compile] Error 2
make: *** [src-C] Error 2


This kind of errors were not seen on Mac Intel with Leopard.

I very much appreciate your help.

Thanks,

Jianxin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20100726/6fe08f9b/attachment.htm 


More information about the XCrySDen mailing list