URN Logo
UNIX Resources » Linux » Linux Forum » General Linux Discussions » Page.14 » GTK - How do I install libraries on non-X debian system?
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
GTK - How do I install libraries on non-X debian system?
Subject: GTK - How do I install libraries on non-X debian system?
Author: Mark Hobley    Posted: 2004-10-16 08:07:58    Length: 1,353 byte(s)
[Original] [Print] [Top]
I have a computer on my network which I will be using to compile and build
software packages. It does not have X installed, since it is accessed via a
telnet session.

I want to install the GTK libraries so that I can compile an "Hello World"
program that will be copied to another computer for execution.

Using dselect on the build machine, I select the component:

libgtk2.0-dev (opt, libdevel)

dselect wants to install X infrastructure components on my computer.

For example:

dselect wants to install
x-utils,x-ttcidfont-conf,fontconfig,deforma,ucf,xfree86common and loads of
other stuff.

Is there a mistake in the dependency tree somewhere?

All I want to do is compile against the libraries. I don't want X components
or infrastructure on the machine.

How do I install just the libraries and headers that are required for
compilation?

Thanks in advance to anyone who can help.

Regards,

Mark.

--

Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Reply to: markhobley at hotpop dot do_not_type_this_bit com

http://markhobley.yi.org/

[Original] [Print] [Top]
Subject: GTK - How do I install libraries on non-X debian system?
Author: Roger Leigh    Posted: 2004-10-16 08:52:46    Length: 4,842 byte(s)
[Original] [Print] [Top]
markhobley@hotpop.deletethisbit.com (Mark Hobley) writes:

QUOTE
I want to install the GTK libraries so that I can compile an "Hello World"
program that will be copied to another computer for execution.

Using dselect on the build machine, I select the component:

libgtk2.0-dev (opt, libdevel)

dselect wants to install X infrastructure components on my computer.

For example:

dselect wants to install
x-utils,x-ttcidfont-conf,fontconfig,deforma,ucf,xfree86common and loads of
other stuff.

Is there a mistake in the dependency tree somewhere?

No.  libgtk depends upon a number of X and font libraries:

$ ldd /usr/lib/libgtk-x11-2.0.so
        libgdk_pixbuf-2.0.so.0 =] /usr/lib/libgdk_pixbuf-2.0.so.0 (0x402e6000)
        libgdk-x11-2.0.so.0 =] /usr/lib/libgdk-x11-2.0.so.0 (0x402fd000)
        libX11.so.6 =] /usr/X11R6/lib/libX11.so.6 (0x4036e000)
        libpangoxft-1.0.so.0 =] /usr/lib/libpangoxft-1.0.so.0 (0x40435000)
        libpangox-1.0.so.0 =] /usr/lib/libpangox-1.0.so.0 (0x4043a000)
        libpango-1.0.so.0 =] /usr/lib/libpango-1.0.so.0 (0x40446000)
        libatk-1.0.so.0 =] /usr/lib/libatk-1.0.so.0 (0x4047b000)
        libgobject-2.0.so.0 =] /usr/lib/libgobject-2.0.so.0 (0x40497000)
        libgmodule-2.0.so.0 =] /usr/lib/libgmodule-2.0.so.0 (0x404d1000)
        libdl.so.2 =] /lib/tls/libdl.so.2 (0x404d5000)
        libglib-2.0.so.0 =] /usr/lib/libglib-2.0.so.0 (0x404d8000)
        libm.so.6 =] /lib/tls/libm.so.6 (0x40557000)
        libc.so.6 =] /lib/tls/libc.so.6 (0x4057a000)
        libXrandr.so.2 =] /usr/X11R6/lib/libXrandr.so.2 (0x406b6000)
        libXi.so.6 =] /usr/X11R6/lib/libXi.so.6 (0x406ba000)
        libXext.so.6 =] /usr/X11R6/lib/libXext.so.6 (0x406c2000)
        libXft.so.2 =] /usr/lib/libXft.so.2 (0x406d0000)
        libfreetype.so.6 =] /usr/lib/libfreetype.so.6 (0x406e2000)
        libz.so.1 =] /usr/lib/libz.so.1 (0x4074f000)
        libfontconfig.so.1 =] /usr/lib/libfontconfig.so.1 (0x40762000)
        libXcursor.so.1 =] /usr/lib/libXcursor.so.1 (0x40789000)
        libXrender.so.1 =] /usr/lib/libXrender.so.1 (0x40792000)
        libpangoft2-1.0.so.0 =] /usr/lib/libpangoft2-1.0.so.0 (0x4079a000)
        /lib/ld-linux.so.2 =] /lib/ld-linux.so.2 (0x80000000)
        libexpat.so.1 =] /usr/lib/libexpat.so.1 (0x407c0000)

so you need the basic X11 libs installed in order to compile and link
stuff.  You aren't installing an X server, just the base libraries
required for X11 /clients/.

QUOTE
All I want to do is compile against the libraries. I don't want X components
or infrastructure on the machine.

You need the client libraries to talk to the X server, render and
layout fonts etc..

QUOTE
How do I install just the libraries and headers that are required for
compilation?

What you are doing is fine.

apt-get install libgtk2.0-dev libgtk2.0-doc

You might as well install glade-2 as well if you're doing development.



BTW, rather than copying to another machine for testing, why not use
NFS?  This will make development a little more rapid ;-)


Regards,
Roger

--
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.

[Original] [Print] [Top]
« Previous thread
How do I compile a windows executable on Linux?
General Linux Discussions
Page. 14
Next thread »
MSN IM; can't see people on the sabe subnet as me
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:16:40, cost 0.09185791015625 ms.