Skip to content

Loading rgl fails on 2.7.0

14 messages · Duncan Murdoch, Brian Ripley, Simon Urbanek +1 more

#
Hi,

Can anyone tell me what I'm doing wrong here:

 > install.packages('rgl')
trying URL 'http://cran.r-project.org/bin/macosx/universal/contrib/2.7/rgl_0.74.tgz'
Content type 'application/x-gzip' length 3194464 bytes (3.0 Mb)
opened URL
==================================================
downloaded 3.0 Mb


The downloaded packages are in
	/var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-//RtmpHTwuaH/ 
downloaded_packages

 > require(ca)
Loading required package: ca
Loading required package: rgl
Error in dyn.load(file, DLLpath = DLLpath, ...) :
   unable to load shared library '/Library/Frameworks/R.framework/ 
Resources/library/rgl/libs/i386/aglrgl.so':
   dlopen(/Library/Frameworks/R.framework/Resources/library/rgl/libs/ 
i386/aglrgl.so, 6): Library not loaded: /Library/Frameworks/ 
R.framework/Versions/2.6/Resources/lib/libR.dylib
   Referenced from: /Library/Frameworks/R.framework/Resources/library/ 
rgl/libs/i386/aglrgl.so
   Reason: image not found
Error : .onLoad failed in 'loadNamespace' for 'rgl'
Error: package 'rgl' could not be loaded

R version 2.7.0 Under development (unstable) (2008-02-05 r44340)
i386-apple-darwin8.10.1

locale:
en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/
#
On 11/02/2008 9:09 PM, Michael Kubovy wrote:
It looks as though rgl is referencing something from R 2.6.  Did you 
build rgl, or download a binary?

Duncan Murdoch
#
The URL is for a binary package from CRAN.

