Results 1 to 4 of 4

Thread: compiling SWFtools: freetype missing?

  1. #1
    Join Date
    Nov 2007
    Location
    Nijmegen, Netherlands
    Beans
    61
    Distro
    Ubuntu

    compiling SWFtools: freetype missing?

    I hope that this is the right board for this question.

    I am trying to install (compile from source) SWFtools at my Ubuntu 10.10 from the description at http://wiki.swftools.org/index.php/Installation

    With ./configure I got a couple of errors regarding zlib and missing libraries.
    Thanks to http://fixunix.com/debian/246537-nee...tml#post652955 I was able to find the missing zlib libraries using
    Code:
    apt-cache search --names-only zlib.*-dev
    zlib1g-dev - compression library - development
    Thanks to http://permalink.gmane.org/gmane.com...s.general/1922 I was able to install the needed image libraries with
    Code:
    sudo apt-get install libpng12-dev
    sudo apt-get install libgif-dev
    sudo apt-get install libjpeg62-dev
    However, after that I still get the error that freetype is missing
    Code:
    checking for missing libraries...  freetype
    ***************************************************
    * The following headers/libraries are missing:  freetype
    * Disabling pdf2swf 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
    config.status: config.h is unchanged
    When I try to install freetype using
    Code:
    sudo apt-get install freetype
    I get the following error:
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package freetype is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'freetype' has no installation candidate
    I guess that the freetype library is not in the repository anymore.
    How can I install it so that I can compile SWFtools ?
    Thanks in advance!
    Last edited by pe7er; August 9th, 2011 at 12:35 PM.
    Peter Martin - Joomla Open Source CMS specialist www.db8.nl from Nijmegen, The Netherlands
    OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu
    Linux User Group Nijmegen http://www.linuxnijmegen.nl/

  2. #2
    Join Date
    Jul 2011
    Location
    Vladivostok, Ru
    Beans
    128
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: compiling SWFtools: freetype missing?

    Quote Originally Posted by pe7er View Post

    When I try to install freetype using
    Code:
    sudo apt-get install freetype
    I get the following error:
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package freetype is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'freetype' has no installation candidate
    how about apt-get install freetype* ?
    Debian Chick

  3. #3
    Join Date
    Nov 2007
    Location
    Nijmegen, Netherlands
    Beans
    61
    Distro
    Ubuntu

    Re: compiling SWFtools: freetype missing?

    Quote Originally Posted by Kira_Belka View Post
    how about apt-get install freetype* ?
    Thanks very much Kira!
    You've solved my error with freetype!

    When I run the configure script (with "./configure") I get a warning that " 'Makefile.common.in' seems to ignore the --datarootdir setting". Do you know if that might give problems?
    Code:
    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
    After that I tried "make" and I got the error "g++: command not found".
    I solved that with
    Code:
    sudo apt-get install g++
    Now there seems to be one error that keeps me from finishing the "make" process:
    Code:
    cd src;make all
    make[1]: Entering directory `/home/pe7er/swftools/swftools-0.9.1/src'
    gcc -DHAVE_CONFIG_H wav2swf.o -o wav2swf ../lib/librfxswf.a ../lib/libbase.a -L/usr/local/lib -lungif -ljpeg -lz -lm  -lfreetype -lz
    debug enabled, not stripping wav2swf
    gcc -DHAVE_CONFIG_H png2swf.o -o png2swf ../lib/librfxswf.a ../lib/libbase.a -L/usr/local/lib -lungif -ljpeg -lz -lm  -lfreetype -lz
    png2swf.o: In function `MovieAddFrame':
    png2swf.c:(.text+0x1420): undefined reference to `swf_SetJPEGBits2'
    collect2: ld returned 1 exit status
    make[1]: *** [png2swf] Error 1
    make[1]: Leaving directory `/home/pe7er/swftools/swftools-0.9.1/src'
    make: *** [all] Error 2
    Do you know how to fix that?
    I'll try to find some solution with google...
    Peter Martin - Joomla Open Source CMS specialist www.db8.nl from Nijmegen, The Netherlands
    OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu
    Linux User Group Nijmegen http://www.linuxnijmegen.nl/

  4. #4
    Join Date
    Aug 2010
    Beans
    4

    Re: compiling SWFtools: freetype missing?

    I solved this by typing:

    make clean


    and then:

    make
    Last edited by tsarv; October 23rd, 2011 at 08:35 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •