scilab / scilab2c

Tool capable to translate Scilab code into C code.
11 stars 14 forks source link

Error trying to install in scilab 6.0.1 #2

Open doquen opened 6 years ago

doquen commented 6 years ago

Hi, when trying to install on scilab 6.0.1 in Ubuntu 18.04 Machine, i get this error when running builder.sce:

genlib: Processing file: Scilab2CDeps.sci
at line   106 of function genlib             
at line    42 of function tbx_build_macros   ( /home/pablo/scilab-6.0.1/share/scilab/modules/modules_manager/macros/tbx_build_macros.sci line 56 )
in builtin                exec               ( /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/macros/findDeps/buildmacros.sce line -1 )
at line    10 of executed file /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/macros/buildmacros.sce
at line    13 of function tbx_builder        ( /home/pablo/scilab-6.0.1/share/scilab/modules/modules_manager/macros/tbx_builder.sci line 26 )
at line    36 of function tbx_builder_macros ( /home/pablo/scilab-6.0.1/share/scilab/modules/modules_manager/macros/tbx_builder_macros.sci line 51 )
at line    29 of executed file /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/builder.sce

scilab2ccode.deps.zranda=["drands","DoubleComplex","zreals",]
                                                            ^^
Error: syntax error, unexpected ]
genlib: Error in file /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/macros/findDeps/Scilab2CDeps.sci

I removed the "," after zreals, and then get the following error:

at line    24 of function genlib             
at line    42 of function tbx_build_macros   ( /home/pablo/scilab-6.0.1/share/scilab/modules/modules_manager/macros/tbx_build_macros.sci line 56 )
at line    -1 of executed file /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/macros/Hardware/RasberryPi/pwm/buildmacros.sce
at line    23 of executed file /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/macros/Hardware/RasberryPi/buildmacros.sce
at line    10 of executed file /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/macros/buildmacros.sce
at line    13 of function tbx_builder        ( /home/pablo/scilab-6.0.1/share/scilab/modules/modules_manager/macros/tbx_builder.sci line 26 )
at line    36 of function tbx_builder_macros ( /home/pablo/scilab-6.0.1/share/scilab/modules/modules_manager/macros/tbx_builder_macros.sci line 51 )
at line    29 of executed file /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/builder.sce

    else:
        ^^
Error: syntax error, unexpected :
genlib: Error in file /home/pablo/scilab-6.0.1/share/scilab/contrib/scilab2c/macros/Hardware/RasberryPi/pwm/RPI_pwmMode.sci.

removed the ":" after the else, and get this:

WARNING: tbx_build_localization: tbx_build_localization(name, path) is obsolete. Please use tbx_build_localization(path) instead.
Generating localization
-- Building for "en_US" --
Building help...

which is only a warning.. it's ok what i did?

doquen commented 6 years ago

Also, scilab_gui was buggie... i replaced

"value", [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ],

with:

"value",[1]

in line 180 of sci2c_gui.sce and apparently it's fixed.

SwizzleMaster commented 2 years ago

I also can't get this installed in release 6.x. Anyone working on updating this module to get it working? It would be nice to be able to use it without manually compiling. I'm just moving to scilab from the octave world so I'm not up to speed on how to do certain things.

Where's the documentation on how to build and install an atoms module from source ?