So the 'what I am doing wrong' is attempting to use CRAN binaries with a 
non-CRAN build of R.  I've succeeded with type="source".  That repository 
('http://cran.r-project.org/bin/macosx/universal/contrib/2.7) is not 
current -- it has not been touched for 2.5 months.

There is no 'R 2.7.0' as yet: this is R-devel and it is somewhat unstable 
-- there is a new quartz() device and I fixed a segfault since the version 
mentioned and there are graphics changes in progress that may lead to 
incorrect output until finished.  You should expect to have to install 
packages from source in the exact R version you use -- that is if you 
update R-devel you may need to re-install packages.  (I only know that to 
be true of packages providing graphics devices, but the principle is 
general.)
On Mon, 11 Feb 2008, Duncan Murdoch wrote:

            

  
    
#
Thanks. I had already tried to install with menu Package &  
Data:Package Installer from CRAN (Sources). That crashed R.
Now on your advice, I ran
 > install.packages('rgl', type = 'source', lib = '/Library/Frameworks/ 
R.framework/Versions/2.7/Resources/library')
trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.76.tar.gz'
Content type 'application/x-gzip' length 803143 bytes (784 Kb)
opened URL
==================================================
downloaded 784 Kb

* Installing *source* package 'rgl' ...
checking for gcc... gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99

<snip>

checking for sys/types.h... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes

<snip>

The downloaded packages are in
	/private/var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-/RtmpkjuNX6/ 
downloaded_packages
Warning message:
In install.packages("rgl", type = "source", lib = "/Library/Frameworks/ 
R.framework/Versions/2.7/Resources/library") :
   installation of package 'rgl' had non-zero exit status
yes
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking for png_read_update_info in -lpng... no
configure: libpng header and lib found
configure: using libpng dynamic linkage
checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package 'rgl'
** Removing '/Library/Frameworks/R.framework/Versions/2.7/Resources/ 
library/rgl'

So it's not seeing X11, even though I had it running.
On Feb 12, 2008, at 12:44 AM, Prof Brian Ripley wrote:

            
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/
#
You need the development libraries, not just the run-time components.
On Tue, 12 Feb 2008, Michael Kubovy wrote:

            

  
    
#
Thanks. I downloaded and installed gfortran and tcltk from http://cran.r-project.org/bin/macosx/tools/

Then:
 > install.packages('rgl', type = 'source', lib = '/Library/Frameworks/ 
R.framework/Versions/2.7/Resources/library')
trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.76.tar.gz'
Content type 'application/x-gzip' length 803143 bytes (784 Kb)
opened URL
==================================================
downloaded 784 Kb

* Installing *source* package 'rgl' ...
checking for gcc... gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99

<snip>

checking for X...
The downloaded packages are in
	/private/var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-/Rtmp9t3Nlf/ 
downloaded_packages
Warning message:
In install.packages("rgl", type = "source", lib = "/Library/Frameworks/ 
R.framework/Versions/2.7/Resources/library") :
   installation of package 'rgl' had non-zero exit status
no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package 'rgl'
** Removing '/Library/Frameworks/R.framework/Versions/2.7/Resources/ 
library/rgl'

So it's still failing to see X11.
On Feb 12, 2008, at 6:24 AM, Prof Brian Ripley wrote:

            
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/
#
Michael,

please read R for Mac OS X FAQ (even more so if you are using R-devel)  
- apparently you are using Leopard, so you have to fix X11 first - see  
also
http://r.research.att.com/building.html
(which is mentioned in the FAQ)

Cheers,
Simon

BTW: You said R crashed on you - can you, please, send us the crash  
report? I can only repeat that posting "R crashed" without any report  
is the most rude thing one can do - it is the same as saying "I know  
how I could help others but I refuse to tell anyone". So pretty please  
with a cherry on top ... report crashes!
On Feb 12, 2008, at 6:37 AM, Michael Kubovy wrote:

            
#
Hi Simon,

Thanks. So in Terminal:

MK-MacPro:lib mk$ cd /usr/X11/lib
MK-MacPro:lib mk$ sudo bash
Password:
bash-3.2# mv libGL.dylib libGL.dylib.apple
bash-3.2# ln -s /System/Library/Frameworks/OpenGL.framework/Libraries/ 
libGL.dylib .

Then in R:
 > install.packages('rgl', type = 'source', lib = '/Library/Frameworks/ 
R.framework/Versions/2.7/Resources/library')
trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.76.tar.gz'
Content type 'application/x-gzip' length 803143 bytes (784 Kb)

<snip>

The downloaded packages are in
	/private/var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-/RtmpuLU92a/ 
downloaded_packages
Warning message:
In install.packages("rgl", type = "source", lib = "/Library/Frameworks/ 
R.framework/Versions/2.7/Resources/library") :
   installation of package 'rgl' had non-zero exit status
no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package 'rgl'
** Removing '/Library/Frameworks/R.framework/Versions/2.7/Resources/ 
library/rgl'
On Feb 12, 2008, at 8:28 AM, Simon Urbanek wrote:

            
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/
#
Michael,

are you sure you have put /usr/X11/bin on your PATH? That is probably  
the most common mistake. The safest bet to see what went wrong is to  
look at the configure output.

Cheers,
Simon
On Feb 12, 2008, at 10:20 AM, Michael Kubovy wrote:

            
#
Thanks Simon,

Where can I find the the configure output?

As to whether I have put /usr/X11/bin on my PATH, I edited the two  
files that --- according to my limited knowledge of Unix --- might be  
relevant. The problem persists.

****************
cat .cshrc:
****************

set path=($path /opt/local/bin /Applications/~LocalApps/sound/Cog)
if (! $?DISPLAY && ! $?SSH_CONNECTION ) then
   setenv DISPLAY `ps -ax | grep X11.app |  grep -v Xauthority  | grep  
-v grep | awk '{print $7}' `.0
     if ( $DISPLAY == '.0' )then
        setenv DISPLAY :0.0
     endif
   echo "lias SetTitle 'settitle \[tcsh\]\ \ \ $HOST:r:r\:\:$cwd '
alias cd 'cd \!*;SetTab;SetTitle'
SetTitle;SetTab

set prompt="tcsh-% "

ISPLAY has been set to $DISPLAY"
endif

test -r /sw/bin/init.csh && source /sw/bin/init.csh

set path=(/Library/Frameworks/Python.framework/Versions/Current/bin  
$path)

if ( -d /sw/bin ) then
	source /sw/bin/init.csh
endif

if (! $?DISPLAY && ! $?SSH_CONNECTION ) then
   setenv DISPLAY `ps -wwx | grep -F X11.app | awk '{print $NF}' |  
grep -e ":[0-9]"`.0
     if ( $DISPLAY == '.0' )then
        setenv DISPLAY :0.0
     endif
   echo "DISPLAY has been set to $DISPLAY"
endif

alias settitle 'echo -n "

set path=(/Library/Frameworks/Python.framework/Versions/Current/bin  
$path $PATH /usr/sbin /usr/local/bin /usr/X11/bin)

****************
cat .bashrc:
****************

if [[ -z $DISPLAY && -z $SSH_CONNECTION ]]; then
     disp_no=($( ps -ax | grep X11.app | grep -v Xauthority | grep -v  
grep | awk '{print $7}' ))
     if [[ -n $disp_no ]];then
         export DISPLAY=${disp_no}.0
     else
         export DISPLAY=:0.0
     fi
     echo "DISPLAY has been set to $DISPLAY"
fi
LC_CTYPE=en_US.UTF-8
export LC_CTYPE
export PATH="/usr/X11/bin:/usr/local/bin:/opt/local/bin:/opt/local/ 
sbin:$PATH"
On Feb 12, 2008, at 10:46 AM, Simon Urbanek wrote:

            
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/
#
Michael,
On Feb 12, 2008, at 12:04 PM, Michael Kubovy wrote:

            
It is printed as you run R CMD INSTALL. If you install from a  
directory instead of a tar ball, you also get the config.log file if  
the rgl directory (hence it is a good idea to install that way if you  
encounter any problems).
Those are (usually) quite irrelevant - you have to set PATH simply  
when you are installing the package - this is independent of the  
system setting.

The default shell on OS X so assuming you didn't change that, you  
simply run
export PATH=/usr/X11/bin:$PATH
tar fxz rgl_0.76.tar.gz
R CMD INSTALL rgl

Look at rgl/config.log for details.

Cheers,
Simon
1 day later
#
Hi Simon,

Here is the rgl/config.log.
***********************************
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = MK-MacPro.local
uname -m = i386
uname -r = 9.1.0
uname -s = Darwin
uname -v = Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007;  
root:xnu-1228.0.2~1/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = Mach kernel version:
	 Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007;  
root:xnu-1228.0.2~1/RELEASE_I386
Kernel configured for up to 4 processors.
4 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 4.00 gigabytes
Default processor set: 120 tasks, 589 threads, 4 processors
Load average: 1.09, Mach factor: 2.90
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/X11/bin
PATH: /usr/X11/bin
PATH: /usr/X11/bin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/local/teTeX/ bin/powerpc-apple-darwin-current
PATH: /usr/X11/bin
PATH: /usr/local/bin
PATH: /usr/texbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1391: checking for gcc
configure:1417: result: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99
configure:1661: checking for C compiler version
configure:1664: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 --version </dev/ 
null >&5
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

configure:1667: $? = 0
configure:1669: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- 
host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
configure:1672: $? = 0
configure:1674: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -V </dev/null >&5
gcc-4.0: argument to `-V' is missing
configure:1677: $? = 1
configure:1700: checking for C compiler default output file name
configure:1703: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -g -O2 - 
march=nocona   conftest.c  >&5
configure:1706: $? = 0
configure:1752: result: a.out
configure:1757: checking whether the C compiler works
configure:1763: ./a.out
configure:1766: $? = 0
configure:1783: result: yes
configure:1790: checking whether we are cross compiling
configure:1792: result: no
configure:1795: checking for suffix of executables
configure:1797: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -o conftest -g - 
O2 -march=nocona   conftest.c  >&5
configure:1800: $? = 0
configure:1825: result:
configure:1831: checking for suffix of object files
configure:1852: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -c -g -O2 - 
march=nocona  conftest.c >&5
configure:1855: $? = 0
configure:1877: result: o
configure:1881: checking whether we are using the GNU C compiler
configure:1905: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -c -g -O2 - 
march=nocona  conftest.c >&5
configure:1911: $? = 0
configure:1915: test -z
			 || test ! -s conftest.err
configure:1918: $? = 0
configure:1921: test -s conftest.o
configure:1924: $? = 0
configure:1937: result: yes
configure:1943: checking whether gcc -arch i386 -isysroot /Developer/ 
SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 accepts -g
configure:1964: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -c -g  conftest.c  
 >&5
configure:1970: $? = 0
configure:1974: test -z
			 || test ! -s conftest.err
configure:1977: $? = 0
configure:1980: test -s conftest.o
configure:1983: $? = 0
configure:1994: result: yes
configure:2011: checking for gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 option to accept  
ANSI C
configure:2081: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99  -c -g -O2 - 
march=nocona  conftest.c >&5
configure:2087: $? = 0
configure:2091: test -z
			 || test ! -s conftest.err
configure:2094: $? = 0
configure:2097: test -s conftest.o
configure:2100: $? = 0
configure:2118: result: none needed
configure:2136: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -c -g -O2 - 
march=nocona  conftest.c >&5
conftest.c:2: error: syntax error before 'me'
configure:2142: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2280: checking how to run the C preprocessor
configure:2315: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -E  conftest.c
configure:2321: $? = 0
configure:2353: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2359: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2398: result: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -E
configure:2422: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -E  conftest.c
configure:2428: $? = 0
configure:2460: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2466: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2555: checking for gcc
configure:2581: result: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99
configure:2825: checking for C compiler version
configure:2828: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 --version </dev/ 
null >&5
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There  
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

configure:2831: $? = 0
configure:2833: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- 
host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
configure:2836: $? = 0
configure:2838: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -V </dev/null >&5
gcc-4.0: argument to `-V' is missing
configure:2841: $? = 1
configure:2844: checking whether we are using the GNU C compiler
configure:2900: result: yes
configure:2906: checking whether gcc -arch i386 -isysroot /Developer/ 
SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 accepts -g
configure:2957: result: yes
configure:2974: checking for gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 option to accept  
ANSI C
configure:3081: result: none needed
configure:3099: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -c -g -O2 - 
march=nocona  conftest.c >&5
conftest.c:2: error: syntax error before 'me'
configure:3105: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3274: checking for libpng-config
configure:3290: found /usr/X11/bin/libpng-config
configure:3301: result: yes
configure:3311: using libpng-config
configure:3315: using libpng dynamic linkage
configure:3842: checking for X
configure:4072: result: libraries /usr/X11/lib, headers /usr/X11/include
configure:4293: checking for glEnd in -lGL
configure:4323: gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -o conftest -g - 
O2 -march=nocona -I/System/Library/Frameworks/OpenGL.framework/ 
Headers  -DHAVE_PNG_H -I/usr/X11/include -I/usr/X11/include -DDarwin - 
DNO_GL_PREFIX -I/usr/X11R6/include  conftest.c -lGL  -framework  
OpenGL  -L/usr/X11/lib -Wl,-rpath,/usr/X11/lib -lpng12 -lz -lm -L/usr/ 
X11/lib -lX11 >&5
ld: -rpath can only be used when targeting Mac OS X 10.5 or later

collect2: ld returned 1 exit status
configure:4329: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char glEnd ();
| int
| main ()
| {
| glEnd ();
|   ;
|   return 0;
| }
configure:4355: result: no
configure:4368: error: missing required library GL

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_have_x='have_x=yes 		ac_x_includes=/usr/X11/include  
ac_x_libraries=/usr/X11/lib'
ac_cv_lib_GL___glEnd=no
ac_cv_objext=o
ac_cv_prog_CPP='gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99 -E'
ac_cv_prog_HAVE_LIBPNG_CONFIG=yes
ac_cv_prog_ac_ct_CC='gcc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -mmacosx-version-min=10.4 -std=gnu99'
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=

## ----------------- ##
## Output variables. ##
## ----------------- ##

AGLCPPFLAGS=' -DHAVE_PNG_H -I/usr/X11/include -DRGL_USE_CARBON -I/ 
System/Library/Frameworks/AGL.framework/Headers'
AGLLIBS=' -L/usr/X11/lib -Wl,-rpath,/usr/X11/lib -lpng12 -lz -lm - 
framework AGL'
BUILD_AGL_TRUE=''
CC='gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx- 
version-min=10.4 -std=gnu99'
CFLAGS='-g -O2 -march=nocona'
CPP='gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx- 
version-min=10.4 -std=gnu99 -E'
CPPFLAGS='-I/System/Library/Frameworks/OpenGL.framework/Headers  - 
DHAVE_PNG_H -I/usr/X11/include -I/usr/X11/include -DDarwin - 
DNO_GL_PREFIX -I/usr/X11R6/include'
CXXFLAGS='-g -O2 -march=nocona'
DEFS=''
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
HAVE_LIBPNG_CONFIG='yes'
LDFLAGS=''
LIBOBJS=''
LIBS='-framework OpenGL  -L/usr/X11/lib -Wl,-rpath,/usr/X11/lib - 
lpng12 -lz -lm -L/usr/X11/lib -lX11'
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC='gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - 
mmacosx-version-min=10.4 -std=gnu99'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
***********************************
On Feb 12, 2008, at 12:39 PM, Simon Urbanek wrote:

            
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/
#
Michael, please read yesterday's rgl thread on the SIG-Mac mailing  
list - it explains both the cause and fixes.
Thanks,
Simon
On Feb 13, 2008, at 8:41 PM, Michael Kubovy wrote:

            
#
Thanks, it worked.
On Feb 14, 2008, at 7:48 AM, Simon Urbanek wrote:

            
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/