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

BLFS Trac trac at linuxfromscratch.org
Thu Oct 12 04:45:49 PDT 2006


#2182: Building graphviz-2.8 with Java Bindings
------------------------------+---------------------------------------------
 Reporter:  teewan at yahoo.com  |       Owner:  blfs-book at linuxfromscratch.org
     Type:  defect            |      Status:  new                           
 Priority:  normal            |   Milestone:  6.2                           
Component:  BOOK              |     Version:  SVN                           
 Severity:  normal            |    Keywords:  graphviz java bindings        
------------------------------+---------------------------------------------
 graphviz-2.8's configure script does not seem to properly find your Java
 headers (i.e. jni.h) unless they are specifically located in your
 `/usr/include` directory.

 Simply passing configure a CPPFLAGS doesn't seem to do the trick, as the
 generated Makefiles still do not reference the additional include and
 library
 directories passed to it.

 A solution that seems to have worked for me is to run the following in the
 graphviz build directory (the one created by the tar command):

 {{{
 CPPFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux" \
 ./configure --prefix=/usr &&
 make JAVA_LIBS="$JAVA_HOME/lib" JAVA_INCLUDES="$JAVA_HOME/include"
 }}}

 And then, as supplied by BLFS (as user ''root''):

 {{{
 make install
 }}}

 and optionally

 {{{
 ln -v -s /usr/share/graphviz/doc \
          /usr/share/doc/graphviz-2.8
 }}}


 '''Note: ''' You must (and already should if you followed the BLFS
 instructions
 for configuring JDK) have an environment variable JAVA_HOME which
 references
 the prefix for your JDK installation.

-- 
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