Strange installation problem

Didier Frick <[email protected]> Thu, 25 Sep 2003 17:22:17 +0200
Newsgroups gmane.comp.web.ming.general
Message-ID <1064503337.1174.70.camel@argon>
Hi all,

I've tried to install Ming on my Debian unstable machine, using the
packages from the distribution:
libming-dev_0.2a.cvs20030716

However, although the installation appeared to be successful, I wasn't
able to use Ming or any application based on it.

They all generate SWF files which are not recognized by any application.

If I try to run them through the listswf program, I get:
Doesn't look like a swf file to me..

In an effort to try and isolate the problem I tried to write a small C
program, which I tried to keep as simple as possible. 
It generates an invalid SWF file as well.

Attached you can find the C program and the output.

Since it's my first attempt at using Ming, I'd appreciate it if someone
with more experience could check that this program is indeed supposed to
produce a valid SWF file in theory.

This would allow me to file a bug for the debian package with confidence
that it is not a problem on my side.

Thanks in advance for any information regarding this issue and best
regards,

		Didier

_______________________________________________
ming-fun mailing list
[email protected]
http://www.opaque.net/mailman/listinfo/ming-fun
generate_swf.c (text/x-c, 710 B)
#include <stdio.h>
#include <ming.h>

int main() {
  fprintf(stderr,"Ming_init:%d\n",Ming_init());
  Ming_useSWFVersion(4);
  SWFShape s=newSWFShape();
  SWFShape_setLine(s,4,255,0,0,255);
  SWFShape_movePenTo(s,10,10);
  SWFShape_drawLineTo(s,310,10);
  SWFMovie m=newSWFMovie();
  SWFMovie_setDimension(m,320,20);
  SWFMovie_setBackground(m,0,0,0);
  SWFMovie_setRate(m,12);
  SWFMovie_add(m,s);
  SWFMovie_nextFrame(m);
  SWFMovie_setNumberOfFrames(m,1);
  SWFMovie_save(m,"out.swf",0);
  destroySWFMovie(m);
  destroySWFShape(s);
  return(0);
}

/* Local Variables: */
/* compile-command: "gcc generate_swf.c -static -lming -lm -lz -o generate_swf" */
/* executable-command: "./generate_swf" */
/* End: */
out.swf (application/x-shockwave-flash, 77 B) - not displayed