[GRASS-dev] trying to compile wxPython NVIZ
Michael Barton
michael.barton at asu.edu
Tue Jul 15 23:21:33 EDT 2008
On Jul 15, 2008, at 2:18 AM, Glynn Clements wrote:
>
> Glynn Clements wrote:
>
>>>>> Anyway, off-screen rendering is still unsolved on Mac. To try
>>>>> wxGUI
>>>>> Nviz extension, you should be able to compile nvizlib without
>>>>> rendec.c
>>>>> (which is not needed for wxGUI).
>>>>
>>>> If you have to explicitly disable render.c, that suggests that
>>>> something needs to be conditionalised. The code should at least
>>>> compile on all platforms, even if it doesn't work.
>>>>
>>>> If you can't fix the compilation issues yourself, please post the
>>>> error messages to the list.
>>>
>>> I just don't have access to Mac to find out how to make off-screen
>>> rendering working on this platform...
>>
>> I'm not talking about getting off-screen rendering working; I'm
>> talking about gettting lib/nviz compile. If it fails to compile, you
>> can't even test the parts which should work.
>
> FWIW, I have made some changes to lib/nviz/render.c to get it to
> compile on Windows, which may also help on OSX (there were some
> X-specific portions which weren't conditionalised).
>
> It doesn't work on Windows yet (G_malloc() fails), but I don't have a
> native version of GDB installed, so I haven't looked into it any
> further.
Glynn and Martin,
I tried this out on my Mac. It still doesn't compile, but it gets
different errors this time.
Michael
cmb-MBP-2:grass7_src cmbarton$ cd ./lib/nviz
cmb-MBP-2:nviz cmbarton$ make
cc -dynamiclib -compatibility_version 7.0 -current_version 7.0 -
install_name /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib/
libgrass_nviz.dylib -o /Users/cmbarton/grass_dev/grass7_src/dist.i386-
apple-darwin9.4.0/lib/libgrass_nviz.7.0.svn.dylib -L/Users/cmbarton/
grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/lib -arch i386 -Os -
arch i386 -Os 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/Library/Frameworks/
GDAL.framework/Versions/1.5/unix/lib -lgdal -L/usr/X11/lib -L/usr/
X11R6/lib -lGL -L/usr/X11R6/lib -lGLU -L/Library/Frameworks/
UnixImageIO.framework/unix/lib -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/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
lib; ln -f -s libgrass_nviz.7.0.svn.dylib /Users/cmbarton/grass_dev/
grass7_src/dist.i386-apple-darwin9.4.0/lib/libgrass_nviz.dylib)
Undefined symbols:
"_XOpenDisplay", referenced from:
_Nviz_create_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
"_XFree", referenced from:
_Nviz_create_render_window in render.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-
darwin9.4.0/lib/libgrass_nviz.7.0.svn.dylib] Error 1
More information about the grass-dev
mailing list