<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Le 21/09/2010 11:33, Collette yann a écrit :
    <blockquote cite="mid:4C987BDB.201@scilab.org" type="cite">convert
      all the C mexfunctions into scilab C gateway
      functions</blockquote>
    Thanks a lot. The svn tip were particularly usefull. I assume I have
    to use the function : <b>ilib_mex_build </b>?<br>
    <br>
    After download, I changed the scilab current directory to where the
    .c files are located and tried :<br>
    <br>
ilib_mex_build('libta',['ta_willr','TA_WILLR','cmex'],[],['/usr/include/ta-lib/ta_libc.h'],[],'-L/usr/lib64/','','');<br>
    <br>
    I get the <b>error</b> :<br>
------------------------------------------------------------------------------------------------------------------------------------<br>
       Génère un fichier gateway<br>
       Génère un fichier loader<br>
       Génère un Makefile<br>
       ilib_gen_Make : Copie les fichiers de compilation (Makefile*,
    libtool...) vers TMPDIR<br>
       ilib_gen_Make : Copie libta.c vers TMPDIR<br>
       ilib_gen_Make : Copie TA_WILLR.c vers TMPDIR<br>
       ilib_gen_Make : configure : Génère le Makefile.<br>
       ilib_gen_Make : Modification du Makefile dans TMPDIR.<br>
       Exécute le makefile<br>
    ilib_compile: Une erreur a été detectée lors de la compilation<br>
     <br>
    !TA_WILLR.c:1:22: error: ta_libc.h: No such file or
    directory                !<br>
    !                                                                           
    !<br>
    !TA_WILLR.c: In function
    'mex_TA_WILLR':                                     !<br>
    !                                                                           
    !<br>
    !TA_WILLR.c:46: error: 'TA_RetCode' undeclared (first use in this
    function)  !<br>
    !                                                                           
    !<br>
    !TA_WILLR.c:46: error: (Each undeclared identifier is reported only
    once     !<br>
    !                                                                           
    !<br>
    !TA_WILLR.c:46: error: for each function it appears
    in.)                     !<br>
    !                                                                           
    !<br>
    !TA_WILLR.c:46: error: expected ';' before
    'retCode'                         !<br>
    !                                                                           
    !<br>
    !TA_WILLR.c:87: error: 'retCode' undeclared (first use in this
    function)     !<br>
    !                                                                           
    !<br>
    !make: *** [TA_WILLR.lo] Erreur
    1                                            !<br>
    <br>
    ilib_compile : La commande était :<br>
    make  CFLAGS="-I/usr/share/scilab//../../include/scilab/ 
    -DmexFunction=mex_$* "
    CXXFLAGS="-I/usr/share/scilab//../../include/scilab/ 
    -DmexFunction=mex_$* " LDFLAGS="-L/usr/lib64/"
    FFLAGS="-I/usr/share/scilab//../../include/scilab/ 
    -Dmexfunction=mex$* "<br>
       Génère un fichier cleaner<br>
 ------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
    <br>
    Obviously, I don't use the call parameters correctly. But the
    documentation here :
    <a class="moz-txt-link-freetext" href="http://www.scilab.org/product/man/ilib_mex_build.html">http://www.scilab.org/product/man/ilib_mex_build.html</a> is not enough
    informative for me.<br>
    <br>
    My TA lib is like this :<br>
 ------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
    * Contents of sci-libs/ta-lib-0.4.0:<br>
    /usr<br>
    /usr/bin<br>
    /usr/bin/ta-lib-config<br>
    /usr/include<br>
    /usr/include/ta-lib<br>
    /usr/include/ta-lib/ta_abstract.h<br>
    /usr/include/ta-lib/ta_common.h<br>
    /usr/include/ta-lib/ta_defs.h<br>
    /usr/include/ta-lib/ta_func.h<br>
    /usr/include/ta-lib/ta_libc.h<br>
    /usr/lib64<br>
    /usr/lib64/libta_lib.a<br>
    /usr/lib64/libta_lib.la<br>
    /usr/lib64/libta_lib.so -> libta_lib.so.0.0.0<br>
    /usr/lib64/libta_lib.so.0 -> libta_lib.so.0.0.0<br>
    /usr/lib64/libta_lib.so.0.0.0<br>
 ------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
    <br>
    <b>Could you help or explain me which parameters I have to set and
      how please ?</b><br>
    <br>
    Regards,<br>
    <br>
    Laurent.<br>
    <br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>