[Swfdec] Compiling swfdec
Peter Carlson
pcarlson at kgisystems.com
Mon Jan 5 08:46:07 PST 2009
Benjamin,
Perhaps I don't understand autoconf (in fact I must admit I know nothing of
it coming from years and years of M$ Visual Studio). However here is what I
did:
./configure "CFLAGS=-DSWFDEC_DISABLE_DEBUG -DG_DISABLE_CHECKS
-DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS -O3" (Ohh not zero)
make
make install
ls -l /usr/local/lib/libswf*
-rw-r--r-- 1 root root 1794294 2009-01-05 08:43
/usr/local/lib/libswfdec-0.9.a
-rwxr-xr-x 1 root root 1155 2009-01-05 08:43
/usr/local/lib/libswfdec-0.9.la
lrwxrwxrwx 1 root root 22 2009-01-05 08:43
/usr/local/lib/libswfdec-0.9.so -> libswfdec-0.9.so.2.0.0
lrwxrwxrwx 1 root root 22 2009-01-05 08:43
/usr/local/lib/libswfdec-0.9.so.2 -> libswfdec-0.9.so.2.0.0
-rwxr-xr-x 1 root root 1207587 2009-01-05 08:43
/usr/local/lib/libswfdec-0.9.so.2.0.0
-rw-r--r-- 1 root root 53080 2009-01-05 08:43
/usr/local/lib/libswfdec-gtk-0.9.a
-rwxr-xr-x 1 root root 1339 2009-01-05 08:43
/usr/local/lib/libswfdec-gtk-0.9.la
lrwxrwxrwx 1 root root 26 2009-01-05 08:43
/usr/local/lib/libswfdec-gtk-0.9.so -> libswfdec-gtk-0.9.so.2.0.0
lrwxrwxrwx 1 root root 26 2009-01-05 08:43
/usr/local/lib/libswfdec-gtk-0.9.so.2 -> libswfdec-gtk-0.9.so.2.0.0
-rwxr-xr-x 1 root root 57623 2009-01-05 08:43
/usr/local/lib/libswfdec-gtk-0.9.so.2.0.0
running make / make install without the flags produces this:
-rw-r--r-- 1 root root 5571988 2009-01-05 08:32
/usr/local/lib/libswfdec-0.9.a
-rwxr-xr-x 1 root root 1155 2009-01-05 08:32
/usr/local/lib/libswfdec-0.9.la
lrwxrwxrwx 1 root root 22 2009-01-05 08:32
/usr/local/lib/libswfdec-0.9.so -> libswfdec-0.9.so.2.0.0
lrwxrwxrwx 1 root root 22 2009-01-05 08:32
/usr/local/lib/libswfdec-0.9.so.2 -> libswfdec-0.9.so.2.0.0
-rwxr-xr-x 1 root root 3507061 2009-01-05 08:32
/usr/local/lib/libswfdec-0.9.so.2.0.0
-rw-r--r-- 1 root root 253092 2009-01-05 08:32
/usr/local/lib/libswfdec-gtk-0.9.a
-rwxr-xr-x 1 root root 1339 2009-01-05 08:32
/usr/local/lib/libswfdec-gtk-0.9.la
lrwxrwxrwx 1 root root 26 2009-01-05 08:32
/usr/local/lib/libswfdec-gtk-0.9.so -> libswfdec-gtk-0.9.so.2.0.0
lrwxrwxrwx 1 root root 26 2009-01-05 08:32
/usr/local/lib/libswfdec-gtk-0.9.so.2 -> libswfdec-gtk-0.9.so.2.0.0
-rwxr-xr-x 1 root root 190314 2009-01-05 08:32
/usr/local/lib/libswfdec-gtk-0.9.so.2.0.0
Am I doing something wrong to not get the same 800k size as you?
Peter
PS...Can we post formatted text (html) to this list or only text?
> If you want to save size, adding -DSWFDEC_DISABLE_DEBUG to the CFLAGS
> - before running configure - will certainly help. It removes all
> debugging output. Other options that might save space at the cost of
> debuggability are -DG_DISABLE_CHECKS -DG_DISABLE_ASSERT
> -DG_DISABLE_CAST_CHECKS
> With all of them enabled and -O3 stripped, libswfdec is roughly twice
> as fast and libswfdec-0.9.so takes 892839 bytes here, which is a lot
> less than my 22.5MB for the non-stripped debug enabled libswfdec I
> usually use. ;)
More information about the Swfdec
mailing list