<div dir="ltr">Hello Everyone,<div><br></div><div>I figured it may be useful to make a summary of the issues that I encountered as I made a conda package for Scilab. The information already exists in a couple of other threads but is scattered accross many messages. Hopefully, the core team will be able to resolve some of these for the next version of scilab.</div><div><br></div><div><b>1) </b>Only scilab-cli was included in the conda package, and not the graphical interface.</div><div><br></div><div>The reason is that scilab does not build with <b>openjdk</b> 11, and requires an older version that has not been packaged for conda.</div><div><br></div><div><b>2) </b>scilab does not build on OS X when using the <b>--without-matio</b> option.</div><div><br></div><div>The build ends with the following error:</div><div><font face="courier new, monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="courier new, monospace">ar: no archive members specified<br>usage:  ar -d [-TLsv] archive file ...<br>    ar -m [-TLsv] archive file ...<br>    ar -m [-abiTLsv] position archive file ...<br>    ar -p [-TLsv] archive [file ...]<br>    ar -q [-cTLsv] archive file ...<br>    ar -r [-cuTLsv] archive file ...<br>    ar -r [-abciuTLsv] position archive file ...<br>    ar -t [-TLsv] archive [file ...]<br>    ar -x [-ouTLsv] archive [file ...]<br>make[1]: *** [<a href="http://libscimatio-algo.la">libscimatio-algo.la</a>] Error 1</font></blockquote><div><br></div><div>Fortunately, we were able to package matio for conda-forge as well, so this error does not impact us anymore. However, I do think that we should be able to use that option.<br></div><div><br></div><div><b>3)</b> We cannot build headless scilab on OS X</div><div><br></div><div>It seems that we cannot build scilab with the <b>--without-gui </b>option on OS X. The build fails over the symbol <b>_initMacOSXEnv</b> not being found.</div><div><br></div><div>Stephane Mottelet proposed to apply a patch to the generated makefile after the configure stage to overcome that issue.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace">macmottelet-cr-0:<span class="gmail-il">scilab</span> mottelet$ diff -Naur Makefile.orig Makefile</font></div><div><font face="courier new, monospace">--- Makefile.orig    2019-04-01 11:55:47.000000000 +0200</font></div><div><font face="courier new, monospace">+++ Makefile    2019-04-01 11:56:12.000000000 +0200</font></div><div><font face="courier new, monospace">@@ -109,7 +109,7 @@</font></div><div><font face="courier new, monospace"> POST_UNINSTALL = :</font></div><div><font face="courier new, monospace"> build_triplet = x86_64-apple-darwin17.7.0</font></div><div><font face="courier new, monospace"> host_triplet = x86_64-apple-darwin17.7.0</font></div><div><font face="courier new, monospace">-bin_PROGRAMS = <span class="gmail-il">scilab</span>-bin$(EXEEXT) <span class="gmail-il">scilab</span>-<span class="gmail-il">cli</span>-bin$(EXEEXT)</font></div><div><font face="courier new, monospace">+bin_PROGRAMS = <span class="gmail-il">scilab</span>-<span class="gmail-il">cli</span>-bin$(EXEEXT)</font></div><div><font face="courier new, monospace"> am__append_1 = bin/checkmacosx.applescript</font></div></blockquote><br><br>This patch allows scilab-cli to build completely on OS X, but then scilab fails to start at runtime (the conda recipe has a sanity check that we can run the executable)<br><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font face="courier new, monospace">+_CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_apple_darwin13_4_0<br>+ scilab-cli -version<br>dyld: Symbol not found: __ZN14CoverageModule4LoadEv</font><br><br></blockquote>Stéphane advised to use the <b>--enable-code-coverage=no</b> option which does not solve the issue unfortunately.<br><div><br></div><div>Hopefuly, this summary will be useful for others.</div><div><br></div><div>Best,</div><div><br></div><div>Sylvain</div></div>