[Swfdec] SwfDec in Windows

Benjamin Otte otte at gnome.org
Tue Oct 9 11:12:10 PDT 2007


Hey,

Great someone is trying it on Windows. I'm very interested in patches
that make Swfdec work there, so if you got some, just post them to the
list.
On another note, why are you using Swfdec 0.4 and not 0.5?
Swfdec 0.4 was still based on the Mozilla Javascript engine, which I
have limited knowledge about, and which happens to be the cause for
your compiler bug.

Cheers,
Benjamin

On 9/28/07, Helbert <jhelbert at gmail.com> wrote:
> Hello,
>
> I`m not sure if in this list I can post this problem, but...
>
> I`m trying compile swfdec in windows platform (with mingw) and I find
> many errors in the make process, some in compilance process (some
> solve it).
>
> But I can´t solve the bellow problem in make process:
>
> make[3]: Entering directory `/home/Administrador/swfdec-0.4.3/player'
> /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o swfplay.exe
> -Lc:/MinGW/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
> -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -lcairo
> -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
> ../libswfdec/libswfdec-0.4.la  -Lc:/MinGW/lib -lgobject-2.0 -lglib-2.0
> -lintl -liconv   -lz swfplay-swfdec_slow_loader.o swfplay-swfplay.o
> libswfdecui.la
> gcc -g -O2 -o swfplay.exe swfplay-swfdec_slow_loader.o
> swfplay-swfplay.o  -Lc:/MinGW/lib ../libswfdec/.libs/libswfdec-0.4.a
> -LC:/msys/1.0/local/lib ./.libs/libswfdecui.a -lgtk-win32-2.0
> -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0
> /home/Administrador/swfdec-0.4.3/libswfdec/.libs/libswfdec-0.4.a
> -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0
> /usr/local/lib/liboil-0.3.dll.a -lgobject-2.0 -lglib-2.0 -lintl
> -liconv -lz -L/usr/local/lib -L/usr/local/lib
> make[3]: Leaving directory `/home/Administrador/swfdec-0.4.3/player'
> make[2]: Leaving directory `/home/Administrador/swfdec-0.4.3/player'
> make[1]: Leaving directory `/home/Administrador/swfdec-0.4.3'
> ../libswfdec/.libs/libswfdec-0.4.a(libjs_la-jsapi.o): In function
> 'JS_TypeOfValue':C:/msys/1.0/home/Administrador/swfdec-0.4.3/libswfdec/js/jsapi.c:598:
> undefined reference to '_imp__js_ObjectOps'
> C:/msys/1.0/home/Administrador/swfdec-0.4.3/libswfdec/js/jsapi.c:598:
> undefined reference to '_imp__js_FunctionClass'
>
> The lines are:
>
> JS_PUBLIC_API(JSType)
> JS_TypeOfValue(JSContext *cx, jsval v)
> {
>     JSType type;
>     JSObject *obj;
>     JSObjectOps *ops;
>     JSClass *clasp;
>
>     CHECK_REQUEST(cx);
>     if (JSVAL_IS_OBJECT(v)) {
>         /* XXX JSVAL_IS_OBJECT(v) is true for null too! Can we change ECMA? */
>         obj = JSVAL_TO_OBJECT(v);
>         if (obj &&
>             (ops = obj->map->ops,
>              ops == &js_ObjectOps //***ERROR IN THIS LINE****/
>               ? (clasp = OBJ_GET_CLASS(cx, obj),
>                 clasp->call || clasp == &js_FunctionClass)
>              : ops->call != NULL)) {
>             type = JSTYPE_FUNCTION;
>         } else {
> #ifdef NARCISSUS
>             /* XXX suppress errors/exceptions */
>             OBJ_GET_PROPERTY(cx, obj,
>                              (jsid)cx->runtime->atomState.callAtom,
>                              &v);
>             if (JSVAL_IS_FUNCTION(cx, v))
>                 type = JSTYPE_FUNCTION;
>             else
> #endif
>             type = JSTYPE_OBJECT;
>         }
>     } else if (JSVAL_IS_NUMBER(v)) {
>         type = JSTYPE_NUMBER;
>     } else if (JSVAL_IS_STRING(v)) {
>         type = JSTYPE_STRING;
>     } else if (JSVAL_IS_BOOLEAN(v)) {
>         type = JSTYPE_BOOLEAN;
>     } else {
>         type = JSTYPE_VOID;
>     }
>     return type;
> }
>
> In google I find
> http://osdir.com/ml/gnu.mingw.user/2002-10/msg00556.html, but I`m
> novice and when I tried copy the solution don`t work it.
>
> Thank you for you help.
>
> --
> Att,
>
> Helbert Darío Rico Lugo
> SCJP 5.0
> Alma Technologies
> jhelbert at gmail.com
> skype:helbert.rico
> http://jhelbert.blogspot.com
> _______________________________________________
> Swfdec mailing list
> Swfdec at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/swfdec
>


More information about the Swfdec mailing list