[openbox] compiling openbox-2.1.2 on redhat-8.0

John Eckerdal john at hl.lu.se
Mon Oct 7 18:26:53 EDT 2002


On Mon, 7 Oct 2002, Ben Jansens wrote:

Me answering to two mails at the same time:

> > To adapt the 'Makefile' in /src and /util you first have to run
> > ./configure to create them.

You modify the Makefiles after configure creates them.

> > But in config.log (after running configure) I see the following:
> > 
> > configure:5232: gcc -o conftest -g -O2  -I/usr/X11R6/include
> > +-L/usr/X11R6/lib  -lSM -lICE conftest.c -lXft    -L/usr/X11R6/lib -lX11  -lXext
> > +>&5
> > /usr/bin/ld: cannot find -lXft
> > collect2: ld returned 1 exit status
> > configure:5235: $? = 1
> > configure: failed program was:
> > ne 5206 "configure"
> > #include "confdefs.h"

This is an expected error since RH ships Xft2, not Xft1 and also
Xft2 is not placed in the same directory as Xft1.

> > If I understand this correctly it says that necessary headers/libs from
> > Xft have not been found.
> > Can this still be corrected 'afterwards' by adapting the makefiles?
> > Must it not be corrected during configure itself?

No. configure only creates the Makefiles, what happens to them later on
is not something configure cares about.

> > In your solution you make use of a bash script from Xft-devel:
> > /usr/bin/xft-config.
> > Looking at the script it prescribes the syntax:
> > xft-config [OPTIONS] [LIBRARIES] but you only only suggest adding
> > 'xft-config --libs' and 'xft-config --cflags'.
> > Did you really mean that only this should be included or was I meant
> > to add the libraries, thus:
> > 'xft-config --libs /usr/lib' and 'xft-config --cflags /usr/include/Xft2/X11'.

No. Just
`xft-config --libs` to LDFLAGS
and
`xft-config --cflags` to CXXFLAGS
(there are a few to choose from, choose wisely. See the first mail).

Note that this is not ''-pair but a ``-pair. These are back-quotes
and using them will cause the Makefile to run the application.
My ` are at shift+(the key next to backspace)

> > I suspect that only including 'xft-config --libs' gives the necessary
> > libs to link to so that the paths themselves do not have to be added.

Yes. If you enclose it in ``, not ''.

[And finally]

> So, this is why its not working. You're trying to make it use Xft2,
> which redhatapparently has moved to before anyone else. See if you
> still have xft stuff around in /usr/X11R6 or if there are other xft 1
> packages. Or, if you do get it to go with Xft 2, let me know. But
> thats why the default build process is not working for you.

Xft2 works here OK here. The application compiles and runs and the
fonts looks OK I think. One of the utilities fails to compile though.
Have not looked into that one.
Openbox can be installed inspite of this failed compilation.

-- 
John Eckerdal                        the Assembly Gems page
                               http://www.df.lth.se/~john_e




More information about the openbox mailing list