<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sylvestre Ledru a écrit :
<blockquote cite="mid:1268451291.14646.530.camel@zlarin" type="cite">
  <pre wrap="">Le vendredi 12 mars 2010 à 13:22 -0500, Jean-Pierre Dussault a écrit :
  </pre>
  <blockquote type="cite">
    <pre wrap="">Sylvestre Ledru a écrit :
    </pre>
    <blockquote type="cite">
      <pre wrap="">Le vendredi 12 mars 2010 à 11:11 -0500, Jean-Pierre Dussault a écrit :
  
      </pre>
      <blockquote type="cite">
        <pre wrap="">Hi!

I wish to compile scilab 5.2.1, but the configure crashes with the
message:
        configure: error: libjhdf5: Library missing (Cannot find
        symbol h5JNIFatalError). Check if libjhdf5 - C/Java (JNI)
        interface for HDF5 - is installed and if the version is
        correct. Note that you might have to update
        etc/librarypath.xml to provide the actual path the the JNI
        libraries.
Can someone please point out a work around for this problem. I saw
that the library is provided under thirdparty, but have no idea on
what to change for having it detected.
    
        </pre>
      </blockquote>
      <pre wrap="">The libjhdf5.so library should be available in the search patch of the
library. You can put this lib into scilab/source/tree/bin/
It should fix this problem.
  
      </pre>
    </blockquote>
    <pre wrap="">Uh,  I don't quite understand "scilab/source/tree/bin"...
    </pre>
  </blockquote>
  <pre wrap=""><!---->It is what I meant.

  </pre>
  <blockquote type="cite">
    <pre wrap="">In SCILAB_HOME/bin, I have:

    <a class="moz-txt-link-abbreviated" href="mailto:dussault@dussault-laptop:~/import/TstScilab/scilab-5.2.1src/bin$">dussault@dussault-laptop:~/import/TstScilab/scilab-5.2.1src/bin$</a> ls
    Atlas.spec  libgluegen-rt.so  libjogl_awt.so  libjogl.so  scilab-adv-cli
    bin.iss     _libjhdf5.so_       libjogl_cg.so   scilab      scilab-cli

    and it is readeable:
    -rw-r--r-- 1 dussault dussault  163604 2010-02-18 10:36 libjhdf5.so
    </pre>
  </blockquote>
  <pre wrap=""><!---->If the file is available, are you sure it is the right on architecture ?
(ie, libhdf5 is 32 bits for a 32 bits arch).
You can know that with the command file.

Anyway, to get the real error message which was causing the configure to
fail, have a look in the config.log. At the end, you will find the error
on the jhdf5 check.
  </pre>
</blockquote>
The error is:<br>
<blockquote>/usr/bin/ld: warning: libhdf5.so.6, needed by
./bin//libjhdf5.so, not found (try using -rpath or -rpath-link)<br>
./bin//libjhdf5.so: undefined reference to `H5E_NOTHDF5_g'<br>
./bin//libjhdf5.so: undefined reference to `H5E_CALLBACK_g'<br>
etc... many more undefined references...<br>
</blockquote>
The file  prerequirements-scilab-5.2.1-src.tar.gz  does include
bin/libjhdf5.so but NOT bin/libhdf5.so.6<br>
I copied all the  *hdf5* files from $SCILAB_HOME_bin/lib in
$SCILAB_HOME_src/bin, and configure stopped complaining. <br>
<br>
May I suggest to include all the required *hdf5* in
prerequirements-scilab-5.2.1-src.tar.gz ?<br>
<br>
Previously, I compiled with success using the --without-hdf5 option to
configure. Now, it compiles OK with hdf5.<br>
<br>
Thank you for pointing out to look at config.log.<br>
<br>
I have another question: why in the binary version is the path to the
toolboxes <br>
<blockquote>$SCILAB_HOME_bin/share/scilab/contrib<br>
</blockquote>
while in the src version, it is<br>
<blockquote>$SCILAB_HOME_src/contrib   ?<br>
  <br>
</blockquote>
Thank's again,<br>
<br>
JPD<br>
<br>
<blockquote cite="mid:1268451291.14646.530.camel@zlarin" type="cite">
  <pre wrap="">
Sylvestre


  </pre>
</blockquote>
<br>
</body>
</html>