[GRASS-user] Error with NVIZ Compiling 6.4SVN in Linux

Hey All

I have tried to compile 6.4SVN version in a Linux but I got errors in:
utils_wrap.c:124:20: error: Python.h: No such file or directory

/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/lib/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/gui/wxpython/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/visualization/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/visualization/nviz2/cmd
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/swig/python

And in my WxGUI NVIZ item is on gray and is not available. It says that it required tcltk but tcltk is available (TCLTK gui is working).

My SWIG version is 1.3.36 and Python I have 2.6.4 and 2.5.4 installed.

Question: What might be wrong with this? Some package that is not compatible or what?

Thanks

Best regards
Antonio Rocha

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4797 (20100122) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

On Fri, 22 Jan 2010, Ant?nio Rocha wrote:

utils_wrap.c:124:20: error: Python.h: No such file or directory

   You are probably running a distribution that packages header files
separate from executables. See if there's a python-dev package for your
distribution. If so, install it.

Rich

Greetings
Regarding Rich message, ,y system is Ubuntu9.10 and I already installed:
- python2.5-dev
- python2.6-dev
So I have those headers in my system.

I browsed in my file systems and I found 2 python.h in the following folders:
- /usr/include/python2.5
- /usr/include/python2.6

So my question is, what can I do to point the configuration/installation to this files in order to re-compile GRASS SVN and have NVIZ working?

Thanks

Antonio ROcha

Rich Shepard says:

   You are probably running a distribution that packages header files
separate from executables. See if there's a python-dev package for your
distribution. If so, install it.

Rich

Hey All

I have tried to compile 6.4SVN version in a Linux but I got errors in:
utils_wrap.c:124:20: error: Python.h: No such file or directory

/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/lib/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/gui/wxpython/nviz

/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/visualization/nviz

/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/visualization/nviz2/cmd

/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16/swig/python

And in my WxGUI NVIZ item is on gray and is not available. It says that it required tcltk but tcltk is available (TCLTK gui is working).

My SWIG version is 1.3.36 and Python I have 2.6.4 and 2.5.4 installed.

Question: What might be wrong with this? Some package that is not compatible or what?

Thanks

Best regards
Antonio Rocha

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4802 (20100124) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

2010/1/25 António Rocha <antonio.rocha@deimos.com.pt>:

Greetings
Regarding Rich message, ,y system is Ubuntu9.10 and I already installed:
- python2.5-dev
- python2.6-dev
So I have those headers in my system.

I browsed in my file systems and I found 2 python.h in the following
folders:
- /usr/include/python2.5
- /usr/include/python2.6

So my question is, what can I do to point the configuration/installation to
this files in order to re-compile GRASS SVN and have NVIZ working?

Try (untested)
--with-python=/usr/bin/python2.6-config
in configure.

Markus

Ok I have added the --with-python=/usr/bin/python2.6-config
and I still got errors in NVIZ compilation and it's not available
GRASS GIS compilation log
-------------------------
Started compilation: Mon Jan 25 14:54:21 WET 2010
--
Errors in:
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/lib/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/gui/wxpython/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/visualization/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/visualization/nviz2/cmd

Is it possible to compile only NVIZ? Beucase it's still not working...

Thanks

Best regards,
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4804 (20100125) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

2010/1/25 António Rocha <antonio.rocha@deimos.com.pt>:

Ok I have added the --with-python=/usr/bin/python2.6-config
and I still got errors in NVIZ compilation and it's not available
GRASS GIS compilation log
-------------------------
Started compilation: Mon Jan 25 14:54:21 WET 2010
--
Errors in:
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/lib/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/gui/wxpython/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/visualization/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/visualization/nviz2/cmd

The last line of the log indicates what to do :slight_smile:

...
"--
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.
"

If that's unclear please suggest a better wording...

Markus

Uopps. I thought I could only do that before "make install" :slight_smile:

Even so, when I run "make" at

/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/lib/nviz I got the following error:
anrr@vpc-anrr:~/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/lib/nviz$ makegcc -I/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/dist.i686-pc-linux-gnu/include -g -O2 -fPIC -DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -DPACKAGE=\""grasslibs"\" -I/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/change_view.o -c change_view.c
In file included from change_view.c:20:
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/dist.i686-pc-linux-gnu/include/grass/nviz.h:21:69: error: X11/Xmu/StdCmap.h: No such file or directory
make: *** [OBJ.i686-pc-linux-gnu/change_view.o] Error 1

and when I run "make" at /home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/gui/wxpython/nviz I get:
python setup.py build_ext --swig=/usr/bin/swig --swig-opts=-c++ --build-lib=OBJ.i686-pc-linux-gnu --build-temp=OBJ.i686-pc-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 -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPACKAGE="grasslibs" -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/dist.i686-pc-linux-gnu/include -I/usr/include/gdal -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -I/usr/include/python2.6 -c change_view.cpp -o OBJ.i686-pc-linux-gnu/change_view.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from nviz.h:11,
                 from change_view.cpp:15:
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/dist.i686-pc-linux-gnu/include/grass/nviz.h:21:69: error: X11/Xmu/StdCmap.h: No such file or directory
In file included from /usr/include/python2.6/Python.h:8,
                 from nviz.h:28,
                 from change_view.cpp:15:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/assert.h:37,
                 from /usr/include/wx-2.8/wx/debug.h:18,
                 from /usr/include/wx-2.8/wx/defs.h:521,
                 from /usr/include/wx-2.8/wx/wxprec.h:13,
                 from nviz.h:5,
                 from change_view.cpp:15:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from nviz.h:28,
                 from change_view.cpp:15:
/usr/include/python2.6/pyconfig.h:1037:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/assert.h:37,
                 from /usr/include/wx-2.8/wx/debug.h:18,
                 from /usr/include/wx-2.8/wx/defs.h:521,
                 from /usr/include/wx-2.8/wx/wxprec.h:13,
                 from nviz.h:5,
                 from change_view.cpp:15:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
error: command 'gcc' failed with exit status 1
make: *** [OBJ.i686-pc-linux-gnu/_grass6_wxnviz.so] Error 1

What probably am I missing for NVIZ?

Markus Neteler wrote:

2010/1/25 António Rocha <antonio.rocha@deimos.com.pt>:
  

Ok I have added the --with-python=/usr/bin/python2.6-config
and I still got errors in NVIZ compilation and it's not available
GRASS GIS compilation log
-------------------------
Started compilation: Mon Jan 25 14:54:21 WET 2010
--
Errors in:
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/lib/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/gui/wxpython/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/visualization/nviz
/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/visualization/nviz2/cmd

The last line of the log indicates what to do :slight_smile:

...
"--
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.
"

If that's unclear please suggest a better wording...

Markus

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4805 (20100125) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4805 (20100125) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

António Rocha wrote:

/home/anrr/Downloads/grass-6.4.svn_src_snapshot_2010_01_16-2/dist.i686-pc-linux-gnu/include/grass/nviz.h:21:69:
error: X11/Xmu/StdCmap.h: No such file or directory

debian$ apt-file search X11/Xmu/StdCmap.h
libxmu-headers: /usr/include/X11/Xmu/StdCmap.h

apparently you still need to install some missing -dev packages.

Hamish