Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Need help installing Cairo...

  1. #1
    Join Date
    Oct 2006
    Beans
    349
    Distro
    Ubuntu 12.04 Precise Pangolin

    Need help installing Cairo...

    Hey y'all, I wanted to install GTK so I could use it with Perl. So I downloaded the source and the other dependencies, but when I try to install the Cairo (library?), I get this stuff when I try to run make:
    Code:
    cairo-font.c: In function '_cairo_toy_font_face_scaled_font_create':
    cairo-font.c:424: error: 'CAIRO_SCALED_FONT_BACKEND_DEFAULT' undeclared (first use in this function)
    cairo-font.c:424: error: (Each undeclared identifier is reported only once
    cairo-font.c:424: error: for each function it appears in.)
    make[3]: *** [cairo-font.lo] Error 1
    make[3]: Leaving directory `/home/foo/Desktop/cairo-1.2.6/src'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/foo/Desktop/cairo-1.2.6/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/foo/Desktop/cairo-1.2.6'
    make: *** [all] Error 2
    This is my first go at compiling from source, so I have no idea of what to do.
    <feebleVoice>help...</feebleVoice>
    thall

  2. #2
    Join Date
    Oct 2006
    Beans
    349
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help installing Cairo...

    Update: I noticed when I run configure, it tells me that I need a font backend and to install Free Type and Fontconfig(?). I've downloaded and installed Free Type and I've downloaded Fontconfig, but THAT tells me I need libxml-2.0. I've looked in Synaptic and it says I have libxml2. Configure also tells me I could change the environment variable for PKG_CONFIG_PATH... or something like that. How would I go about changing that so I could install Fontconfig so I could install Cairo so I could install Gtk???
    thall

  3. #3
    Join Date
    Jul 2005
    Beans
    1,535
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Need help installing Cairo...

    You should be using synaptic (or apt or aptitude) to install these packages, it sounds like you are not. For example, for the GTK development files, install the package libgtk2.0-dev,
    Code:
    sudo aptitude install libgtk2.0-dev

    For freetype there is libfreetype6-dev. Basically search for packages with the -dev suffix.
    When I invented the Web, I didn't have to ask anyone's permission.
    ~Tim Berners-Lee on Net Neutrality
    -------------------------------------
    Visit the Ubuntu Programming IRC-channel at #ubuntu-programming (chat.freenode.net).

  4. #4
    Join Date
    Jul 2005
    Beans
    1,535
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Need help installing Cairo...

    Oh, an looking at your thread title, for Cairo you can install libcairo2 and if you want the development files, libcairo2-dev.
    When I invented the Web, I didn't have to ask anyone's permission.
    ~Tim Berners-Lee on Net Neutrality
    -------------------------------------
    Visit the Ubuntu Programming IRC-channel at #ubuntu-programming (chat.freenode.net).

  5. #5
    Join Date
    Oct 2006
    Beans
    349
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help installing Cairo...

    Sounds cool, I'll try it out. I'm guessing it doesn't matter if I've already install Pango, Glib, Free Type, and atk from source?

    BTW, mucho thank you for the reply!
    Last edited by geek_Man; January 5th, 2007 at 12:31 AM.
    thall

  6. #6
    Join Date
    Jul 2005
    Beans
    1,535
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Need help installing Cairo...

    You might get conflicts from the libs you installed by source with the ones installed by ubuntu. I would recommend using the libs in the repositories unless you absolutely need a more recent version for something specific.
    When I invented the Web, I didn't have to ask anyone's permission.
    ~Tim Berners-Lee on Net Neutrality
    -------------------------------------
    Visit the Ubuntu Programming IRC-channel at #ubuntu-programming (chat.freenode.net).

  7. #7
    Join Date
    Oct 2006
    Beans
    349
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help installing Cairo...

    Is there a way to remove the libs installed by source?

    Also, what's special about *-dev packages? Would I need them for something?
    Last edited by geek_Man; January 4th, 2007 at 04:37 PM.
    thall

  8. #8
    Join Date
    Oct 2006
    Beans
    349
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help installing Cairo...

    Okay, people, guess what? I already had Gtk installed, only it was Gtk2. Excuse me while I go kick myself to death...
    ...
    ...
    ...
    Thanks!
    thall

  9. #9
    Join Date
    Jul 2005
    Beans
    1,535
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Need help installing Cairo...

    Quote Originally Posted by geek_Man View Post
    Is there a way to remove the libs installed by source?
    If you're lucky the maintainers wrote an uninstall script,
    Code:
    sudo make uninstall
    . If not you have to manually find the installed files and delete by hand.

    Also, what's special about *-dev packages? Would I need them for something?
    the -dev packages install what is needed for building your own software against their libraries. They usually consist of the headers and shared libraries.
    When I invented the Web, I didn't have to ask anyone's permission.
    ~Tim Berners-Lee on Net Neutrality
    -------------------------------------
    Visit the Ubuntu Programming IRC-channel at #ubuntu-programming (chat.freenode.net).

  10. #10
    Join Date
    Oct 2006
    Beans
    349
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Need help installing Cairo...

    Thanks, man!
    thall

Page 1 of 2 12 LastLast

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
  •