Hello.

I ran into another little compile problem with japhar. I configured
and run from a different build directory and I got this error.


assume japhar is configured in japhar/build

running in japhar/build/progs/japhar

gcc -DVERSION=\"0.07\" -I/usr/dt/include -DWITH_MOTIF_AWT  -I/soft/X11R6.3/include 
-I../../../include -I../../../lib/libjni/include -I../../lib/libjni/include  -DDEBUG   
 -g -O2 -c ../../../progs/japhar/japhar.c
../../../progs/japhar/japhar.c:25: config.h: No such file or directory
make: *** [japhar.o] Error 1



I applied this patch to the Makefile


--- copy_Makefile       Sun Feb 21 19:35:42 1999
+++ Makefile    Sun Feb 21 19:36:11 1999
@@ -101,7 +101,7 @@
 japhar_LDADD =         $(top_builddir)/lib/libjni/src/libjni.la        
$(top_builddir)/lib/libruntime/libruntime.la         $(JVMDI_LIB)   
$(top_builddir)/arch/libarch.la         $(NATIVELIBS)       -L/usr/local/lib  -lSM 
-lICE  -L/soft/X11R6.3/lib -R/soft/X11R6.3/lib -L/usr/dt/lib -lXm -lXt  -lSM -lICE 
-lX11             -rpath /usr/dt/lib $(ZLIB) $(LIBFFI)
 
 
-INCLUDES =  $(X_CFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)/lib/libjni/include 
-I$(top_builddir)/lib/libjni/include  -DDEBUG
+INCLUDES =  $(X_CFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)/lib/libjni/include 
+-I$(top_builddir)/lib/libjni/include -I$(top_builddir)/include -DDEBUG
 
 DEFS =  -DVERSION=\"$(VERSION)\"
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs


Just add -I$(top_builddir)/include to the INCLUDES variable and it will
compile.



I have never used automake before so I am not sure if this is the correct way
to fix the .am file but here is a patch for that too.


--- copy_Makefile.am    Sun Feb 21 19:40:56 1999
+++ Makefile.am Sun Feb 21 19:40:58 1999
@@ -44,5 +44,5 @@
        $(NATIVELIBS) \
        -L/usr/local/lib @X_PRE_LIBS@ @X_LIBS@ $(ZLIB) $(LIBFFI)
 
-INCLUDES += $(X_CFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)/lib/libjni/include 
-I$(top_builddir)/lib/libjni/include @OS_DEFINE@
+INCLUDES += $(X_CFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)/lib/libjni/include 
+-I$(top_builddir)/lib/libjni/include -I$(top_builddir)/include @OS_DEFINE@
 DEFS += -DVERSION=\"$(VERSION)\"




I hope that helps
Mo DeJong
dejong at cs.umn.edu

Reply via email to