[Scilab-Dev] Compiling Scilab for macOS

Stéphane Mottelet stephane.mottelet at utc.fr
Tue Apr 21 08:50:03 CEST 2020


For matio this patch should help (it was not merged so far):

https://codereview.scilab.org/#/c/20920/

Le 21/04/2020 à 08:42, Arvid Rosén a écrit :
>
> Hi,
>
> Good to hear about your progress Chin Luh, and thanks for your help 
> Stephane!
>
> I’m trying with gcc-9 for everything but modules/console, which needs 
> clang as Stephane pointed out.
>
I think that CL did a successfull build with clang + gfortran 9
>
> That is quite annoying and I hope that Apple fixes the issue in their 
> Catalina SDK:s at some point.
>
> The next error I got was when compiling matio, even though it was 
> turned off using –without-matio. The archiver ar complains that it 
> cannot find the binary (which is correct, as it wasn’t compiled). I 
> had to remove matio from the makefile in modules to get past this. Did 
> you see this too?
>
> Except from that, everything compiles and runs without graphics. So 
> that is a step forward!
>
> Cheers,
>
> Arvid
>
> *From: *dev <dev-bounces at lists.scilab.org> on behalf of Chin Luh Tan 
> <chinluh.tan at bytecode-asia.com>
> *Reply to: *List dedicated to the development of Scilab 
> <dev at lists.scilab.org>
> *Date: *Monday, 20 April 2020 at 17:55
> *To: *List dedicated to the development of Scilab <dev at lists.scilab.org>
> *Subject: *Re: [Scilab-Dev] Compiling Scilab for macOS
>
> Hi Stephane,
>
> I tried the patch 21221 but I still get the same linker error:
>
> ./scilab-adv-cli
>
> Scilab startup function detected that the function proposed to the 
> engine is the wrong one. Usually, it comes from a linker problem in 
> your distribution/OS.
>
> Here, Scilab should have 'libscijvm' defined but gets 
> 'libscijvm-disable' instead.
>
> If you do not know what it means, please report a bug on 
> http://bugzilla.scilab.org/ 
> <https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/bugzilla.scilab.org/>. 
> If you do, you probably know that you should change the link order in 
> SCI/modules/Makefile.am
>
> I hv also patch the jogamp files as suggested by your previous email.
>
> Please advice what I might have miss out.
>
> Thanks again.
>
> Regards,
>
> Chin Luh
>
> ---- On Mon, 20 Apr 2020 21:06:52 +0800 *Chin Luh Tan 
> <chinluh.tan at bytecode-asia.com>* wrote ----
>
>     Hi Stephane,
>
>     I am just about to reply you to update the current status.
>
>     Before I add the other files as mentioned by you in this email (i
>     just replace the 2 files mentioned previously), the build still
>     successful (with quite some warnings)
>
>     scilab-cli run fine, but the scilab and scilab-adv-cli gives
>     following error:
>
>     ./scilab-adv-cli
>
>     Scilab startup function detected that the function proposed to the
>     engine is the wrong one. Usually, it comes from a linker problem
>     in your distribution/OS.
>
>     Here, Scilab should have 'libscijvm' defined but gets
>     'libscijvm-disable' instead.
>
>     If you do not know what it means, please report a bug on
>     http://bugzilla.scilab.org/
>     <https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/bugzilla.scilab.org/>.
>     If you do, you probably know that you should change the link order
>     in SCI/modules/Makefile.am
>
>     I am yet to you your suggestion below:
>
>     If you manage to obtain a successful build, then you will
>     encounter the link ordre problem. That's where I am stuck now.
>     However, using https://codereview.scilab.org/#/c/21211/
>     <https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/codereview.scilab.org/#/c/21211/> will
>     allow you to use Scilab in -nw mode without any problem. But in
>     the full GUI mode, clc, tohome, prompt are broken (no crash, just
>     the message "This feature has not been implemented in this mode").
>
>     Thanks again.
>
>     Regards,
>
>     Chin Luh
>
>     ---- On Mon, 20 Apr 2020 20:58:52 +0800 *Stéphane Mottelet
>     <stephane.mottelet at utc.fr <mailto:stephane.mottelet at utc.fr>>*
>     wrote ----
>
>     _______________________________________________
>
>     dev mailing list
>
>     dev at lists.scilab.org
>
>     http://lists.scilab.org/mailman/listinfo/dev
>
>         Hello,
>
>         Le 19/04/2020 à 13:09, Chin Luh Tan a écrit :
>
>             As I had start with brew, so I just tried to cont using
>             the brew before I switch to fink if no success, and in
>             fact, I get the similar error:
>
>             [javac]
>             /Users/kennethkoh/scilab-6.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java:17:
>             error: package javax.annotation does not exist
>
>             [javac] @javax.annotation.Generated("JFlex")
>
>             [javac]^
>
>             [javac]
>             /Users/kennethkoh/scilab-6.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/CallGraphicController.java:68:
>             warning: [deprecation] Double(double) in Double has been
>             deprecated
>
>             ...
>
>             ...
>
>             [javac] Note: Some input files use unchecked or unsafe
>             operations.
>
>             [javac] Note: Recompile with -Xlint:unchecked for details.
>
>             [javac] 1 error
>
>             [javac] 12 warnings
>
>             ^
>
>             Do correct me If I did anything wrong, my steps to reach here:
>
>             1. git scilab master
>
>             2. svn checkout pre-requisite as describe in
>             https://wiki.scilab.org/Compiling%20Scilab%20under%20MacOSX#preview
>             <https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/wiki.scilab.org/Compiling%20Scilab%20under%20MacOSX#preview>
>
>             3. patch change #21438
>
>             4. manual install ant:
>
>             Java Configuration:
>
>             JAVA_HOME ........... =
>
>             JAVAC ............... =
>             /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/javac
>
>             JAVA_CLASSPATH ...... =
>
>             JAVA_VERSION ........ = 1.8
>
>             JAVAC_FLAGS ......... = -g
>
>             JAVA_JNI_INCLUDE .... =
>             -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include
>             -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include/darwin
>
>             JAVA_JNI_LIBS ....... = -framework JavaVM
>
>             JAVA_JNI_LIBS_PRELOAD =
>
>             JAVA ................ =
>             /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java
>
>             JAVADOC ............. =
>             /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/javadoc
>
>             JAR ................. =
>             /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/jar
>
>             ANT ................. =
>             /Users/kennethkoh/Downloads/apache-ant-1.10.7/bin/ant
>
>             5. Get the jogl2.4 from rc. I am not sure this step is
>             correct, but i just download 3 xz files, unzip them, and
>             copy jogl-all.jar and glugen-rt.jar and replace in scilab
>             thirdparty folder jogl2.jar and glugen2-rt.jar.
>
>         You also need to replace the following files in lib/thirdparty
>
>         libgluegen2-rt.jnilib
>         libjogl_desktop.jnilib
>         libnativewindow_macosx.jnilib
>         libjogl_cg.jnilib
>         libnativewindow_awt.jnilib
>         libnewt.jnilib
>
>         by the corresponding *.dylib which are in
>         jogamp-all-patforms/lib/macosx-universal
>
>         S.
>
>         -- 
>
>         Stéphane Mottelet
>
>         Ingénieur de recherche
>
>         EA 4297 Transformations Intégrées de la Matière Renouvelable
>
>         Département Génie des Procédés Industriels
>
>         Sorbonne Universités - Université de Technologie de Compiègne
>
>         CS 60319, 60203 Compiègne cedex
>
>         Tel : +33(0)344234688
>
>         http://www.utc.fr/~mottelet  <https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet>
>
>         _______________________________________________
>
>         dev mailing list
>
>         dev at lists.scilab.org <mailto:dev at lists.scilab.org>
>
>         http://lists.scilab.org/mailman/listinfo/dev
>         <https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev>
>
>
>
>
>
> _______________________________________________
> dev mailing list
> dev at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev

-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20200421/218a01aa/attachment.htm>


More information about the dev mailing list