Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

xpm.h ?
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

Report this thread to moderator Post Follow-up to this message
Old Post
Zach
03-30-08 10:01 AM


Re: xpm.h ?
Zach 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.

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Collins
03-30-08 10:01 AM


Re: xpm.h ?
>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.




Report this thread to moderator Post Follow-up to this message
Old Post
Gordon Burditt
03-30-08 10:01 AM


Re: xpm.h ?
Zach <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.

Report this thread to moderator Post Follow-up to this message
Old Post
Ben Bacarisse
03-30-08 01:17 PM


Re: xpm.h ?
On Mar 30, 12:20 am, Ian Collins <ian-n...@hotmail.com> wrote:
> Zach wrote:
>
> Which OS?

Linux 2.6.20 kernel.

Zach

Report this thread to moderator Post Follow-up to this message
Old Post
Zach
03-31-08 02:11 AM


Re: xpm.h ?
On 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

Report this thread to moderator Post Follow-up to this message
Old Post
Zach
03-31-08 02:12 AM


Re: xpm.h ?
On 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

Report this thread to moderator Post Follow-up to this message
Old Post
Zach
03-31-08 02:12 AM


Re: xpm.h ?
Zach 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.

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Collins
03-31-08 02:12 AM


Re: xpm.h ?
Zach 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

Report this thread to moderator Post Follow-up to this message
Old Post
Logan Shaw
04-01-08 09:47 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:10 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.