[GRASS-user] NVIZ, compilation error

Glynn Clements glynn at gclements.plus.com
Mon Sep 22 08:56:17 EDT 2008


Benoit ANDRE wrote:

> I get an error when compiling NVIZ module : 
> 
> 
>         c++ -I/disques/linux-1/archive/GIS/grass/grass-6.4/cvn/grass-6.4.svn_src_snapshot_2008_09_20/dist.i686-pc-linux-gnu/include  -g -O2   -fPIC -I/usr/local/include -I/usr/local/include/python2.5 -I/usr/local/include/python2.5 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/lib/wx/include/gtk2-unicode-debug-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__ -pthread     -DPACKAGE=\""grasslibs"\"  -I/disques/linux-1/archive/GIS/grass/grass-6.4/cvn/grass-6.4.svn_src_snapshot_2008_09_20/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/change_view.o -c change_view.cpp
>         cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour Ada/C/ObjC mais pas pour C++
>         nviz.h:33: erreur: ISO C++ forbids declaration of ‘wxGLCanvas’ with no type
>         nviz.h:33: erreur: expected ‘;’ before ‘*’ token
>         change_view.cpp: In member function ‘int Nviz::SetView(float, float, float, float, float)’:
>         change_view.cpp:89: attention : passing ‘float’ for argument 2 to ‘int Nviz_set_viewpoint_twist(nv_data*, int)’
>         change_view.cpp:91: attention : passing ‘float’ for argument 2 to ‘int Nviz_set_viewpoint_persp(nv_data*, int)’
>         make: *** [OBJ.i686-pc-linux-gnu/change_view.o] Erreur 1
> 
> 
> Grass : grass-6.4.svn_src_snapshot_2008_09_20
> OS :     Linux RHEL 5.1
> wx :     gtk2-unicode-debug-2.8
> 
> Any idea ?

In the file:

	/usr/local/lib/wx/include/gtk2-unicode-debug-2.8/wx/setup.h

look for:

	#define wxUSE_GLCANVAS 1

If it isn't there, your wxWidgets library was built without OpenGL
support, so you won't be able to build the nviz module for the
wxPython GUI.

This doesn't affect the Tcl/Tk NVIZ application.

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


More information about the grass-user mailing list