[GRASS-user] Compile grass65 svn: wx error
achim
ak7 at jupiter.uni-freiburg.de
Thu May 28 09:33:55 EDT 2009
Hi,
I try to compile the grass 65 svn on my suse 11.1 64bit. Everything
works fine except (64-bit-support and) the wxPython-gui.
make command gives following error:
###########################################
GRASS GIS compilation log
-------------------------
Started compilation: Do 28. Mai 15:13:08 CEST 2009
--
Errors in:
/usr/local/src/cvs/grass65/grass6_devel/gui/wxpython/nviz
--
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: Do 28. Mai 15:13:36 CEST 2009
make: *** [default] Fehler 1
###########################################
running make in /usr/local/src/cvs/grass65/grass6_devel/gui/wxpython/nviz
gives:
#########################################
python setup.py build_ext --swig=/usr/bin/swig --swig-opts=-c++
--build-lib=OBJ.x86_64-unknown-linux-gnu
--build-temp=OBJ.x86_64-unknown-linux-gnu
running build_ext
building '_grass6_wxnviz' extension
swigging grass6_wxnviz.i to grass6_wxnviz_wrap.cpp
/usr/bin/swig -python -c++ -o grass6_wxnviz_wrap.cpp grass6_wxnviz.i
gcc -pthread -fno-strict-aliasing -DNDEBUG -fmessage-length=0 -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -fwrapv -fPIC -DPACKAGE="grasslibs"
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-I/usr/local/src/cvs/grass65/grass6_devel/dist.x86_64-unknown-linux-gnu/include
-I/usr/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.8
-I/usr/include/wx-2.8 -I/usr/include/python2.6 -c change_view.cpp -o
OBJ.x86_64-unknown-linux-gnu/change_view.o
In file included from /usr/include/wx-2.8/wx/wx.h:18,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/list.h:1178: error: expected ‘,’ or ‘...’ before
numeric constant
/usr/include/wx-2.8/wx/list.h:1262: error: expected ‘,’ or ‘...’ before
numeric constant
In file included from /usr/include/wx-2.8/wx/wx.h:32,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/module.h:21: error: expected ‘,’ or ‘...’ before
numeric constant
In file included from /usr/include/wx-2.8/wx/wx.h:36,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/window.h:111: error: expected ‘,’ or ‘...’ before
numeric constant
In file included from /usr/include/wx-2.8/wx/wx.h:55,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/menu.h:36: error: expected ‘,’ or ‘...’ before
numeric constant
/usr/include/wx-2.8/wx/menu.h:37: error: expected ‘,’ or ‘...’ before
numeric constant
In file included from /usr/include/wx-2.8/wx/wx.h:66,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/dataobj.h:262: error: expected ‘,’ or ‘...’
before numeric constant
In file included from /usr/include/wx-2.8/wx/radiobox.h:166,
from /usr/include/wx-2.8/wx/wx.h:79,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/gtk/radiobox.h:19: error: expected ‘,’ or ‘...’
before numeric constant
In file included from /usr/include/wx-2.8/wx/toolbar.h:67,
from /usr/include/wx-2.8/wx/wx.h:86,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/tbarbase.h:231: error: expected ‘,’ or ‘...’
before numeric constant
In file included from /usr/include/wx-2.8/wx/wx.h:89,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/sizer.h:414: error: expected ‘,’ or ‘...’ before
numeric constant
In file included from /usr/include/wx-2.8/wx/wx.h:91,
from nviz.h:23,
from change_view.cpp:15:
/usr/include/wx-2.8/wx/statusbr.h:25: error: expected ‘,’ or ‘...’
before numeric constant
error: command 'gcc' failed with exit status 1
make: *** [OBJ.x86_64-unknown-linux-gnu/_grass6_wxnviz.so] Fehler 1
############################################
I dont understand the error. Thanks for hints!
Achim
PS: 64-bit support needs fftw2 compiled with -fPIC
#this applies to FFTW2, not GRASS:
cd fftw-2.1.5/
CFLAGS="-fPIC" ./configure
make
make install
what I did. My configuration looks like this:
CFLAGS="-O3 -msse3 -march=core2 -Wall" LDFLAGS="-s" ./configure \
--with-64bit \
--with-libs=/usr/lib64 \
--with-fftw \
--with-cxx \
--with-sqlite \
--with-postgres \
--with-postgres-libs=/usr/include/pgsql/libpq \
--with-postgres-includes=/usr/include/pgsql \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2 \
--with-motif \
--with-proj-share=/usr/share/proj \
--with-geos \
--with-python \
--with-wxwidgets=/usr/bin/wx-config
More information about the grass-user
mailing list