[Mapserver-users] problem compiling mapserer with ming

blaise bpicinbono at worldonline.fr
Wed Mar 31 16:45:16 EST 2004


Dear list,

(PC-Linux / Fedora Core 1 / Apache 2)
I have build mapserver-phpmapscript 4.0.1 ok with the following options :
./configure --with-tiff --without-eppl --with-threads --with-proj 
--with-php=../lib/php-4.3.4 --with-gd=/usr/local --with-freetype=/usr/bin

Now, I'd like to add the ming support.
I could not build ming without gif support so I download it from the 
opaque (ming) web site. (by the way, can ming and mapserver-ming run 
without gif support ?)
Now ming seems to be well installed, I've got the ming support in the 
phpinfo page when I "dl 'php_ming.so'"; and I tried a few php-ming 
examples that are running fine.

Then I tried to build mapserver with ming :
./configure --with-tiff --without-eppl --with-threads --with-proj 
--with-php=../lib/php-4.3.4 --with-gd=/usr/local 
--with-freetype=/usr/bin --with-ming

and then, make, which gives me this error :
"can't find /usr/include/ming.h" or something like that.

I managed to get ride of this error by installing ming this way :
make
make static
make install
cd php_ext
make

instead of :
make
makestatic
cd php_ext
make

This gives me the /usr/include/ming.h file; but then,
make clean
make distclean
./configure --with..... --with-ming
make
gives this error :
...
.......
gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H 
-DUSE_WMS_SVR -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG 
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_THREAD 
-I/usr/local/include maptemplate.c -o maptemplate.o
Dans le fichier inclus à partir de map.h:42,
à partir de maptemplate.h:8,
à partir de maptemplate.c:3:
/usr/include/ming.h:41:23: ../config.h : Aucun fichier ou répertoire de 
ce type
make: *** [maptemplate.o] Erreur 1
[root at localhost mapserver-4.0.1]#

So, in the /usr/include/ming.h file, I changed this line :
#include "../config.h"
into this :
#include "/root/tmp/ms_install/lib/ming/config.h"
(where I tared the ming.tar.gz)

Then :
make clean
make distclean
./configure --with...... --with-ming
make
the compilation goes farther but then start screeming :
.......
gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H 
-DUSE_WMS_SVR -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG 
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_THREAD 
-I/usr/local/include mapgdal.c -o mapgdal.o

gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_PROJ_API_H 
-DUSE_WMS_SVR -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG 
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_THREAD 
-I/usr/local/include mapswf.c -o mapswf.o

mapswf.c: Dans la fonction « BuildButtonFromGD »:
mapswf.c:444: attention : passage de l'argument n°2 de « 
SWFButton_addShape » d'un type pointeur incompatible
mapswf.c: Dans la fonction « BuildEllipseButton »:
mapswf.c:529: attention : passage de l'argument n°2 de « 
SWFButton_addShape » d'un type pointeur incompatible
mapswf.c:534: attention : passage de l'argument n°2 de « 
SWFButton_addShape » d'un type pointeur incompatible
mapswf.c: Dans la fonction « BuildButtonPolygon »:
mapswf.c:720: attention : passage de l'argument n°2 de « 
SWFButton_addShape » d'un type pointeur incompatible
mapswf.c:727: attention : passage de l'argument n°2 de « 
SWFButton_addShape » d'un type pointeur incompatible
mapswf.c:731: attention : passage de l'argument n°2 de « 
SWFButton_addShape » d'un type pointeur incompatible
........ and a lot more .... . .. . . .
.... ... . . .and it ends with :
mapswf.c:2715: error: too few arguments to function `SWFMovie_save'
mapswf.c:2727: attention : passage de l'argument n°2 de « SWFMovie_add » 
d'un type pointeur incompatible
mapswf.c:2734: error: too few arguments to function `SWFMovie_save'
mapswf.c: Dans la fonction « msDrawVectorLayerAsRasterSWF »:
mapswf.c:2853: attention : passage de l'argument n°2 de « SWFMovie_add » 
d'un type pointeur incompatible
make: *** [mapswf.o] Erreur 1
[root at localhost mapserver-4.0.1]#


Do you see where I am wrong at ? Is it the ming install ? The gif 
support from opaque web site ? The mapserver install ? Do I have to add 
the --with-gif option for the mapserver ./configure ?
Thanks for your help.
Blaise








More information about the mapserver-users mailing list