[mapserver-users] Build Mapserver with OpenGL
Eduardo Almeida Costa
euduca at gmail.com
Thu Jan 28 05:51:41 PST 2010
Hi! =)
I'm trying (and trying, and trying) to build Mapserver with OpenGL but I got
this errors:
mapogl.cpp: In function ‘int
msPopulateRendererVTableOGL(rendererVTableObj*)’:
mapogl.cpp:225: error: invalid conversion from ‘void (*)(imageObj*,
shapeObj*, colorObj*, double, int, double*)’ to ‘void (*)(imageObj*,
shapeObj*, strokeStyleObj*)’
mapogl.cpp:242: error: invalid conversion from ‘void (*)(imageObj*,
shapeObj*, void*)’ to ‘void (*)(imageObj*, shapeObj*, imageObj*)’
mapogl.cpp:243: error: invalid conversion from ‘void (*)(void*)’ to ‘void
(*)(imageObj*)’
make: ** [mapogl.o] Erro 1
My* .configure*:
# ./configure --enable-debug --with-php=/usr/include/php5
--with-httpd=/usr/sbin/apache2 --with-gd --with-libiconv=/usr --with-gd
--with-freetype=/usr --with-threads --with-tiff
--with-curl=/us/bin/curl-config --with-jpeg --with-proj=/usr/local
--with-geos=/usr/bin/geos-config --with-ogr=/usr/bin/gdal-config
--with-gdal=/usr/bin/gdal-config --with-wcs --with-wfsclient
--with-wmsclient --with-sos --with-ming=/usr/src/ming-0.4.2 --with-cairo
--with-fribidi-config=/usr/bin/fribidi-config --with-pdf --with-opengl
--with-ftgl
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for exp in -lm... yes
checking for __gxx_personality_v0 in -lstdc++... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for strrstr... no
checking for strcasestr... yes
checking for strlcat... no
checking for vsnprintf... yes
MapServer Version from mapserver.h: '5.6.1'
checking if pkg-config path is provided... checking for pkg-config...
/usr/bin/pkg-config
configure: checking where FreeType 2.x is installed...
using libfreetype from -lfreetype -lz
configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
using libz from system libs (-DUSE_ZLIB).
configure: checking where PNG is installed...
checking for png_init_io in -lpng... yes
using libpng from system libs.
configure: checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
using libjpeg from system libs.
configure: checking where libXpm is installed...
checking for XpmFreeXpmImage in -lXpm... yes
using libXpm from system libs.
configure: checking where libiconv is installed...
checking for iconv_open in -lc... yes
checking for libiconv_open in -liconv... no
checking for iconv_open in -liconv... no
using libiconv from -L/usr/lib -lc
libiconv found. Enabling internationalization (-DUSE_ICONV)
configure: checking for GD 2.0.16 or higher...
checking for gdFontCacheSetup in -lgd... yes
using libgd 2.0.16 (or higher) from system libs (-L/usr/lib64 -lgd
-ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS) from system libs.
configure: checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... yes
checking for PDF_setrgbcolor in -lpdf... yes
checking for PDF_moveto in -lpdf... yes
checking for PDF_curveto in -lpdf... yes
checking for PDF_show_xy in -lpdf... yes
checking for PDF_load_font in -lpdf... yes
using libpdf from system libs.
checking if FTGL support requested... looking for ftgl libs in /usr
using ftgl from /usr
checking if OGL support requested... looking for opengl libs in /usr
./configure: line 9055: -L/usr/lib64: No such file or directory
using opengl from /usr
checking if AGG support requested... checking if RGBA palette png support
requested... no
configure: checking whether we should include EPPL7 support...
including EPPL7 support.
configure: checking whether we should include PROJ.4 support...
checking for pj_transform in -lproj... yes
using PROJ.4 from /usr/local.
configure: checking whether we should include thread safe support...
checking for pthread_create in -lpthread... yes
using -lpthread from system libs.
configure: checking whether we should include ESRI SDE support...
ESRI SDE support not requested.
checking if GEOS support requested... yes
user supplied geos-config (/usr/bin/geos-config)
checking for GEOS version >= 2.2.2... yes. Found version 3.0.0
GEOS >= 3.0.0 found. Adding -DGEOS_HAS_SIMPLIFY
configure: checking whether we should include OGR support...
OGR enabled (-DUSE_OGR).
checking if GDAL support requested... yes, user supplied gdal-config
(/usr/bin/gdal-config)
checking checking ms JPEG output... no we, have GDAL available.
configure: checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
using libtiff from system libs.
checking if PostGIS support requested... no
checking if MyGIS support requested... no
checking if OracleSpatial support requested... no
checking if MING/Flash support requested... yes, user supplied MING
directory
configure: checking whether we should include WMS Server support...
OGC WMS compatibility enabled (-DUSE_WMS_SVR).
configure: checking whether we should include WFS Server support...
OGC WFS Server support not requested.
configure: checking whether we should include WCS Server support...
OGC WCS Server support enabled (-DUSE_WCS_SVR).
configure: checking whether we should include WMS Client Connections
support...
configure: checking whether we should include WFS Client Connections
support...
configure: checking whether we should include OGC SOS Server support...
OGC SOS Server support requested.
checking for curl-config... checking for curl-config... /usr/bin/curl-config
found libcurl version 7.18.2
OGC WMS Client Connections enabled (-DUSE_WMS_LYR).
OGC WFS Client Connections enabled (-DUSE_WFS_LYR).
checking for libxml2... libxml2 required.
checking for xml2-config... /usr/bin/xml2-config
found libxml2 version 2.6.32
checking if FriBidi support requested... yes, user supplied fribidi-config
(/usr/bin/fribidi-config)
checking if Cairo support requested... yes
checking for cairo pkg-config path... yes
yes, pkg-config defaults, or user supplied path to cairo.pc
checking FastCGI support... not requested.
configure: checking HTTPD server (Apache) version...
using user-supplied httpd (/usr/sbin/apache2)
/usr/sbin/apache2 version is Apache/2.2.9 (2002009).
Compiling with fast MS_NINT
checking compiler warnings... basic
configure: checking whether we should enable debug features...
Enabling debug features: -g in CFLAGS.
configure: checking for PHP/MapScript module options...
checking for g++ -shared ... yes
checking for location of config.h or php_config.h...
/usr/include/php5/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
found regex_extra.h - building PHP MapScript with PHP's bundled
regex
PHP/MapScript module configured.
checking if --enable-runpath requested... no
checking if --with-java-include-os-name specified... no, autodetected linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile
MapServer is now configured for
-------------- Compiler Info -------------
C compiler: gcc -g -fPIC -Wall
C++ compiler: g++ -g -fPIC -Wall
Debug: -g
Generic NINT:
-------------- Renderer Settings ---------
OpenGL support: -DUSE_OGL
zlib support: -DUSE_ZLIB
png support:
palette rgba png support:
jpeg support:
iconv support: -DUSE_ICONV
AGG support: -DUSE_AGG
Cairo (SVG,PDF) support: -DUSE_CAIRO
Ming(flash) support: -DUSE_MING_FLASH
PDFLib support: -DUSE_PDF
-------------- Support Libraries ---------
Proj.4 support: -DUSE_PROJ
Libxml2 support: -DUSE_LIBXML2
FriBidi support: -DUSE_FRIBIDI
Curl support: -DUSE_CURL
FastCGI support:
Threading support: -DUSE_THREAD
GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY
-------------- Data Format Drivers -------
native tiff support: -DUSE_TIFF
PostGIS support:
EPPL7 support: -DUSE_EPPL
ArcSDE support:
OGR support: -DUSE_OGR
GDAL support: -DUSE_GDAL
Oracle Spatial support:
-------------- OGC Services --------------
WMS Server: -DUSE_WMS_SVR
WMS Client: -DUSE_WMS_LYR
WFS Server:
WFS Client: -DUSE_WMS_LYR
WCS Server: -DUSE_WCS_SVR
SOS Server: -DUSE_SOS_SVR
-------------- MapScript -----------------
PHP MapScript: yes
----------------------------------------------------------------
What can I do?
I installed the Mapserver without " --with-opengl --with-ftgl" options,
successfully. (Debian Lenny, 64bits)
I want to test the Mapserver output against the "nVidia Corporation NV41
[Quadro FX 3450/4000 SDI]".
I found a error in this output, but I installed all possible libraries (I
guess), I don't know a workaround to this error.
" checking if OGL support requested... looking for opengl libs in /usr
./configure: line 9055: -L/usr/lib64: No such file or directory
using opengl from /usr "
root at noma:/usr# ls -l
total 120
drwxr-xr-x 75 root root 40960 Jan 27 17:08 lib
lrwxrwxrwx 1 root root 24 Set 29 2008 lib32 ->
/emul/ia32-linux/usr/lib
lrwxrwxrwx 1 root root 3 Set 29 2008 lib64 -> lib
Thanks, Duca. \o/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100128/bb3a0cc7/attachment.htm>
More information about the MapServer-users
mailing list