[GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

Elvis Dowson elvis.dowson at mac.com
Sat Sep 20 13:08:34 EDT 2008


Hi,
          I just downloaded the latest svn snapshot of grass-6.4.0,  
installed all the required libraries
proj-4.6.0
gdal-1.5.2
libjpeg-6b
libtiff-3.8.2
libpng-1.2.31
fftw-2.1.5

and fixed the X11 OpenGL problem on Mac OS X 10.5.4 as outlined below:

X11 is broken on Leopard, it is impossible to compile programs against  
it (more precisely whenever libGL is touched - directly or  
indirectly). The easiest way to fix it is as follows:

cd /usr/X11/lib
sudo bash
# enter your password
mv libGL.dylib libGL.dylib.apple
ln -s /System/Library/Frameworks/OpenGL.framework/Libraries/ 
libGL.dylib .

This fixed the problem of ./configure being able to locate the OpenGL  
libraries.

However, when I try to make the program, I get more errors related to  
OpenGL.

Here is the exact error message

./configure --with-cxx

Here is result of the configure command

GRASS is now configured for:  i386-apple-darwin9.4.0

   Source directory:            /Users/elvis/Tool/grass-6.4.0
   Build directory:             /Users/elvis/Tool/grass-6.4.0
   Installation directory:      ${prefix}/grass-6.4.svn
   Startup script in directory: ${exec_prefix}/bin
   C compiler:                  gcc -g -O2
   C++ compiler:                c++ -g -O2
   Building shared libraries:   yes
   64bit support:               no
   OpenGL platform:             X11
   MacOSX application:         no

   NVIZ:                       yes

   BLAS support:               no
   C++ support:                yes
   Cairo support:              no
   DWG support:                no
   FFMPEG support:             no
   FFTW support:               yes
   FreeType support:           no
   GDAL support:               yes
   GLw support:                no
   JPEG support:               yes
   LAPACK support:             no
   Large File support (LFS):   yes
   Motif support:              no
   MySQL support:              no
   NLS support:                no
   ODBC support:               no
   OGR support:                yes
   OpenGL support:             yes
   PNG support:                yes
   PostgreSQL support:         no
   Python support:             no
   Readline support:           no
   SQLite support:             no
   Tcl/Tk support:             yes
   wxWidgets support:          no
   TIFF support:               yes
   X11 support:                yes

After I execute the make command, I get the following error.

Generating HTML manual pages index (help system)...
Generated HTML docs in ../dist.i386-apple-darwin9.4.0/docs/html/ 
index.html
----------------------------------------------------------------------
Following modules are missing the 'description.html' file in src code:
----------------------------------------------------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Sat Sep 20 21:02:07 GST 2008
--
Errors in:
/Users/elvis/Tool/grass-6.4.0/lib/nviz
/Users/elvis/Tool/grass-6.4.0/imagery/i.atcorr
/Users/elvis/Tool/grass-6.4.0/visualization/nviz
/Users/elvis/Tool/grass-6.4.0/visualization/nviz2/cmd
--
In case of errors please change into the directory with error and run  
'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you  
will
also get errors from anything which uses the library.
--
Finished compilation: Sat Sep 20 21:02:49 GST 2008
make: *** [default] Error 1

After I go into the /Users/elvis/Tool/grass-6.4.0/lib/nviz folder and  
execute make, I get the following error related to glX commands.

cc -dynamiclib -compatibility_version 6.4 -current_version 6.4 - 
install_name /usr/local/grass-6.4.svn/lib/libgrass_nviz.dylib -o / 
Users/elvis/Tool/grass-6.4.0/dist.i386-apple-darwin9.4.0/lib/ 
libgrass_nviz.6.4.svn.dylib -L/Users/elvis/Tool/grass-6.4.0/dist.i386- 
apple-darwin9.4.0/lib      OBJ.i386-apple-darwin9.4.0/change_view.o  
OBJ.i386-apple-darwin9.4.0/cplanes_obj.o OBJ.i386-apple-darwin9.4.0/ 
draw.o OBJ.i386-apple-darwin9.4.0/exag.o OBJ.i386-apple-darwin9.4.0/ 
lights.o OBJ.i386-apple-darwin9.4.0/map_obj.o OBJ.i386-apple- 
darwin9.4.0/nviz.o OBJ.i386-apple-darwin9.4.0/position.o OBJ.i386- 
apple-darwin9.4.0/render.o -lgrass_gis -lgrass_datetime -lz     - 
lgrass_bitmap -lgrass_linkm  -lgrass_vect -lgrass_dbmibase -lgrass_gis  
-lgrass_datetime -lz      -lgrass_dbmiclient -lgrass_dbmibase - 
lgrass_gis -lgrass_datetime -lz      -lgrass_gis -lgrass_datetime - 
lz      -lgrass_dgl -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz     - 
lgrass_rtree  -lgrass_gis -lgrass_datetime -lz     -lgrass_linkm - 
lgrass_rtree  -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz     - 
lgrass_rtree  -lgrass_dgl -lgrass_rtree -lgrass_linkm - 
lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime - 
lz      -lgrass_gis -lgrass_datetime -lz      -lgrass_dbmibase - 
lgrass_gis -lgrass_datetime -lz       -L/usr/local/lib -lgdal -L/usr/ 
X11/lib -lGL  -lGLU   -ltiff    -lgrass_sites -lgrass_datetime - 
lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz      - 
lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime - 
lz      -lgrass_gis -lgrass_datetime -lz      -lgrass_gis - 
lgrass_datetime -lz     -lgrass_vect -lgrass_dbmibase -lgrass_gis - 
lgrass_datetime -lz      -lgrass_dbmiclient -lgrass_dbmibase - 
lgrass_gis -lgrass_datetime -lz      -lgrass_gis -lgrass_datetime - 
lz      -lgrass_dgl -lgrass_dig2 -lgrass_gis -lgrass_datetime -lz     - 
lgrass_rtree  -lgrass_gis -lgrass_datetime -lz     -lgrass_linkm - 
lgrass_rtree   -lgrass_g3d -lgrass_gis -lgrass_datetime -lz      - 
lgrass_ogsf -lgrass_bitmap -lgrass_linkm  -lgrass_g3d -lgrass_gis - 
lgrass_datetime -lz      -lgrass_gis -lgrass_datetime -lz     - 
lgrass_sites -lgrass_datetime -lgrass_dbmibase -lgrass_gis - 
lgrass_datetime -lz      -lgrass_dbmiclient -lgrass_dbmibase - 
lgrass_gis -lgrass_datetime -lz      -lgrass_gis -lgrass_datetime - 
lz      -lgrass_gis -lgrass_datetime -lz     -lgrass_vect - 
lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz      - 
lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime - 
lz      -lgrass_gis -lgrass_datetime -lz      -lgrass_dgl -lgrass_dig2  
-lgrass_gis -lgrass_datetime -lz     -lgrass_rtree  -lgrass_gis - 
lgrass_datetime -lz     -lgrass_linkm -lgrass_rtree   -lgrass_vect - 
lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz      - 
lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime - 
lz      -lgrass_gis -lgrass_datetime -lz      -lgrass_dgl -lgrass_dig2  
-lgrass_gis -lgrass_datetime -lz     -lgrass_rtree  -lgrass_gis - 
lgrass_datetime -lz     -lgrass_linkm -lgrass_rtree   && \
	(cd /Users/elvis/Tool/grass-6.4.0/dist.i386-apple-darwin9.4.0/lib; ln  
-f -s libgrass_nviz.6.4.svn.dylib /Users/elvis/Tool/grass-6.4.0/ 
dist.i386-apple-darwin9.4.0/lib/libgrass_nviz.dylib)
Undefined symbols:
   "_glXCreateGLXPixmap", referenced from:
       _Nviz_create_render_window in render.o
   "_XOpenDisplay", referenced from:
       _Nviz_create_render_window in render.o
   "_glXDestroyGLXPixmap", referenced from:
       _Nviz_destroy_render_window in render.o
   "_XFreePixmap", referenced from:
       _Nviz_destroy_render_window in render.o
   "_XCreatePixmap", referenced from:
       _Nviz_create_render_window in render.o
   "_glXGetCurrentContext", referenced from:
       _Nviz_make_current_render_window in render.o
   "_XFree", referenced from:
       _Nviz_create_render_window in render.o
   "_glXMakeCurrent", referenced from:
       _Nviz_make_current_render_window in render.o
   "_glXDestroyContext", referenced from:
       _Nviz_destroy_render_window in render.o
   "_glXChooseVisual", referenced from:
       _Nviz_create_render_window in render.o
   "_glXCreateContext", referenced from:
       _Nviz_create_render_window in render.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [/Users/elvis/Tool/grass-6.4.0/dist.i386-apple-darwin9.4.0/ 
lib/libgrass_nviz.6.4.svn.dylib] Error 1

What should I do? Which is the corresponding X11 OpenGL glX library?

Best regards,

Elvis John Dowson







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080920/d68ae109/attachment-0001.html


More information about the grass-user mailing list