[GRASSLIST:4003] Re: problem compiling new 5.7 source......more problems
and info
Andrew
selkiesdad at twcny.rr.com
Fri Jul 23 06:50:56 EDT 2004
this was my configure command
CFLAGS="-g -Wall" configure --prefix=/usr/local --enable-sysv --enable-another-button --with-motif \
--with-glw --with-gdal=/usr/local/mapserve/bin/gdal-config \
--enable-shared --with-postgres=no --with-odbc-includes=/usr/local/unixODBC/include --with-odbc-libs=/usr/local/unixODBC/lib \
--with-fftw-includes=/usr/local/ifft/include --with-fftw-libs=/usr/local/ifft/lib --with-proj-libs=/usr/local/mapserve/lib\
--with-proj-includes=/usr/local/mapserve/include --with-cxx --with-mysql-includes=/usr/local/mysql/include/mysql \
--with-mysql-libs=/usr/local/mysql/lib/mysql --with-opengl-includes=/usr/local/mesa/include --with-opengl-libs=/usr/local/mesa/lib \
--with-mysql --with-freetype --with-freetype-libs=/usr/local/mapserve/lib --with-freetype-includes=/usr/include/freetype2
The first error/failure involving nad2bin.c (as quoted below) was
corrected by changing the include line from
#include <projects.h>
to
#include "/usr/local/mapserve/include/projects.h"
which I don't think should be necessary based upon the configure command.
The compile then continued until it reached 'g.proj' under the 'general'
directory. There were duplicate definitions due to the line
#include <cpl_csv.h>
deletion of this line allowed the compile to continue until the '
visualization/nviz directory' was reached. I have included the complete
error message for the compile at this point, dumped using "make 2>
outfile" below. I was hoping someone could tell me if the first two
changes I made will cause problems eventually, and if there is a fix for
the errors involving nviz. Thanks for any assistance.
I am using mesa 3.4.2 source, and the libraries are installed as
libGL.so.1.2.0 and libGLU.so.1.2.0 and related symlinks. glx.h is listed
in its header as version 1.5.2.2
error output:
>/misc/grass5/grass-5.7.0/include/version.h:1: warning: `VERSION_STRING' defined but not used
>/misc/grass5/grass-5.7.0/include/version.h:2: warning: `VERSION_MAJOR' defined but not used
>/misc/grass5/grass-5.7.0/include/version.h:3: warning: `VERSION_MINOR' defined but not used
>/misc/grass5/grass-5.7.0/include/version.h:4: warning: `VERSION_RELEASE' defined but not used
>Makefile:75: warning: overriding commands for target `htmlcmd'
>../../include/Make/Rules.make:37: warning: ignoring old commands for target `htmlcmd'
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>Makefile:39: warning: overriding commands for target `htmlcmd'
>../../include/Make/Rules.make:37: warning: ignoring old commands for target `htmlcmd'
>ERROR: No graphics device selected
>No such graphics monitor as <fakestart>.
>Please run "d.mon" to select a valid graphics monitor.
>No such graphics monitor as <fakestart>.
>Please run "d.mon" to select a valid graphics monitor.
>Makefile:14: warning: overriding commands for target `htmlcmd'
>../../include/Make/Rules.make:37: warning: ignoring old commands for target `htmlcmd'
>Makefile:42: warning: overriding commands for target `htmlcmd'
>../../../include/Make/Rules.make:37: warning: ignoring old commands for target `htmlcmd'
>
>Where type is one of:
> rast (raster files)
> oldvect (old (GRASS 5.0) binary vector files)
> vect (binary vector files)
> icon (paint icon files)
> labels (paint label files)
> sites (site list files)
> region (region definition files)
> group (imagery group files)
> 3dview (3D view parameters)
>Makefile:13: warning: overriding commands for target `htmletc'
>../../include/Make/Rules.make:70: warning: ignoring old commands for target `htmletc'
>Makefile:13: warning: overriding commands for target `htmletc'
>../../include/Make/Rules.make:70: warning: ignoring old commands for target `htmletc'
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>Makefile:15: warning: overriding commands for target `htmletc'
>../../../include/Make/Rules.make:70: warning: ignoring old commands for target `htmletc'
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>Makefile:15: warning: overriding commands for target `htmletc'
>../../../include/Make/Rules.make:70: warning: ignoring old commands for target `htmletc'
>ERROR: MAPSET fakestart not found
>
>Where color type is one of:
> aspect (aspect oriented grey colors)
> grey (linear grey scale)
> grey.eq (histogram equalized grey scale)
> grey.log (histogram logarithmic transformed grey scale)
> byg (blue through yellow to green colors)
> byr (blue through yellow to red colors)
> gyr (green through yellow to red colors)
> rainbow (rainbow color table)
> ramp (color ramp)
> ryg (red through yellow to green colors)
> random (random color table)
> wave (color wave)
> rules (create new color table by rules)
>
>ERROR: MAPSET fakestart not found
>Makefile:96: warning: overriding commands for target `htmlcmd'
>../../include/Make/Rules.make:37: warning: ignoring old commands for target `htmlcmd'
>ERROR: MAPSET fakestart not found
>Makefile:15: warning: overriding commands for target `htmletc'
>../../../include/Make/Rules.make:70: warning: ignoring old commands for target `htmletc'
>Makefile:15: warning: overriding commands for target `htmletc'
>../../../include/Make/Rules.make:70: warning: ignoring old commands for target `htmletc'
>Makefile:80: warning: overriding commands for target `htmlcmd'
>../../include/Make/Rules.make:37: warning: ignoring old commands for target `htmlcmd'
>Makefile:89: warning: overriding commands for target `clean'
>../../include/Make/Rules.make:30: warning: ignoring old commands for target `clean'
>Makefile:36: warning: overriding commands for target `clean'
>../../../../../include/Make/Rules.make:30: warning: ignoring old commands for target `clean'
>Makefile:36: warning: overriding commands for target `clean'
>../../../../../include/Make/Rules.make:30: warning: ignoring old commands for target `clean'
>ERROR: MAPSET fakestart not found
>No such graphics monitor as <fakestart>.
>Please run "d.mon" to select a valid graphics monitor.
>ERROR: GISRC - variable not set
>/misc/grass5/grass-5.7.0/dist.i686-pc-linux-gnu/scripts/v.build.all: line 21: GISDBASE: parameter null or not set
>Makefile:15: warning: overriding commands for target `clean'
>../../include/Make/Rules.make:30: warning: ignoring old commands for target `clean'
>ERROR: MAPSET fakestart not found
>ERROR: MAPSET fakestart not found
>
>
>Version: GRASS5.0 beta, update: Novemebr 1999
>
>Authors: original version - H.Mitasova, L.Mitas
> GRASS implementation and segmentation: I.Kosinovsky, D.P. Gerdes
>
>Methods used in this program are described in the following papers:
>Mitasova, H., and Mitas, L., 1993,
>Interpolation by Regularized Spline with Tension:
>I. Theory and implementation. Mathematical Geology, 25, 641-655.
>
>Mitasova, H., and Hofierka, L., 1993
>Interpolation by Regularized Spline with Tension:
>II. Application to terrain modeling and surface geometry analysis.
>Mathematical Geology, 25, 657-669.
>
>Mitasova, H., Mitas, L., Brown, W.M., Gerdes, D.P., Kosinovsky, I.,
>Baker, T., 1995, Modeling spatially and temporally
>distributed phenomena: New methods and tools for GRASS GIS.
>International Journal of Geographic Information Systems,V(9), No(4).
>(special issue on Integration of GIS and Environmental Modeling)
>
>The postscript versions of these papers are available via Internet at
>http://www2.gis.uiuc.edu:2280/modviz/papers/listsj.html
>
>Please cite these references in publications where the results of this
>program were used.
>
>
>ERROR: MAPSET fakestart not found
>OBJ.i686-pc-linux-gnu/do_zoom.o(.text+0x8f2): In function `Create_OS_Ctx':
>/misc/grass5/grass-5.7.0/visualization/nviz/src/do_zoom.c:275: undefined reference to `glXChooseFBConfig'
>OBJ.i686-pc-linux-gnu/do_zoom.o(.text+0x9af):/misc/grass5/grass-5.7.0/visualization/nviz/src/do_zoom.c:287: undefined reference to `glXCreatePbuffer'
>OBJ.i686-pc-linux-gnu/do_zoom.o(.text+0x9d4):/misc/grass5/grass-5.7.0/visualization/nviz/src/do_zoom.c:288: undefined reference to `glXMakeContextCurrent'
>OBJ.i686-pc-linux-gnu/do_zoom.o(.text+0xa83): In function `Destroy_OS_Ctx':
>/misc/grass5/grass-5.7.0/visualization/nviz/src/do_zoom.c:351: undefined reference to `glXDestroyPbuffer'
>collect2: ld returned 1 exit status
>make[3]: *** [nvwish] Error 1
>make[2]: *** [nvwish] Error 2
>make[1]: *** [subdirs] Error 1
>make: *** [default] Error 1
>
>
Andrew wrote:
> I just downloaded the 5.7 source code after reading the announcement
> that it has been officially released. I have a problem with the
> include files for proj4 (installed proj4.4.7 in /usr/local/mapserve
> under include lib and bin). The configure reports no errors but the
> compile fails at
>
> nad2bin.c:8:22 projects.h:No such file or directory
>
> and a list of related warnings .
>
> projects.h is right where I say it is, and I had no such problem with
> grass5.30 source. I did have an identical error problem with an
> "extra" freetype include file (installed with the slackware packages I
> originally chose) during the 5.30 compile, but I fixed that by
> specifying which include to use. I see no such problem with the proj4
> includes and the 5.7 source.
>
> Slackware 9.1 with kernel 2.4.20 , gcc 3.2.2 on an x86 PIII box.
>
> I was curious if there is an obvious fix known for this. I searched
> the users archive but didn't see anything that seemed equivalent.
>
>
More information about the grass-user
mailing list