[Bug 117324] New - Build fails when compiling Java sources
- From: bugzilla-daemon widget gnome org
- To: garnome-list gnome org
- Cc:
- Subject: [Bug 117324] New - Build fails when compiling Java sources
- Date: Sun, 13 Jul 2003 08:21:48 -0400 (EDT)
http://bugzilla.gnome.org/show_bug.cgi?id=117324
Summary: Build fails when compiling Java sources
Product: gnome-speech
Version: unspecified
OS: Linux
OS Details: kernel 2.4.21
Status: NEW
Status Whiteboard:
Keywords:
Resolution:
Severity: blocker
Priority: Normal
Component: general
AssignedTo: marc mulcahy sun com
ReportedBy: gianakas optonline net
When the build system attemts to compile the Java sources in
java/org/GNOME/Speech it fails. The files in org.GNOME.Speech need the
IDL-generated files in org.GNOME.Bonobo. The build system compiles the IDL
(and thus produces the files in org.GNOME.Bonobo), but fails to compile the
generated files and add org.GNOME.Bonobo to the classpath when compiling
org.GNOME.Speech.
The makefile below fixes this problem.
=== java/Makefile.am =================================================
if BUILD_JAVA_PACKAGE
GNOME_SPEECH_CLASS_FILES=org/GNOME/Speech/*.class
GNOME_SPEECH_JAVA_FILES=org/GNOME/Speech/*.java
GNOME_SPEECH_IDL_FILES = \
$(top_srcdir)/idl/GNOME_Speech_SynthesisDriver.idl
GNOME_BONOBO_CLASS_FILES = org/GNOME/Bonobo/*.class
GNOME_BONOBO_JAVA_FILES = org/GNOME/Bonobo/*.java
IDLJ_FLAGS = \
-emitAll \
-i $(BONOBO_ACTIVATION_IDL_DIR) \
-i $(top_srcdir)/idl
gnome-speech.jar: $(GNOME_BONOBO_CLASS_FILES)
$(GNOME_SPEECH_CLASS_FILES)
jar -cf gnome-speech.jar $(GNOME_BONOBO_CLASS_FILES)
$(GNOME_SPEECH_CLASS_FILES)
$(GNOME_SPEECH_CLASS_FILES): $(GNOME_BONOBO_CLASS_FILES)
$(GNOME_SPEECH_JAVA_FILES)
$(JAVAC) -classpath . $(GNOME_SPEECH_JAVA_FILES)
$(GNOME_SPEECH_JAVA_FILES):
$(IDLJ) \
$(IDLJ_FLAGS) \
-pkgPrefix GNOME org \
-pkgPrefix Bonobo org.GNOME \
-fallTie $(GNOME_SPEECH_IDL_FILES)
$(GNOME_BONOBO_CLASS_FILES): $(GNOME_BONOBO_JAVA_FILES)
$(JAVAC) $(GNOME_BONOBO_JAVA_FILES)
clean:
rm $(GNOME_SPEECH_JAVA_FILES)
rm $(GNOME_SPEECH_CLASS_FILES)
rm gnome-speech.jar
gnome_speech_jardir = \
$(prefix)/share/jar
gnome_speech_jar_DATA = \
gnome-speech.jar
endif
=======================================================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]