[BLFS Trac] #2182: Building graphviz-2.8 with Java Bindings

BLFS Trac trac at linuxfromscratch.org
Sun Oct 22 11:46:31 PDT 2006

#2182: Building graphviz-2.8 with Java Bindings
 Reporter:  teewan at yahoo.com        |        Owner:  randy at linuxfromscratch.org
     Type:  defect                  |       Status:  assigned                  
 Priority:  normal                  |    Milestone:  6.2                       
Component:  BOOK                    |      Version:  SVN                       
 Severity:  normal                  |   Resolution:                            
 Keywords:  graphviz java bindings  |  
Comment (by randy at linuxfromscratch.org):

 A bit more on this one:

 I renamed my existing GCC version of the jni header so that configure
 would not find it. Good so far, and the JAVA bindings don't get created
 as configure doesn't know to look in $JAVA_HOME.

 Now I'm not sure that the JAVA_LIBS or JAVA_INCLUDES vars even need to
 be set. I can compile just fine with them being empty. Best I can tell
 they serve no purpose.

 I simply run the following sed before building the package IAW the BLFS
 book and it seems to be fine. Unless there is some objection (then please
 reopen this ticket), I am going to update the Graphviz instructions to
 include the following sed command:

 sed -i 's|JAVA_LIBS=|& \
 if test -n "$JAVA_HOME"; then \
   CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/linux" \
 fi|' configure

 This simple sed adds enough to the configure script so that it can find
 and utilize the JDK and build the JAVA bindings.

Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2182>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch

More information about the blfs-book mailing list