[GRASS-dev] compilation success

Glynn Clements glynn at gclements.plus.com
Thu Oct 9 05:27:27 EDT 2008


Michael Barton wrote:

> > Does init_grass6_wxnviz (or anything similar) show up in the output
> > from:
> >
> > 	nm -D OBJ.*/_grass6_wxnviz.so
> > ?
> 
> I'm not sure I understand what you're asking. But here is a result.
> 
> cmb-MBP-2:~ cmbarton$ cd /Applications/Grass/GRASS-6.4.app/Contents/ 
> MacOS/etc/wxpython/nviz
> cmb-MBP-2:nviz cmbarton$ nm -D OBJ.*/_grass6_wxnviz.so
> nm: invalid argument -D
> Usage: nm [-agnoprumxjlfAP[s segname sectname] [-] [-t format] [[-arch  
> <arch_flag>] ...] [file ...]

Okay; try it without -D. Also try it on OBJ.*/grass7_wxnviz_wrap.o.

To be honest, I'm not particularly confident of the OSX-specific rule
for building the module:

	ifeq ($(findstring darwin,$(ARCH)),darwin)
		$(CXX) -o $@ $(LDFLAGS) $^ $(EXTRA_LIBS)
	else

I would expect that command to try to build an executable.

What does "file" say about the resulting .so file? Is it comparable to
the result of any of the binary modules which are part of the standard
Python distribution?

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list