Wednesday, May 11, 2011

installing swftool decompile swf on ubuntu

 update!! why waste your time when you can do it online
http://www.showmycode.com/


download the file from here
http://www.swftools.org/

http://wiki.swftools.org/index.php/FAQ

cd Downloads
 cd swftools-0.9.1
./configure


http://docs.alfresco.com/3.4/topic/com.alfresco.Enterprise_3_4_0.doc/tasks/swftool-install-lin.html


checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc supports lazy variable declaration... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gzip... gzip
checking host system type... (cached) i686-pc-linux-gnu
checking for target system...
checking for sin in -lm... yes
checking for deflate in -lz... no

ERROR:
You need zlib to compile swftools


apt-cache search --names-only zlib.*-dev

http://forum.soft32.com/linux/zlib-compile-swftools-ftopict440871.html

zlib1g-dev - compression library - development
libghc6-bzlib-dev - Haskell bindings to the bzip2 library
libghc6-zlib-dev - Compression and decompression in the gzip and zlib formats

Zlib     1.2.3           compression / decompression library
http://gnuwin32.sourceforge.net/packages.html


(Linux) Before you compile, ensure that the following packages are installed on your machine:

    zlib-devel
    libjpeg-devel
    giflib-devel
    freetype-devel
    gcc
    gcc-c++

http://docs.alfresco.com/3.4/topic/com.alfresco.Enterprise_3_4_0.doc/tasks/swftool-install-lin.html


 apt-get install zlib1g-dev
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? (did not add sudo)


sudo apt-get install zlib1g-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  zlib1g-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 160 kB of archives.
After this operation, 426 kB of additional disk space will be used.
Get:1 ftp://ftp.iitb.ac.in/distributions/ubuntu/archives/ natty/main zlib1g-dev i386 1:1.2.3.4.dfsg-3ubuntu3 [160 kB]
Fetched 160 kB in 8s (18.7 kB/s)                                             
Selecting previously deselected package zlib1g-dev.
(Reading database ... 134852 files and directories currently installed.)
Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Setting up zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu3) ...



 ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether gcc supports lazy variable declaration... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gzip... gzip
checking host system type... (cached) i686-pc-linux-gnu
checking for target system...
checking for sin in -lm... yes
checking for deflate in -lz... yes
checking for PDF_open_file in -lpdf... no
checking for jpeg_write_raw_data in -ljpeg... no
checking for DGifOpen in -lungif... no
checking for DGifOpen in -lgif... no
checking for zzip_file_open in -lzzip... no
checking for byte order... little endian
checking whether system() can handle command substitution... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for sys/stat.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking sys/bsdtypes.h usability... no
checking sys/bsdtypes.h presence... no
checking for sys/bsdtypes.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking pdflib.h usability... no
checking pdflib.h presence... no
checking for pdflib.h... no
checking zzip/lib.h usability... no
checking zzip/lib.h presence... no
checking for zzip/lib.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for boolean... no
checking for popen... yes
checking for wcschr... yes
checking for wcsdup... yes
checking for mkstemp... yes
checking for stat... yes
checking for mmap... yes
checking for lrand48... yes
checking for rand... yes
checking for srand48... yes
checking for srand... yes
checking for bcopy... yes
checking for bzero... yes
checking for time... yes
checking for getrusage... yes
checking for mallinfo... yes
checking for open64... yes
checking for calloc... yes
checking size of signed char... 1
checking size of signed short... 2
checking size of signed... 4
checking size of signed long long... 8
checking size of void*... 4
checking for freetype-config... no
checking for FT_Init_FreeType in -lfreetype... no
checking ft2build.h usability... no
checking ft2build.h presence... no
checking for ft2build.h... no
checking freetype/freetype.h usability... no
checking freetype/freetype.h presence... no
checking for freetype/freetype.h... no
checking for FcInit in -lfontconfig... no
checking fontconfig.h usability... no
checking fontconfig.h presence... no
checking for fontconfig.h... no
checking for fftw_plan_dft_r2c_2d in -lfftw3... no
checking fftw3.h usability... no
checking fftw3.h presence... no
checking for fftw3.h... no
checking for lame_init in -lmp3lame... no
checking lame.h usability... no
checking lame.h presence... no
checking for lame.h... no
checking whether the filesystem normalizes file names... no
checking for avifile-config... no
checking whether we can compile the avifile test program... no
checking for Python.h... nope
checking for ruby... no
checking for ruby's include directory... 'unknown'
checking ruby.h usability... no
checking ruby.h presence... no
checking for ruby.h... no
checking whether we should compile the ruby module... no
checking for missing libraries...  jpeglib ungif jpeglib.h freetype gif_lib.h
***************************************************
* The following headers/libraries are missing:  jpeglib ungif jpeglib.h freetype gif_lib.h
* Disabling pdf2swf tool...
* Disabling jpeg2swf tool...
* Disabling gif2swf tool...
***************************************************
configure: creating ./config.status
config.status: creating Makefile.common
config.status: WARNING:  'Makefile.common.in' seems to ignore the --datarootdir setting
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/action/Makefile
config.status: creating src/Makefile
config.status: creating swfs/Makefile
config.status: creating lib/readers/Makefile
config.status: creating config.h


http://wiki.swftools.org/index.php/FAQ

3 comments:

  1. Please take a look at this: https://answers.launchpad.net/ubuntu/+question/20655

    ReplyDelete
  2. .Hello,

    I tried doing that which was suggested in the link - apt-get install libjpeg62-dev, much better than before though. I'm installing swftools 0.9.1 on ubuntu 11.10 - missing less things than before now though. Thanks.

    checking for missing libraries... ungif freetype gif_lib.h
    ***************************************************
    * The following headers/libraries are missing: ungif freetype gif_lib.h
    * Disabling pdf2swf tool...
    * Disabling gif2swf tool...
    ***************************************************
    configure: creating ./config.status
    config.status: creating Makefile.common
    config.status: WARNING: 'Makefile.common.in' seems to ignore the --datarootdir setting
    config.status: creating Makefile
    config.status: creating lib/Makefile
    config.status: creating lib/action/Makefile
    config.status: creating src/Makefile
    config.status: creating swfs/Makefile
    config.status: creating lib/readers/Makefile
    config.status: creating config.h

    ReplyDelete
  3. Are you monetizing your exclusive file uploads?
    Did you know ShareCash will pay you an average of $0.50 per file download?

    ReplyDelete