blinking symbol with ming

Blaise Picinbono bpicinbono at WORLDONLINE.FR
Thu Nov 3 07:53:16 EST 2005


Le Jeudi 3 Novembre 2005 11:27, Agneta Schick a écrit :
> Thank you for your help. I've got the mapserver 4.6.1 finally installed.
> Our problem was a too old GNU library.
>
> My next problem is getting a blinking symbol. I could do this with ming.
> Or can someone suggest a better (easier) solution?
>
> I cannot get the mapserver built when configured with
> "--with-ming=../ming/src".
>
> I get a long list of warnings such as:
> mapswf.c:509: warning: passing arg 2 of `SWFButton_addShape' from
> incompatible pointer type
>
> and errors such as
> mapswf.c:3012: error: too few arguments to function `SWFMovie_save'
>
> Could it be that "MING_VERSION_03" is not true? I'm using ming-0.3beta1.
>
> Which version of ming works with mapserver 4.6.1?
>
> Agneta Schick

Hi Agneta
I'm not sure about blinking symbol. Maybe an animated gif ? You should search 
the list, some people may have found tricks to display animated gps or wifi 
points.
About ming, I build several MapServer versions with several Ming version 
successfully (as far as I have tested them), but each time I had to update a 
bit some Ming files and some MapServer files.
First, you should get the cvs Ming version, because I think their download 
link is not updated (but maybe it changed recently ?)
Then, you could try an empirical solution : try to modify each line of each 
file where compilation errors occur (starting with file "mapswf.c", line 3012 
in your case). For this error, I replaced the line :
SWFMovie_save(image->img.swf->sMainMovie, filename);
by this one :
SWFMovie_save(image->img.swf->sMainMovie, filename,0);

How to modify these files is another question, a bit of googling can help. In 
my case, as I didn't want gif support and libungif, I had also to remove all 
references to gif in mapserver and ming files.

I could sent you a complete list of all my updates, but I don't think it would 
be very valuable because it only fits the MapServer setup I need, which might 
not be your.

If you really think Ming can be a solution for you (which I can not assure 
you), try the update above in the mapswf.c file, rebuild and sent the next 
error. It should work fine with something like 5 or 10 updates.

I find my method far from aesthetic, but it's the only way I've been able to 
build MapServer with Ming. I would be interested if somebody in this list had 
a better solution.
Good luck
Blaise



More information about the mapserver-users mailing list