0

I'm on a network where I don't have root access, so everything I install is under a prefix ~/bin (actually referenced by its full path). So I have openbox working fine, which is what I'm using to send this from. Imlib2 I do ./configure --prefix=~/bin; make; make install. Then I run from the tint2 source directory

IMLIB2_CFLAGS=-i~/bin/include/Imlib2.h *only typoed here
export IMLIB2_CFLAGS
IMLIB2_LIBS=-l~/bin/lib/libImlib2.a
export IMLIB2_LIBS
./configure --prefix=~/bin

which leaves me with this charming message

checking for IMLIB2... yes
checking for imlib_context_set_display in -lImlib2... no
configure: error: Imlib2 must be built with X support

Edit:

So Imlib2 is now compiled --with-x and installed to the location I'm referencing. I am still receiving an identical error message.

4

2 回答 2

1

I'm guessing it's because I don't know what the flags are for the initial configure of imlib2?

Probably, yes. ./configure --help will usually give you advice on what to do (i.e., how to pass the correct information to the configure script; but you'll need to find out what that information is a la imlib2).

于 2009-09-22T19:56:49.980 回答
0

如果你的 Q 是准确的,你应该在第一行修正 CLFAGS 的拼写。

更一般地说,您可以使用:

CPPFLAGS=-I~/bin/include LDFLAGS=-L~/bin/lib ./configure ...

但是,正如公认的答案所暗示的那样,通常有一种直接的方法来指定必备软件包的位置。

另请参阅:Linking with a different .so file in Linux

于 2009-09-22T20:44:43.270 回答