Skip to content
Prev 8456 / 15075 Next

rgl on 10.7: has anyone tried it?

Dear Simon,

thanks a lot for helping. Here is what I could figure out:
(1) the installation of macports created the following line in .profile:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
(2) I'm sure I had other stuff in .profile -- apparently they got overwritten by macports (seems nasty)
(3) (1) caused the opt-paths to appear in PATH
(4) I changed it to 
export PATH=$PATH:/opt/local/bin:/opt/local/sbin
(5) then I executed:
R CMD INSTALL rgl

This gave:

localhost:Downloads mhofert$ R CMD INSTALL rgl
* installing to library ?/Library/Frameworks/R.framework/library?
* installing *source* package ?rgl? ...
checking for gcc... gcc -arch x86_64 -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -arch x86_64 -std=gnu99 accepts -g... yes
checking for gcc -arch x86_64 -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -arch x86_64 -std=gnu99 -E
checking for gcc... (cached) gcc -arch x86_64 -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -arch x86_64 -std=gnu99 accepts -g... (cached) yes
checking for gcc -arch x86_64 -std=gnu99 option to accept ISO C89... (cached) none needed
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... libraries , headers 
checking for glEnd in -lGL... yes
checking for gluProject in -lGLU... yes
checking for freetype-config... yes
configure: using Freetype and FTGL
configure: creating ./config.status
config.status: creating src/Makevars
** libs
*** arch - x86_64
g++ -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include -Iext -I/usr/local/include   -g -O2 -fPIC  -g -O2 -c BBoxDeco.cpp -o BBoxDeco.o
In file included from RenderContext.hpp:9,
                 from BBoxDeco.hpp:14,
                 from BBoxDeco.cpp:1:
opengl.hpp:11:20: error: AGL/gl.h: No such file or directory
opengl.hpp:12:21: error: AGL/glu.h: No such file or directory
make: *** [BBoxDeco.o] Error 1
ERROR: compilation failed for package ?rgl?
* removing ?/Library/Frameworks/R.framework/library/rgl?
localhost:Downloads mhofert$ 

Do you know how to continue?

Cheers,

Marius

Here the 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.64.  Invocation command line was

  $ ./configure 

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

hostname = localhost
uname -m = x86_64
uname -r = 11.0.1
uname -s = Darwin
uname -v = Darwin Kernel Version 11.0.1: Thu Jul 28 02:01:39 PDT 2011; root:xnu-1699.23.4~1/RELEASE_X86_64

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

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 11.0.1: Thu Jul 28 02:01:39 PDT 2011; root:xnu-1699.23.4~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 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: 85 tasks, 363 threads, 4 processors
Load average: 0.66, Mach factor: 3.32
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
PATH: /usr/texbin
PATH: /opt/local/bin
PATH: /opt/local/sbin


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

