[GRASS-dev] update on Mac compiling and running

I just updated and recompiled.

vdigit still is linked against the wrong Python and causes a version mismatch error when wxgui starts.

In better news, I got a LOT farther with wxnviz.

…/lib/nviz now compiles successfully

But …/gui/wxpython/nviz bombs with the following error

/Users/cmbarton/grass_dev/grass6_src/gui/wxpython/nviz

/usr/local/bin/swig -c++ -python -shadow -o grass6_wxnviz_wrap.cpp grass6_wxnviz.i
c++ -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -arch i386 -Os -g -fno-common -I/Library/Frameworks/GDAL.framework/Versions/1.5/Headers -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ -I/usr/X11/include -DPACKAGE="“grasslibs”" -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -o OBJ.i386-apple-darwin9.4.0/grass6_wxnviz_wrap.o -c grass6_wxnviz_wrap.cpp
grass6_wxnviz_wrap.cpp:3165: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp:3173: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp:3180: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp:3241: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp:3781: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp: In static member function ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, Seq**)’:
grass6_wxnviz_wrap.cpp:3889: error: expected unqualified-id before ‘?’ token
grass6_wxnviz_wrap.cpp:3165: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp:3173: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp:3180: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp:3241: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp:3781: error: expected unqualified-id before ‘{’ token
grass6_wxnviz_wrap.cpp: In static member function ‘static int swig::traits_asptr_stdseq<Seq, T>::asptr(PyObject*, Seq**)’:
grass6_wxnviz_wrap.cpp:3889: error: expected unqualified-id before ‘?’ token
lipo: can’t figure out the architecture type of: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//cch0tePs.out
make: *** [OBJ.i386-apple-darwin9.4.0/grass6_wxnviz_wrap.o] Error 1
cmb-MBP-2:nviz cmbarton$

Getting closer

I’ll see if the rendering bug is fixed and color management previews work again.

Michael


C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

Hi,

2008/9/9 Michael Barton <michael.barton@asu.edu>:

-I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include
-o OBJ.i386-apple-darwin9.4.0/grass6_wxnviz_wrap.o -c grass6_wxnviz_wrap.cpp
grass6_wxnviz_wrap.cpp:3165: error: expected unqualified-id before '{' token

this was already reported by William, I added

#undef check

to nviz.i

in r33341.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

On Sep 9, 2008, at 2:22 AM, Martin Landa wrote:

Hi,

2008/9/9 Michael Barton <michael.barton@asu.edu>:

-I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include
-o OBJ.i386-apple-darwin9.4.0/grass6_wxnviz_wrap.o -c grass6_wxnviz_wrap.cpp
grass6_wxnviz_wrap.cpp:3165: error: expected unqualified-id before '{' token

this was already reported by William, I added

#undef check

to nviz.i

in r33341.

Note: definitely make sure to clean this time before recompiling, because a grass6_wxnviz_wrap.cpp is generated from nviz.i.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life."

- Marvin

2008/9/9 William Kyngesburye <woklist@kyngchaos.com>:

Note: definitely make sure to clean this time before recompiling, because a
grass6_wxnviz_wrap.cpp is generated from nviz.i.

grass6_wxnviz_wrap.cpp should recompiled automatically, in Makefile
nviz.i is noted as dependency.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

I haven't tried compiling this revision yet. But I've learned to do a make distclean before compiling.

Thanks
Michael

On Sep 9, 2008, at 5:52 AM, William Kyngesburye wrote:

On Sep 9, 2008, at 2:22 AM, Martin Landa wrote:

Hi,

2008/9/9 Michael Barton <michael.barton@asu.edu>:

-I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include
-o OBJ.i386-apple-darwin9.4.0/grass6_wxnviz_wrap.o -c grass6_wxnviz_wrap.cpp
grass6_wxnviz_wrap.cpp:3165: error: expected unqualified-id before '{' token

this was already reported by William, I added

#undef check

to nviz.i

in r33341.

Note: definitely make sure to clean this time before recompiling, because a grass6_wxnviz_wrap.cpp is generated from nviz.i.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life."

- Marvin

William Kyngesburye wrote:

Note: definitely make sure to clean this time before recompiling,
because a grass6_wxnviz_wrap.cpp is generated from nviz.i.

AFAICT, this should be handled by the Makefile:

$(LIB_NAME).i: nviz.i nviz_types.i nviz.h
  cat nviz.i nviz_types.i > $(LIB_NAME).i
  echo "/* auto-generated swig typedef file */" >> $(LIB_NAME).i
  cat nviz.h >> $(LIB_NAME).i

$(LIB_NAME).py $(LIB_NAME)_wrap.cpp: $(LIB_NAME).i
  $(SWIG) -c++ -python -shadow -o $(LIB_NAME)_wrap.cpp $<

Any change to nviz.i should cause grass6_wxnviz.i to be re-made, which
in turn should cause grass6_wxnviz.py and grass6_wxnviz_wrap.cpp to be
re-made.

"make ; touch nviz.i ; make" seems to confirm this (at least for 7.x,
and the only difference between the Makefiles is grass6 -> grass7 in
the definition of LIB_NAME).

More generally, dependency information is usually sufficient within a
single directory. It's when something depends upon files in other
directories (e.g. headers, libraries, *.make files) that the
dependency information isn't sufficient (and that can't easily be
fixed).

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