[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
Sun Sep 21 16:34:27 EDT 2008
Hi William,
Here's what I've done. I downloaded the
latest svn snapshot 20080920 and then
did the following.
Here are my environment variables
export CFLAGS="-arch i386 -Os"
export CXXFLAGS="-arch i386 -Os"
export LDFLAGS="-arch i386 -Os"
export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
For the configure command, this time I just did
./configure and it detected most of the libraries correctly and didn't
complain.
After this I typed make and got the following errors:
Errors in:
/Users/elvis/Tool/grass-6.4.0/lib/nviz
/Users/elvis/Tool/grass-6.4.0/visualization/nviz
/Users/elvis/Tool/grass-6.4.0/visualization/nviz2/cmd
When I go into
I get the following errors: /Users/elvis/Tool/grass-6.4.0/lib/nviz
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.5.0/lib/
libgrass_nviz.6.4.svn.dylib -L/Users/elvis/Tool/grass-6.4.0/dist.i386-
apple-darwin9.5.0/lib -arch i386 -Os -arch i386 -Os OBJ.i386-apple-
darwin9.5.0/change_view.o OBJ.i386-apple-darwin9.5.0/cplanes_obj.o
OBJ.i386-apple-darwin9.5.0/draw.o OBJ.i386-apple-darwin9.5.0/exag.o
OBJ.i386-apple-darwin9.5.0/lights.o OBJ.i386-apple-darwin9.5.0/
map_obj.o OBJ.i386-apple-darwin9.5.0/nviz.o OBJ.i386-apple-darwin9.5.0/
position.o OBJ.i386-apple-darwin9.5.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.5.0/lib; ln
-f -s libgrass_nviz.6.4.svn.dylib /Users/elvis/Tool/grass-6.4.0/
dist.i386-apple-darwin9.5.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.5.0/
lib/libgrass_nviz.6.4.svn.dylib] Error 1
What should I do?
Best regards,
Elvis
On Sep 21, 2008, at 11:49 PM, William Kyngesburye wrote:
> On Sep 21, 2008, at 1:32 PM, Elvis Dowson wrote:
>
>> checking for gluBeginCurve in -lGLU... yes
>> checking for glXCreatePbuffer... no
>> configure: error: *** Unable to locate .
>>
>> I have attached the config.log file here. Please note that
>> configure command did not complete successfully. So, I haven't had
>> a chance to run make, so the glXCreatePBuffer() error is in the
>> config.log.
>>
>> Any ideas on how I can resolve this or what might be causing this?
>>
> Strange, this should not cause configure to stop. Maybe your source
> got corrupted somehow, try a fresh checkout from SVN.
>
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "Time is an illusion - lunchtime doubly so."
>
> - Ford Prefect
>
>
More information about the grass-user
mailing list