configure:2106: checking for gcc
configure:2133: result: gcc -arch x86_64 -std=gnu99
configure:2362: checking for C compiler version
configure:2371: gcc -arch x86_64 -std=gnu99 --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 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:2382: $? = 0
configure:2371: gcc -arch x86_64 -std=gnu99 -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
configure:2382: $? = 0
configure:2371: gcc -arch x86_64 -std=gnu99 -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2382: $? = 1
configure:2371: gcc -arch x86_64 -std=gnu99 -qversion >&5
i686-apple-darwin11-llvm-gcc-4.2: no input files
configure:2382: $? = 1
configure:2404: checking for C compiler default output file name
configure:2426: gcc -arch x86_64 -std=gnu99 -g -O2   conftest.c  >&5
configure:2430: $? = 0
configure:2467: result: a.out
configure:2483: checking whether the C compiler works
configure:2492: ./a.out
configure:2496: $? = 0
configure:2511: result: yes
configure:2518: checking whether we are cross compiling
configure:2520: result: no
configure:2523: checking for suffix of executables
configure:2530: gcc -arch x86_64 -std=gnu99 -o conftest -g -O2   conftest.c  >&5
configure:2534: $? = 0
configure:2556: result: 
configure:2562: checking for suffix of object files
configure:2584: gcc -arch x86_64 -std=gnu99 -c -g -O2  conftest.c >&5
configure:2588: $? = 0
configure:2609: result: o
configure:2613: checking whether we are using the GNU C compiler
configure:2632: gcc -arch x86_64 -std=gnu99 -c -g -O2  conftest.c >&5
configure:2632: $? = 0
configure:2641: result: yes
configure:2650: checking whether gcc -arch x86_64 -std=gnu99 accepts -g
configure:2670: gcc -arch x86_64 -std=gnu99 -c -g  conftest.c >&5
configure:2670: $? = 0
configure:2711: result: yes
configure:2728: checking for gcc -arch x86_64 -std=gnu99 option to accept ISO C89
configure:2792: gcc -arch x86_64 -std=gnu99  -c -g -O2  conftest.c >&5
configure:2792: $? = 0
configure:2805: result: none needed
configure:2830: checking how to run the C preprocessor
configure:2900: result: gcc -arch x86_64 -std=gnu99 -E
configure:2920: gcc -arch x86_64 -std=gnu99 -E  conftest.c
configure:2920: $? = 0
configure:2934: gcc -arch x86_64 -std=gnu99 -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2934: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3010: checking for gcc
configure:3037: result: gcc -arch x86_64 -std=gnu99
configure:3266: checking for C compiler version
configure:3275: gcc -arch x86_64 -std=gnu99 --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 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:3286: $? = 0
configure:3275: gcc -arch x86_64 -std=gnu99 -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
configure:3286: $? = 0
configure:3275: gcc -arch x86_64 -std=gnu99 -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:3286: $? = 1
configure:3275: gcc -arch x86_64 -std=gnu99 -qversion >&5
i686-apple-darwin11-llvm-gcc-4.2: no input files
configure:3286: $? = 1
configure:3290: checking whether we are using the GNU C compiler
configure:3318: result: yes
configure:3327: checking whether gcc -arch x86_64 -std=gnu99 accepts -g
configure:3388: result: yes
configure:3405: checking for gcc -arch x86_64 -std=gnu99 option to accept ISO C89
configure:3482: result: none needed
configure:3545: checking for libpng-config
configure:3561: found /usr/X11/bin/libpng-config
configure:3573: result: yes
configure:3584: using libpng-config
configure:3588: using libpng dynamic linkage
configure:3955: checking for X
configure:4063: gcc -arch x86_64 -std=gnu99 -E  -DHAVE_PNG_H -I/usr/X11/include/libpng15 conftest.c
configure:4063: $? = 0
configure:4094: gcc -arch x86_64 -std=gnu99 -o conftest -g -O2  -DHAVE_PNG_H -I/usr/X11/include/libpng15  conftest.c -lX11  -L/usr/X11/lib -lpng15 >&5
configure:4094: $? = 0
configure:4144: result: libraries , headers 
configure:4229: checking for glEnd in -lGL
configure:4254: gcc -arch x86_64 -std=gnu99 -o conftest -g -O2 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include  conftest.c -lGL  -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib  -L/usr/X11/lib -lpng15 -lX11 >&5
configure:4254: $? = 0
configure:4264: result: yes
configure:4291: checking for gluProject in -lGLU
configure:4316: gcc -arch x86_64 -std=gnu99 -o conftest -g -O2 -I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include  conftest.c -lGLU  -lGL -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib  -L/usr/X11/lib -lpng15 -lX11 >&5
configure:4316: $? = 0
configure:4326: result: yes
configure:4357: checking for freetype-config
configure:4373: found /usr/X11/bin/freetype-config
configure:4385: result: yes
configure:4398: using Freetype and FTGL
configure:4555: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on localhost

config.status:730: creating src/Makevars

## ---------------- ##
## 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_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_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_have_x='have_x=yes	ac_x_includes='\'''\''	ac_x_libraries='\'''\'''
ac_cv_lib_GLU___gluProject=yes
ac_cv_lib_GL___glEnd=yes
ac_cv_objext=o
ac_cv_prog_CPP='gcc -arch x86_64 -std=gnu99 -E'
ac_cv_prog_HAVE_FREETYPE_CONFIG=yes
ac_cv_prog_HAVE_LIBPNG_CONFIG=yes
ac_cv_prog_ac_ct_CC='gcc -arch x86_64 -std=gnu99'
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes

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

AGLCPPFLAGS=' -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include'
AGLLIBS=' -L/usr/X11/lib -lfreetype -lz'
BUILD_AGL_TRUE='#'
CC='gcc -arch x86_64 -std=gnu99'
CFLAGS='-g -O2'
CPP='gcc -arch x86_64 -std=gnu99 -E'
CPPFLAGS='-I/System/Library/Frameworks/OpenGL.framework/Headers  -DHAVE_PNG_H -I/usr/X11/include/libpng15 -DDarwin -DNO_GL_PREFIX -I/usr/X11R6/include -DHAVE_FREETYPE -Iext/ftgl -I/usr/X11/include/freetype2 -I/usr/X11/include'
CXXFLAGS='-g -O2'
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
HAVE_FREETYPE_CONFIG='yes'
HAVE_LIBPNG_CONFIG='yes'
LDFLAGS=''
LIBOBJS=''
LIBS='-lGLU -lGL -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib  -L/usr/X11/lib -lpng15 -lX11 -L/usr/X11/lib -lfreetype -lz'
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
XMKMF=''
ac_ct_CC='gcc -arch x86_64 -std=gnu99'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define HAVE_LIBGL 1
#define HAVE_LIBGLU 1

configure: exit 0
On 2011-10-12, at 00:54 , Simon Urbanek wrote:

            
ETH Zurich
Dr. Marius Hofert
RiskLab, Department of Mathematics
HG E 65.2
R?mistrasse 101
8092 Zurich
Switzerland

Phone +41 44 632 2423
marius.hofert at math.ethz.ch
http://www.math.ethz.ch/~hofertj