Code Comments
Programming Forum and web based access to our favorite programming groups.I am trying to compile an application that needs X pixmaps. I do not have root on the machine I'm using so does anyone know where I can get xpm.h and how I can tell gcc to compile in the local version which I'll download? checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for main in -lXpm... no checking for X11/xpm.h... no Zach
Post Follow-up to this messageZach wrote: > I am trying to compile an application that needs X pixmaps. I do not > have root on the machine I'm using so does anyone know where I can get > xpm.h and how I can tell gcc to compile in the local version which > I'll download? > > checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include > checking for main in -lXpm... no > checking for X11/xpm.h... no > Which OS? It's under /usr/X11/include/X11/ on Solaris. -- Ian Collins.
Post Follow-up to this message>I am trying to compile an application that needs X pixmaps. I do not >have root on the machine I'm using so does anyone know where I can get >xpm.h and how I can tell gcc to compile in the local version which >I'll download? On my FreeBSD system, this include file comes from the libXpm package, so that may be what you need to download. It was installed in /usr/local/include/X11/xpm.h, but that detail is probably local to FreeBSD. >checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include >checking for main in -lXpm... no >checking for X11/xpm.h... no This can be a pain with Configure files, but if you put the headers in /home/joe/extraincludes and pass the flag -I/home/joe/extraincludes to all the compilations (maybe via the make CFLAGS setting) gcc should find them. The same applies to putting libraries in /home/joe/extralibs and passing -L/home/joe/extralibs to all the link steps. (With dynamic linking it may be a bit trickier). Ordering of multiple -I and -L flags matters. However, if you keep the names unique, it will not be able to find a "wrong" one.
Post Follow-up to this messageZach <netrek@gmail.com> writes: > I am trying to compile an application that needs X pixmaps. I do not > have root on the machine I'm using so does anyone know where I can get > xpm.h and how I can tell gcc to compile in the local version which > I'll download? > > checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include > checking for main in -lXpm... no > checking for X11/xpm.h... no If you are using some flavour of Linux, this indicates that the "development" package for the XPM library needs to be installed. You would need to install libxpm-dev -- the exact command varies between systems so I'll stop there. -- Ben.
Post Follow-up to this messageOn Mar 30, 12:20 am, Ian Collins <ian-n...@hotmail.com> wrote: > Zach wrote: > > Which OS? Linux 2.6.20 kernel. Zach
Post Follow-up to this messageOn Mar 30, 7:11 am, Ben Bacarisse <ben.use...@bsb.me.uk> wrote: > > If you are using some flavour of Linux, this indicates that the > "development" package for the XPM library needs to be installed. You > would need to install libxpm-dev -- the exact command varies between > systems so I'll stop there. Hi Ben, The problem is I cannot install libxpm-dev (it is a Debian distro I'm using) because I have just a regular user account and not root. So I need a local version. Zach
Post Follow-up to this messageOn Mar 30, 12:36 am, gordonb.32...@burditt.org (Gordon Burditt) wrote: > > On my FreeBSD system, this include file comes from the libXpm package, > so that may be what you need to download. It was installed in > /usr/local/include/X11/xpm.h, but that detail is probably local > to FreeBSD. Hi Gordon, Ok so I need libXpm. Does that include the library and header (include) files? > > > This can be a pain with Configure files, but if you put the headers > in /home/joe/extraincludes and pass the flag -I/home/joe/extraincludes > to all the compilations (maybe via the make CFLAGS setting) gcc > should find them. The same applies to putting libraries in > /home/joe/extralibs and passing -L/home/joe/extralibs to all the > link steps. (With dynamic linking it may be a bit trickier). > > Ordering of multiple -I and -L flags matters. However, if you keep > the names unique, it will not be able to find a "wrong" one. Ah. This page [1] told me I could find it at [2] and I see a libXpm-4.7.tar.gz but it's from June 29th, 1996! Do you know where I can find a more recent version? I would have to compile it in my $HOME directory since I don't have root access. [1] http://koala.ilog.fr/lehors/xpm.html [2] ftp://ftp.x.org/contrib/libraries/ Zach
Post Follow-up to this messageZach wrote: > On Mar 30, 7:11 am, Ben Bacarisse <ben.use...@bsb.me.uk> wrote: > > Hi Ben, > > The problem is I cannot install libxpm-dev (it is a Debian distro I'm > using) because I have just a regular user account and not root. So I > need a local version. > Then get the source for the package, or the package and pull out the files you require. -- Ian Collins.
Post Follow-up to this messageZach wrote: > Ah. This page [1] told me I could find it at [2] and I see a > libXpm-4.7.tar.gz but it's from June 29th, 1996! Do you know where I > can find a more recent version? I would have to compile it in my $HOME > directory since I don't have root access. That could actually be the most recent version. It's just a simple format for storing images. Also, if you plan to use the header files to build a binary, and if you want the binary to work with the library that is installed on your system, then instead of looking for the latest version, you should probably look for the exact version that is installed on your machine. If you are on a Linux system that uses the RPM package format, you might be able to find out what version is installed by doing something like "rpm -qa | grep -i libxpm". Another theory is to figure out what Linux distribution you're using, then download the binary that contains the headers that you need. (Often a library called "foo" will be split up into two packages, one called "libfoo" and one called "libfoo-devel", with the former containing only those parts that are necessary to use at runtime and the latter containing only those parts that are needed when compiling something against the library.) Although not having root access will probably prevent you from installing it, you may still be able to extract the files out of the package and manually put them into your home directory. For example, with the RPM format, you could probably use the "rpm2cpio" command to get a cpio archive out of the RPM file, then use the "cpio" command to extract that archive into your home directory. - Logan
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.