forum@abinit.org
Subject: The ABINIT Users Mailing List ( CLOSED )
List archive
Re: [abinit-forum] Difficulties building V_sim vers 3.4.4 on Mac OS X 10.6 (Snow Leopard)
Chronological Thread
- From: St Druid <tq02ksu@gmail.com>
- To: forum@abinit.org
- Subject: Re: [abinit-forum] Difficulties building V_sim vers 3.4.4 on Mac OS X 10.6 (Snow Leopard)
- Date: Wed, 7 Oct 2009 20:52:22 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=jjFyhgelMl+/fsTylFfpmKWQ/ZZDdTVPnhUk/CgsbDwoyJCT1cLWitRDW1ZD4+Jdu5 Kig+G6sYd/90OR+a7LPqSltDdmsPlWc4Wj8B62nflujNc2pPHTKEpQBLL/Z4Tw1W8Uiz z6tx3kOFAOr3fR3+sZUeoijxtkzgtPQZkCY8Q=
Dear David M. Wood:
I have an alternative is that you can install a precompiled version using Macports (http://macports.org). It is also a common way to install free softwares on Macintosh.
Cheers.
On Wed, Oct 7, 2009 at 5:32 AM, David M. Wood <dmwood@mines.edu> wrote:
In response to Damien's urging from yesterday, I'm asking for help in building V_Sim.
I'm running Mac OS X 10.6 (Snow Leopard) and am trying to build V_Sim version 3.4.4. I'm using fink to provide needed libraries.
After considerable experimentation, I found that
./configure --x-libraries=/usr/X11/lib --x-includes=/usr/X11/include
completes and produces a makefile, with the report
Configuration:
Source code location: .
Destination path prefix: /usr/local
Compiler: gcc
CFLAGS: -O2 -Wall -W -ansi
LDFLAGS:
OpenGL: built-in
| CFLAGS: -I/usr/X11/include
| LIBS: -lGLU -lGL -L/usr/X11/lib -lX11 -lm
Enable debug messages: no
Enable gtk-doc: no
Plug-ins:
With Nanoquanta support: no
With OpenBabel support: no
With ABINIT support: no
With XCrysDen support: no
Plug-ins options:
Need a C++ compiler: no
======Note=============
The sequence
./configure --with-opengl-path=/usr/X11/include--with-opengl-path=/usr/X11/include
as instructed under the heading Specific points about the installation of V_Sim on MacOSX from sources on the installation page does NOT work: no OpenGL libraries are detected.
======End Note=============
But, an attempt to 'make' produces a large cascade of complaints, such as
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/cairo -I/sw/include/pango-1.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pixman-1 -I/sw/include/freetype2 -I/sw/include -I/sw/include/libpng12 -I/usr/X11R6/include -I/usr/X11/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/usr/X11/include -D'LOCALE_DIR="/usr/local/share/locale"' -D'DATA_DIR="/usr/local/share/v_sim"' -D'LEGAL_DIR="/usr/local/share/v_sim"' -D'PIXMAPS_DIR="/usr/local/share/v_sim/pixmaps"' -D'PLUGINS_DIR="/usr/local/lib/v_sim/plug-ins"' -O2 -Wall -W -ansi -MT dumpToSVG.o -MD -MP -MF .deps/dumpToSVG.Tpo -c -o dumpToSVG.o `test -f 'dumpModules/dumpToSVG.c' || echo './'`dumpModules/dumpToSVG.c
In file included from /usr/X11R6/include/GL/gl.h:1386,
from dumpModules/dumpToSVG.c:51:
/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’
and then
In file included from dumpModules/dumpToSVG.c:51:
/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’
and
/usr/X11R6/include/GL/gl.h:1534: warning: type defaults to ‘int’ in declaration of ‘GLenum’
/usr/X11R6/include/GL/gl.h:1534: error: ‘GLenum’ declared as function returning a function
In file included from /usr/X11R6/include/GL/gl.h:1993,
from dumpModules/dumpToSVG.c:51:
/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
dumpModules/dumpToSVG.c: In function ‘writeDataToCairoSurface’:
dumpModules/dumpToSVG.c:182: warning: format not a string literal and no format arguments
Before I even attempt to include ABINIT plugins, can anyone suggest what's going wrong?
It's worth noting, for example, that the header gl.h occurs on my system in a damnably large number of places
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/GL/gl.h
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
/Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/GL/gl.h
/System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h
/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h
/sw/include/FL/gl.h
/sw/include/mesa/GL/gl.h
/usr/X11/include/GL/gl.h
It smells like there are incompatibilities among these and that the make process grabs headers from too many places?
Thanks for any help!
DMW
David M. Wood, Dept. of Physics, Colorado School of Mines, Golden, CO 80401
Phone: (303) 273-3853; Fax: (303) 273-3919
--
B.W. Dong
State Key Laboratory of Superhard Materials,
Jilin University, Changchun, China. 130012
tq02ksu@gmail.com [ dbw07@mails.jlu.edu.cn ]
- [abinit-forum] Difficulties building V_sim vers 3.4.4 on Mac OS X 10.6 (Snow Leopard), David M. Wood, 10/06/2009
- Re: [abinit-forum] Difficulties building V_sim vers 3.4.4 on Mac OS X 10.6 (Snow Leopard), St Druid, 10/07/2009
- Re: [abinit-forum] Difficulties building V_sim vers 3.4.4 on Mac OS X 10.6 (Snow Leopard), Damien Caliste, 10/07/2009
Archive powered by MHonArc 2.6.16.