[GRASS-user] Building wxgrass vdigit
Craig Leat
craig at pid.co.za
Wed Jan 30 06:23:10 EST 2008
Martin Landa wrote:
> Hi Craig,
>
> 2008/1/28, Craig Leat <Craig at pid.co.za>:
>
>> I am trying out the new wxpython gui from trunk for the first time and I am
>> running into some trouble with building vdigit.
>>
>> My system is an i586 32 bit Ubuntu Gutsy (7.10) box and I have built the 6.3
>> RC3 branch from source. I have followed the instructions in the wxpython
>> README and I can launch the gui, but building vdigit fails. Please see
>> below:
>>
>> GRASS 6.3.0RC3 (msunduzi_lo31):~ > cd $GISBASE/etc/wx/vdigit
>> GRASS 6.3.0RC3 (msunduzi_lo31):/usr/local/grass-6.3.0RC3/etc/wx/vdigit > ls
>> -l
>> total 76
>> -rw-r--r-- 1 craig craig 2583 2008-01-28 12:14 cats.cpp
>> -rw-r--r-- 1 craig craig 677 2008-01-28 12:14 digit.cpp
>> -rw-r--r-- 1 craig craig 1187 2008-01-28 12:14 digit.h
>> -rw-r--r-- 1 craig craig 325 2008-01-28 12:14 digit.i
>> -rw-r--r-- 1 craig craig 685 2008-01-28 12:14 dig_types.i
>> -rw-r--r-- 1 craig craig 26031 2008-01-28 12:14 driver.cpp
>> -rw-r--r-- 1 craig craig 4032 2008-01-28 12:14 driver.h
>> -rw-r--r-- 1 craig craig 307 2008-01-28 12:14 driver.i
>> -rw-r--r-- 1 craig craig 9779 2008-01-28 12:14 line.cpp
>> -rw-r--r-- 1 craig craig 1368 2008-01-28 12:14 Makefile.in
>> -rw-r--r-- 1 craig craig 2229 2008-01-28 12:14 vertex.cpp
>> GRASS 6.3.0RC3 (msunduzi_lo31):/usr/local/grass-6.3.0RC3/etc/wx/vdigit >
>> make
>> make: *** No targets specified and no makefile found. Stop.
>> GRASS 6.3.0RC3 (msunduzi_lo31):/usr/local/grass-6.3.0RC3/etc/wx/vdigit >
>> make ./Makefile.in
>> make: Nothing to be done for `Makefile.in'.
>>
>> Am I correct in just trying to build vdigit or do I need to rebuild all of
>> GRASS?
>>
>
> run ./configure to create Makefile (based on Makefile.in)
>
> Ragards, Martin
>
>
Hi Martin
Thanks for the pointer, but unfortunately I'm still having trouble. I
first tried to add vdigit to an existing installation of RC3 without
success. I then downloaded, configured and built trunk and the build
completed without reporting any errors. I noticed that vdigit was not
built along with the other modules, although a
/grass-trunk/gui/wxpython/vdigit/Makefile was generated. This concerns
me. Can anyone explain what's happening here?
Anyway, I then proceeded to try building vdigit after performing steps
1.1, 1.2 and 7.1 described in the wxpython README. The build failed with
errors as below:
GRASS 6.3.svn
(msunduzi_lo31):/usr/local/src/grass_trunk_28012008/gui/wxpython > cd
$GISBASE/etc/wx/vdigit
GRASS 6.3.svn (msunduzi_lo31):/usr/local/grass-6.3SVN/etc/wx/vdigit > ls -l
total 80
-rw-r--r-- 1 craig craig 2583 2008-01-28 12:14 cats.cpp
-rw-r--r-- 1 craig craig 677 2008-01-28 12:14 digit.cpp
-rw-r--r-- 1 craig craig 1187 2008-01-28 12:14 digit.h
-rw-r--r-- 1 craig craig 325 2008-01-28 12:14 digit.i
-rw-r--r-- 1 craig craig 685 2008-01-28 12:14 dig_types.i
-rw-r--r-- 1 craig craig 26031 2008-01-28 12:14 driver.cpp
-rw-r--r-- 1 craig craig 4032 2008-01-28 12:14 driver.h
-rw-r--r-- 1 craig craig 307 2008-01-28 12:14 driver.i
-rw-r--r-- 1 craig craig 9779 2008-01-28 12:14 line.cpp
-rw-r--r-- 1 craig craig 1417 2008-01-30 09:32 Makefile
-rw-r--r-- 1 craig craig 1368 2008-01-28 12:14 Makefile.in
-rw-r--r-- 1 craig craig 2229 2008-01-28 12:14 vertex.cpp
GRASS 6.3.svn (msunduzi_lo31):/usr/local/grass-6.3SVN/etc/wx/vdigit > make
Makefile:27: warning: overriding commands for target `clean'
../../../include/Make/Rules.make:72: warning: ignoring old commands for
target `clean'
mkdir -p /usr/local/src/grass_trunk_28012008/bin.i686-pc-linux-gnu
mkdir -p
/usr/local/src/grass_trunk_28012008/dist.i686-pc-linux-gnu/include/grass
mkdir -p /usr/local/src/grass_trunk_28012008/dist.i686-pc-linux-gnu/lib
mkdir -p /usr/local/src/grass_trunk_28012008/dist.i686-pc-linux-gnu/bin
mkdir -p /usr/local/src/grass_trunk_28012008/dist.i686-pc-linux-gnu/etc
mkdir -p /usr/local/src/grass_trunk_28012008/dist.i686-pc-linux-gnu/driver
mkdir -p
/usr/local/src/grass_trunk_28012008/dist.i686-pc-linux-gnu/driver/db
mkdir -p /usr/local/src/grass_trunk_28012008/dist.i686-pc-linux-gnu/fonts
cat ./digit.i > grass6_wxvdigit.i
cat ./dig_types.i >> grass6_wxvdigit.i
echo "/* auto-generate swig typedef file */" >> grass6_wxvdigit.i
cat ./driver.h >> grass6_wxvdigit.i
cat ./digit.h >> grass6_wxvdigit.i
swig -c++ -python -shadow grass6_wxvdigit.i
test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
c++ -c -c -fpic
-I/usr/local/src/grass_trunk_28012008/dist.i686-pc-linux-gnu/include
-I/usr/include/python2.5 `wx-config --cxxflags`
grass6_wxvdigit_wrap.cxx -o OBJ.i686-pc-linux-gnu/grass6_wxvdigit_wrap.o
grass6_wxvdigit_wrap.cxx:2577:23: error: grass/gis.h: No such file or
directory
grass6_wxvdigit_wrap.cxx:2578:27: error: grass/gisdefs.h: No such file
or directory
grass6_wxvdigit_wrap.cxx:2579:24: error: grass/Vect.h: No such file or
directory
grass6_wxvdigit_wrap.cxx:2580:36: error: grass/vect/dig_structs.h: No
such file or directory
driver.h:70: error: \u2018BOUND_BOX\u2019 does not name a type
make: *** [OBJ.i686-pc-linux-gnu/grass6_wxvdigit_wrap.o] Error 1
GRASS 6.3.svn (msunduzi_lo31):/usr/local/grass-6.3SVN/etc/wx/vdigit >
I have puzzled over these error messages and it appears to me that the
path to gis.h and friends has been set incorrectly. If this is the
problem, do I fix this by editing the Makefile?
Regards
Craig
More information about the grass-user
mailing list