This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compile Kawa with readline


On 2011-08-02 13:43 +0800, Per Bothner wrote:
>    If you configured with `--enable-kawa-frontend', you may need to
> specify `READLINE_INCLUDE_PATH' or `READINE_LIB_PATH'.  For example on
> OS/X you need to do:
>      make READLINE_INCLUDE_PATH=-I/usr/local/unix/readline/include \
>           READINE_LIB_PATH=-L/usr/local/unix/readline/lib
>
> Could you verify that this works?

No luck.

bin/Makefile still contains

CLEANFILES = qexo kawa$(EXEEXT) kawa.sh kawa.bat kawa-bin$(EXEEXT) gckawa tmp *.stamp *.so *.la
READLINE_INCLUDE_PATH = 
READLINE_LIB_PATH = 
kawa_EXTRA_LIBS = -lncurses  # For Linux
#kawa_EXTRA_LIBS = -lcurses -lsocket # For Solaris2
INCLUDES = $(READLINE_INCLUDE_PATH)
kawa_LDADD = $(READLINE_LIB_PATH) -lreadline -lhistory $(kawa_EXTRA_LIBS)

and the error:

leo@localhost /Users/Shared/sources/kawa/bin$ make READLINE_INCLUDE_PATH='-I/usr/local/unix/readline/include' READINE_LIB_PATH='-L/usr/local/unix/readline/lib'
gcc -DJAVA='"java"' -DKAWALIB='"/usr/local/unix/kawa/share/java/kawa-1.11.jar"' -DKAWAJAR='"kawa-1.11.jar"' -DEXTRAPATH='"/Users/Shared/Development/android-sdk-mac_x86/platforms/android-13/android.jar:"' -I. -I/usr/local/unix/readline/include    -g -O2 -MT kawa.o -MD -MP -MF .deps/kawa.Tpo -c -o kawa.o kawa.c
mv -f .deps/kawa.Tpo .deps/kawa.Po
gcc -DJAVA='"java"' -DKAWALIB='"/usr/local/unix/kawa/share/java/kawa-1.11.jar"' -DKAWAJAR='"kawa-1.11.jar"' -DEXTRAPATH='"/Users/Shared/Development/android-sdk-mac_x86/platforms/android-13/android.jar:"' -I. -I/usr/local/unix/readline/include    -g -O2 -MT kawapath.o -MD -MP -MF .deps/kawapath.Tpo -c -o kawapath.o kawapath.c
kawapath.c: In function ‘get_classpath’:
kawapath.c:31: warning: field precision should have type ‘int’, but argument 5 has type ‘long int’
mv -f .deps/kawapath.Tpo .deps/kawapath.Po
gcc -o kawa  kawa.o kawapath.o  -lreadline -lhistory -lncurses   
ld: library not found for -lhistory
collect2: ld returned 1 exit status
make: *** [kawa] Error 1

Leo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]