Hi,
No matter what I do, NVIZ deosn't build in any Grass 6.0 or 6.1 I try on
my Ubuntu Hoary. Can any Hoary user please check if it works for him?
The error I'm continously getting is:
maciek@sorbus:~/src/straight/grass6/visualization/nviz$ make
cd src ; make
make[1]: Entering directory
`/home/maciek/src/straight/grass6/visualization/nviz/src'
gcc -Wl,--export-dynamic -L/home/maciek/src/straight/grass6/dist./lib
-Wl,-rpath-link,/home/maciek/src/straight/grass6/dist./lib
-o /home/maciek/src/straight/grass6/dist./bin/nviz OBJ./nvizAppInit.o
OBJ./change_view.o OBJ./draw.o OBJ./exag.o OBJ./glwrappers.o
OBJ./init_commands.o OBJ./lights.o OBJ./map_obj.o OBJ./misc.o
OBJ./nviz_init.o OBJ./position.o OBJ./quick_draw.o OBJ./anim_support.o
OBJ./cutplane_obj.o OBJ./script_support.o OBJ./do_zoom.o OBJ./label.o
OBJ./nvizMain.o OBJ./togl.o OBJ./togl_cb.o OBJ./query_vect.o
OBJ./volume.o OBJ./togl_flythrough.o -lgrass_ogsf -lgrass_image \
-lgrass_bitmap -lgrass_linkm -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/lib -lgdal -lgrass_sites -lgrass_form -lgrass_dbmiclient
-lgrass_dbmibase \
-lgrass_gis -lgrass_datetime -lz -lm -lz \
-lgrass_datetime -ltk8.3 -lm -ltcl8.3 -lm -lGLU -lGL -lpthread -lSM
-lICE -lX11 -lXmu -lXext -lm -ldl -lz -L/usr/X11R6/lib -ltiff \
-lSM -lICE -lX11 -lgrass_g3d
/usr/X11R6/lib/libGL.a(glxcmds.o)(.text+0x2eea): In function
`glXGetMscRateOML':: undefined reference to `XF86VidModeQueryVersion'
/usr/X11R6/lib/libGL.a(glxcmds.o)(.text+0x2f1a): In function
`glXGetMscRateOML':: undefined reference to `XF86VidModeGetModeLine'
collect2: ld returned 1 exit status
make[1]: *** [/home/maciek/src/straight/grass6/dist./bin/nviz] Error 1
make[1]: Leaving directory
`/home/maciek/src/straight/grass6/visualization/nviz/src'
make: *** [nvwish] Error 2
The ./configure was:
--with-cxx
--without-odbc
--enable-largefile
--with-sqlite
--with-tcltk-includes="/usr/include/tcl8.3/" "/usr/include/tk8.3/"
--with-postgres-includes="/usr/include/postgresql/"
--with-freetype
--with-freetype-includes="/usr/include/freetype2/"
The last succesfull Grass 6.1 CVS build on my machine was on 2005-11-16.
However, now the 2005-11-16 CVS revision fails. Thus I assume something
that was introduced to my system since 2005-11-16 causes the problem. I
have no idea what this exactly could be though. Since then I have been
updating my machine several times, keeping it always up to date.
Eg. the kernel revision changed. On 2005-11-16 it was:
linux-image-2.6.10-5-686 (2.6.10-34.7)
Now it's:
linux-image-2.6.10-6-686 (2.6.10-34.8)
And I'm mentioning it because of what I learned form Markus Neteler:
Maciek Sieczka wrote:
> gcc -Wl,--export-dynamic
> -L/home/maciek/src/straight/grass6/dist./lib
Markus Neteler wrote:
isn't it strange that there is no architecture?
It should be
.../grass6/dist.i686-pc-linux-gnu/lib ...
^^^^^^^^^^^^^^^^^
What do you think of it?
I can't build NVIZ anymore which I have to use often. No good. Please
help.
Maciek
--------------------
W polskim Internecie s± setki milionów stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/
Hi Maciek,
here is something that came up related to NVIZ and X.org last september:
http://grass.itc.it/pipermail/grass5/2005-September/019676.html
as stated in the above message, the fix was to :
add -lXxf86vm to the /nviz/src/Makefile
...and as Glynn Clements pointed out, this is a bit strange.
Hope that works!
Dylan
On Jan 8, 2006, at 1:16 PM, Maciek Sieczka wrote:
Hi,
No matter what I do, NVIZ deosn't build in any Grass 6.0 or 6.1 I try on
my Ubuntu Hoary. Can any Hoary user please check if it works for him?
The error I'm continously getting is:
maciek@sorbus:~/src/straight/grass6/visualization/nviz$ make
cd src ; make
make[1]: Entering directory
`/home/maciek/src/straight/grass6/visualization/nviz/src'
gcc -Wl,--export-dynamic -L/home/maciek/src/straight/grass6/dist./lib
-Wl,-rpath-link,/home/maciek/src/straight/grass6/dist./lib
-o /home/maciek/src/straight/grass6/dist./bin/nviz OBJ./nvizAppInit.o
OBJ./change_view.o OBJ./draw.o OBJ./exag.o OBJ./glwrappers.o
OBJ./init_commands.o OBJ./lights.o OBJ./map_obj.o OBJ./misc.o
OBJ./nviz_init.o OBJ./position.o OBJ./quick_draw.o OBJ./anim_support.o
OBJ./cutplane_obj.o OBJ./script_support.o OBJ./do_zoom.o OBJ./label.o
OBJ./nvizMain.o OBJ./togl.o OBJ./togl_cb.o OBJ./query_vect.o
OBJ./volume.o OBJ./togl_flythrough.o -lgrass_ogsf -lgrass_image \
-lgrass_bitmap -lgrass_linkm -lgrass_vect -lgrass_dig2 -lgrass_dgl
-lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase
-L/usr/local/lib -lgdal -lgrass_sites -lgrass_form -lgrass_dbmiclient
-lgrass_dbmibase \
-lgrass_gis -lgrass_datetime -lz -lm -lz \
-lgrass_datetime -ltk8.3 -lm -ltcl8.3 -lm -lGLU -lGL -lpthread -lSM
-lICE -lX11 -lXmu -lXext -lm -ldl -lz -L/usr/X11R6/lib -ltiff \
-lSM -lICE -lX11 -lgrass_g3d
/usr/X11R6/lib/libGL.a(glxcmds.o)(.text+0x2eea): In function
`glXGetMscRateOML':: undefined reference to `XF86VidModeQueryVersion'
/usr/X11R6/lib/libGL.a(glxcmds.o)(.text+0x2f1a): In function
`glXGetMscRateOML':: undefined reference to `XF86VidModeGetModeLine'
collect2: ld returned 1 exit status
make[1]: *** [/home/maciek/src/straight/grass6/dist./bin/nviz] Error 1
make[1]: Leaving directory
`/home/maciek/src/straight/grass6/visualization/nviz/src'
make: *** [nvwish] Error 2
The ./configure was:
--with-cxx
--without-odbc
--enable-largefile
--with-sqlite
--with-tcltk-includes="/usr/include/tcl8.3/" "/usr/include/tk8.3/"
--with-postgres-includes="/usr/include/postgresql/"
--with-freetype
--with-freetype-includes="/usr/include/freetype2/"
The last succesfull Grass 6.1 CVS build on my machine was on 2005-11-16.
However, now the 2005-11-16 CVS revision fails. Thus I assume something
that was introduced to my system since 2005-11-16 causes the problem. I
have no idea what this exactly could be though. Since then I have been
updating my machine several times, keeping it always up to date.
Eg. the kernel revision changed. On 2005-11-16 it was:
linux-image-2.6.10-5-686 (2.6.10-34.7)
Now it's:
linux-image-2.6.10-6-686 (2.6.10-34.8)
And I'm mentioning it because of what I learned form Markus Neteler:
Maciek Sieczka wrote:
gcc -Wl,--export-dynamic
-L/home/maciek/src/straight/grass6/dist./lib
Markus Neteler wrote:
isn't it strange that there is no architecture?
It should be
.../grass6/dist.i686-pc-linux-gnu/lib ...
^^^^^^^^^^^^^^^^^
What do you think of it?
I can't build NVIZ anymore which I have to use often. No good. Please
help.
Maciek
--------------------
W polskim Internecie s± setki milionów stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
Dylan Beaudette wrote:
here is something that came up related to NVIZ and X.org last september:
http://grass.itc.it/pipermail/grass5/2005-September/019676.html
Right. However, NVIZ isn't using these functions; libGL itself is.
The obvious question is: why is libGL a static library rather than a
shared library? A shared library would have the relevant dependency
information:
$ ldd /usr/lib/libGL.so
libpthread.so.0 => /lib/libpthread.so.0 (0x4007e000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x400d1000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x400d7000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x400e5000)
libdl.so.2 => /lib/libdl.so.2 (0x401ae000)
libc.so.6 => /lib/libc.so.6 (0x401b2000)
/lib/ld-linux.so.2 (0x80000000)
Static libraries don't have dependency information, so the only
solution is for the configure script to try adding various other
libraries which might be required.
The libGL check in configure.in should probably be updated to:
LOC_CHECK_LIBS(GL,glBegin,OpenGL,$OPENGL_LIB_PATH,OPENGLLIB,$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB,-lpthread,-ldl,-lXxf86vm)
--
Glynn Clements <glynn@gclements.plus.com>
For what it is worth, I just compiled GRASS CVS this weekend on Ubuntu
5.10. NVIS is working fine (against my new nVidia Graphics card even).
David
On 1/9/06, Glynn Clements <glynn@gclements.plus.com> wrote:
Dylan Beaudette wrote:
> here is something that came up related to NVIZ and X.org last september:
>
> http://grass.itc.it/pipermail/grass5/2005-September/019676.html
Right. However, NVIZ isn't using these functions; libGL itself is.
The obvious question is: why is libGL a static library rather than a
shared library? A shared library would have the relevant dependency
information:
$ ldd /usr/lib/libGL.so
libpthread.so.0 => /lib/libpthread.so.0 (0x4007e000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x400d1000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x400d7000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x400e5000)
libdl.so.2 => /lib/libdl.so.2 (0x401ae000)
libc.so.6 => /lib/libc.so.6 (0x401b2000)
/lib/ld-linux.so.2 (0x80000000)
Static libraries don't have dependency information, so the only
solution is for the configure script to try adding various other
libraries which might be required.
The libGL check in configure.in should probably be updated to:
LOC_CHECK_LIBS(GL,glBegin,OpenGL,$OPENGL_LIB_PATH,OPENGLLIB,$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB,-lpthread,-ldl,-lXxf86vm)
--
Glynn Clements <glynn@gclements.plus.com>
--
David Finlayson
Marine Geology & Geophysics
School of Oceanography
Box 357940
University of Washington
Seattle, WA 98195-7940
USA
Office: Marine Sciences Building, Room 112
Phone: (206) 616-9407
Web: http://students.washington.edu/dfinlays
On pon, 2006-01-09 at 09:21 -0800, David Finlayson wrote:
For what it is worth, I just compiled GRASS CVS this weekend on Ubuntu
5.10. NVIS is working fine (against my new nVidia Graphics card even).
I confirm that. I built today's Grass 6.1 CVS on 5.10 with no problem on
another machine. I'll upgrade to Breezy on my laptop soon too, but I'm
not eager yet. Firts I'd like to get Grass to build on 5.04 as well.
Thanks to All for your remarks. So I see I need install to
libXxf86vm-dev (done) and add a "-lXxf86vm" flag to the linker. But I
don't know how-to.
Trying:
export LDFLAGS="-lXxf86vm"
at ./configure i get:
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -lXxf86vm) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
How do I set this flag correctly?
Dylan suggested another way:
add -lXxf86vm to the /nviz/src/Makefile
How do I do it, exactly?
I also tried to
export
X11_Xext_LIB="/usr/X11R6/lib/libXext.so:/usr/X11R6/lib/libXxf86vm.so" as
advised on http://vtk.org/Bug/bug.php?op=show&bugid=1777&pos=0, but this
doesn't change anything - still NVIZ fails to build.
Maciek
--------------------
Szukasz do¶wiadczonej firmy poligraficznej? Zale¿y Ci na terminowo¶ci i atrakcyjnych cenach?
Zapraszamy do nas!
http://www.foldruk.pl/
On Monday 09 January 2006 01:20 pm, Maciek Sieczka wrote:
On pon, 2006-01-09 at 09:21 -0800, David Finlayson wrote:
> For what it is worth, I just compiled GRASS CVS this weekend on Ubuntu
> 5.10. NVIS is working fine (against my new nVidia Graphics card even).
I confirm that. I built today's Grass 6.1 CVS on 5.10 with no problem on
another machine. I'll upgrade to Breezy on my laptop soon too, but I'm
not eager yet. Firts I'd like to get Grass to build on 5.04 as well.
Thanks to All for your remarks. So I see I need install to
libXxf86vm-dev (done) and add a "-lXxf86vm" flag to the linker. But I
don't know how-to.
This worked for me:
add
"-lXxf86vm"
to the /nviz/src/Makefile
cheers,
Dylan
Trying:
export LDFLAGS="-lXxf86vm"
at ./configure i get:
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -lXxf86vm) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
How do I set this flag correctly?
Dylan suggested another way:
> add -lXxf86vm to the /nviz/src/Makefile
How do I do it, exactly?
I also tried to
export
X11_Xext_LIB="/usr/X11R6/lib/libXext.so:/usr/X11R6/lib/libXxf86vm.so" as
advised on http://vtk.org/Bug/bug.php?op=show&bugid=1777&pos=0, but this
doesn't change anything - still NVIZ fails to build.
Maciek
--------------------
Szukasz do¶wiadczonej firmy poligraficznej? Zale¿y Ci na terminowo¶ci i
atrakcyjnych cenach? Zapraszamy do nas!
http://www.foldruk.pl/
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
On pon, 2006-01-09 at 14:12 -0800, Dylan Beaudette wrote:
On Monday 09 January 2006 01:20 pm, Maciek Sieczka wrote:
> On pon, 2006-01-09 at 09:21 -0800, David Finlayson wrote:
> > For what it is worth, I just compiled GRASS CVS this weekend on Ubuntu
> > 5.10. NVIS is working fine (against my new nVidia Graphics card even).
>
> I confirm that. I built today's Grass 6.1 CVS on 5.10 with no problem on
> another machine. I'll upgrade to Breezy on my laptop soon too, but I'm
> not eager yet. Firts I'd like to get Grass to build on 5.04 as well.
>
> Thanks to All for your remarks. So I see I need install to
> libXxf86vm-dev (done) and add a "-lXxf86vm" flag to the linker. But I
> don't know how-to.
>
This worked for me:
add
"-lXxf86vm"
to the /nviz/src/Makefile
Dylan,
Sorry for my ignorance, but where do I exactly put it in this file?
Maciek
--------------------
Szukasz do¶wiadczonej firmy poligraficznej? Zale¿y Ci na terminowo¶ci i atrakcyjnych cenach?
Zapraszamy do nas!
http://www.foldruk.pl/
On Tuesday 10 January 2006 11:36 am, Maciek Sieczka wrote:
On pon, 2006-01-09 at 14:12 -0800, Dylan Beaudette wrote:
> On Monday 09 January 2006 01:20 pm, Maciek Sieczka wrote:
> > On pon, 2006-01-09 at 09:21 -0800, David Finlayson wrote:
> > > For what it is worth, I just compiled GRASS CVS this weekend on
> > > Ubuntu 5.10. NVIS is working fine (against my new nVidia Graphics
> > > card even).
> >
> > I confirm that. I built today's Grass 6.1 CVS on 5.10 with no problem
> > on another machine. I'll upgrade to Breezy on my laptop soon too, but
> > I'm not eager yet. Firts I'd like to get Grass to build on 5.04 as
> > well.
> >
> > Thanks to All for your remarks. So I see I need install to
> > libXxf86vm-dev (done) and add a "-lXxf86vm" flag to the linker. But I
> > don't know how-to.
>
> This worked for me:
>
> add
> "-lXxf86vm"
>
> to the /nviz/src/Makefile
Dylan,
Sorry for my ignorance, but where do I exactly put it in this file?
Maciek
Should have been a bit more clear:
I added it to the Makefile located at:
altering the following line:
OGL_LIBS = $(OPENGLULIB) $(OPENGLLIB) $(OPENGL32) $(XLIB) -lXmu -lXext
$(MATHLIB) $(DLLIB) $(XDRLIB) $(XEXTRALIBS) $(XLIBPATH) -lXxf86vm
See where I added '-lXxf86vm' at the end ?
Hope that helps,
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
On Tuesday 10 January 2006 11:36 am, Maciek Sieczka wrote:
On pon, 2006-01-09 at 14:12 -0800, Dylan Beaudette wrote:
> On Monday 09 January 2006 01:20 pm, Maciek Sieczka wrote:
> > On pon, 2006-01-09 at 09:21 -0800, David Finlayson wrote:
> > > For what it is worth, I just compiled GRASS CVS this weekend on
> > > Ubuntu 5.10. NVIS is working fine (against my new nVidia Graphics
> > > card even).
> >
> > I confirm that. I built today's Grass 6.1 CVS on 5.10 with no problem
> > on another machine. I'll upgrade to Breezy on my laptop soon too, but
> > I'm not eager yet. Firts I'd like to get Grass to build on 5.04 as
> > well.
> >
> > Thanks to All for your remarks. So I see I need install to
> > libXxf86vm-dev (done) and add a "-lXxf86vm" flag to the linker. But I
> > don't know how-to.
>
> This worked for me:
>
> add
> "-lXxf86vm"
>
> to the /nviz/src/Makefile
Dylan,
Sorry for my ignorance, but where do I exactly put it in this file?
Maciek
Opps!
forgot to mention that it was this file:
grass6/visualization/nviz/src/Makefile
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
On wto, 2006-01-10 at 11:55 -0800, Dylan Beaudette wrote:
On Tuesday 10 January 2006 11:36 am, Maciek Sieczka wrote:
> On pon, 2006-01-09 at 14:12 -0800, Dylan Beaudette wrote:
> > On Monday 09 January 2006 01:20 pm, Maciek Sieczka wrote:
> > > On pon, 2006-01-09 at 09:21 -0800, David Finlayson wrote:
> > > > For what it is worth, I just compiled GRASS CVS this weekend on
> > > > Ubuntu 5.10. NVIS is working fine (against my new nVidia Graphics
> > > > card even).
> > >
> > > I confirm that. I built today's Grass 6.1 CVS on 5.10 with no problem
> > > on another machine. I'll upgrade to Breezy on my laptop soon too, but
> > > I'm not eager yet. Firts I'd like to get Grass to build on 5.04 as
> > > well.
> > >
> > > Thanks to All for your remarks. So I see I need install to
> > > libXxf86vm-dev (done) and add a "-lXxf86vm" flag to the linker. But I
> > > don't know how-to.
> >
> > This worked for me:
> >
> > add
> > "-lXxf86vm"
> >
> > to the /nviz/src/Makefile
>
> Dylan,
>
> Sorry for my ignorance, but where do I exactly put it in this file?
>
> Maciek
>
Should have been a bit more clear:
I added it to the Makefile located at:
altering the following line:
OGL_LIBS = $(OPENGLULIB) $(OPENGLLIB) $(OPENGL32) $(XLIB) -lXmu -lXext
$(MATHLIB) $(DLLIB) $(XDRLIB) $(XEXTRALIBS) $(XLIBPATH) -lXxf86vm
Cheers! This was clear enough :). Thanks a tone! NVIZ builds now on
Hoary.
Maciek
--------------------
Szukasz do¶wiadczonej firmy poligraficznej? Zale¿y Ci na terminowo¶ci i atrakcyjnych cenach?
Zapraszamy do nas!
http://www.foldruk.pl/
> > This worked for me:
> >
> > add
> > "-lXxf86vm"
> >
> > to the /nviz/src/Makefile
>
> Dylan,
>
> Sorry for my ignorance, but where do I exactly put it in this file?
Should have been a bit more clear:
I added it to the Makefile located at:
altering the following line:
OGL_LIBS = $(OPENGLULIB) $(OPENGLLIB) $(OPENGL32) $(XLIB) -lXmu -lXext
$(MATHLIB) $(DLLIB) $(XDRLIB) $(XEXTRALIBS) $(XLIBPATH) -lXxf86vm
See where I added '-lXxf86vm' at the end ?
That setting is quite badly wrong. It should probably be:
OGL_LIBS = $(XLIBPATH) $(OPENGLULIB) $(OPENGLLIB) $(OPENGL32) -lXmu
-lXxf86vm -lXext $(XLIB) $(XEXTRALIBS) $(DLLIB) $(XDRLIB) $(MATHLIB)
(all on one line).
If you're using static libraries, the order in which libraries appear
in the link command is signficant. Dependencies must come after the
libraries which depend upon them; e.g. Xlib must come after all other
X libraries, libXext must come after libXxf86vm, etc.
--
Glynn Clements <glynn@gclements.plus.com>
On Jan 10, 2006, at 7:52 PM, Glynn Clements wrote:
This worked for me:
add
"-lXxf86vm"
to the /nviz/src/Makefile
Dylan,
Sorry for my ignorance, but where do I exactly put it in this file?
Should have been a bit more clear:
I added it to the Makefile located at:
altering the following line:
OGL_LIBS = $(OPENGLULIB) $(OPENGLLIB) $(OPENGL32) $(XLIB) -lXmu -lXext
$(MATHLIB) $(DLLIB) $(XDRLIB) $(XEXTRALIBS) $(XLIBPATH) -lXxf86vm
See where I added '-lXxf86vm' at the end ?
That setting is quite badly wrong. It should probably be:
OGL_LIBS = $(XLIBPATH) $(OPENGLULIB) $(OPENGLLIB) $(OPENGL32) -lXmu
-lXxf86vm -lXext $(XLIB) $(XEXTRALIBS) $(DLLIB) $(XDRLIB) $(MATHLIB)
(all on one line).
If you're using static libraries, the order in which libraries appear
in the link command is signficant. Dependencies must come after the
libraries which depend upon them; e.g. Xlib must come after all other
X libraries, libXext must come after libXxf86vm, etc.
--
Glynn Clements <glynn@gclements.plus.com>
Thanks for the clarification. It is now apparent that I know enough about these things to get me into serious trouble!
Cheers!
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341