Greetings, Till!
I was just about to pull out my laptop with Ubuntu... haven't used it
in quite sometime. I've compiled MapServer, GRASS, and GDAL/OGR in
Ubuntu before without any problems so I'm curious to see what Matt's
problem is all about. It could be that he's missing some header files...
Matt, did you download the "dev" packages for GDAL and other dependencies?
-Perry
Till Adams wrote:
Dear Perry,
we love Ubuntu because we never got less errors while compiling UMN
(none).
We take all the libs from breezy (also libgdal and libgdal-dev) and
compile like this:
# ./configure --with-gd -- with-gdal=/usr/bin/gdal-config --with-ogr
--with-wms...
and all the rest we want without giving any pathes. If you make
# find -name gdal-config
it is located in "/usr/bin/"
Everything Works. Did you take any of the libs (gdal, gd, freetype,
..) from sources and not as
package?
Till
Matthew Perry schrieb:
Perry,
On 1/15/06, Pericles S. Nacionales <[EMAIL PROTECTED]> wrote:
What happens if you run configure with this:
./configure --with-wmsclient --with-wfsclient
--with-gdal=/usr/local/bin/gdal-config --with-ogr --with-proj
(Don't pass the path to "--with-ogr" parameter).
Same error. I tried without specifying any paths and tried specifying
the the official ubuntu gdal binaries in /usr/bin with the same
results.
matt
Matthew Perry wrote:
Hey folks,
I'm installing mapserver 4.6.2 from source on ubuntu breezy and I'm
running into some errors. I built most dependencies with "apt-get
build-dep mapserver-bin", built my own gdal cvs (from 01/11/06) in
/usr/local and configured with:
./configure --with-wmsclient --with-wfsclient
--with-gdal=/usr/local/bin/gdal-config --with-proj
--with-ogr=/usr/local/bin/gdal-config
But make is giving me the following errors:
gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT
-DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_LYR
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL
-DUSE_ICONV -DUSE_ZLIB -I/usr/include -I/usr/local/include
shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype
-lpng -lz -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -lXpm -lX11
-lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/lib -lcurl -lidn
-lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lc -lz -lm -lstdc++
-o shp2img
./libmap.a(mapogr.o): In function `msOGRFileWhichShapes(layer_obj*,
rectObj, ms_ogr_file_info_t*)':
mapogr.cpp:(.text+0x516): undefined reference to
`OGRLineString::setPoint(int, double, double)'
mapogr.cpp:(.text+0x52e): undefined reference to
`OGRLineString::setPoint(int, double, double)'
mapogr.cpp:(.text+0x54c): undefined reference to
`OGRLineString::setPoint(int, double, double)'
mapogr.cpp:(.text+0x56a): undefined reference to
`OGRLineString::setPoint(int, double, double)'
mapogr.cpp:(.text+0x582): undefined reference to
`OGRLineString::setPoint(int, double, double)'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
I've tried this on two other installations of Ubuntu and get the exact
same error even when compiling against older versions of gdal which I
know to be stable. If i compile without gdal/ogr it works fine. Does
anyone have any hints about where I can begin debugging this?
--
Matt Perry
[EMAIL PROTECTED]
http://www.perrygeo.net
.
--
Matt Perry
[EMAIL PROTECTED]
http://www.perrygeo.net