[Scilab-users] Compiling Scilab for macOS

classic Classic list List threaded Threaded
10 messages Options
Arvid Rosén Arvid Rosén
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Compiling Scilab for macOS

Hi,

 

I still can’t find any Scilab 6.1 builds for macOS (despite the info text here: https://www.scilab.org) , so I’m trying to compile one myself. However, I get a bunch of Java errors during compilation. I’m currently using a JDK from AdoptOpenJDK (Java 8). Is this correct, or should I try using some other version or provider for compiling Scilab on macOS Catalina?

 

Cheers,

Arvid


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

Hello,

Le 14/04/2020 à 16:51, Arvid Rosén a écrit :

Hi,

 

I still can’t find any Scilab 6.1 builds for macOS (despite the info text here: https://www.scilab.org) , so I’m trying to compile one myself.

Great, at least we will be two now...

However, I get a bunch of Java errors during compilation.

Which kind ?

I’m currently using a JDK from AdoptOpenJDK (Java 8). Is this correct,

Yes.

S.

or should I try using some other version or provider for compiling Scilab on macOS Catalina?

 

Cheers,

Arvid


_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-- 
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

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Arvid Rosén Arvid Rosén
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

Sorry for top-posting, but here are a few of the errors I get:

 

Something missing with:

import javax.activation.MimetypesFileTypeMap;

 

A bunch of these:

compile:

    [javac] Compiling 1 source file to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/build/classes

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.jogamp.gluegen.structgen.CStructAnnotationProcessor' less than -source '8'

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.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] 1 error

    [javac] 1 warning

 

And also this one:

compile:

    [javac] Compiling 5 source files to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/build/classes/v2

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_ScilabJNI.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/JavasciException.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/ScilabVariablesJavasci.java

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6

    [javac] error: Source option 6 is no longer supported. Use 7 or later.

    [javac] error: Target option 6 is no longer supported. Use 7 or later.

 

Cheers,

Arvid

 

From: Scilab Users List <[hidden email]> on behalf of Stéphane Mottelet <[hidden email]>
Reply to: Users mailing list for Scilab <[hidden email]>
Date: Tuesday, 14 April 2020 at 17:00
To: "[hidden email]" <[hidden email]>
Subject: Re: [Scilab-users] Compiling Scilab for macOS

 

Hello,

Le 14/04/2020 à 16:51, Arvid Rosén a écrit :

Hi,

 

I still can’t find any Scilab 6.1 builds for macOS (despite the info text here: https://www.scilab.org) , so I’m trying to compile one myself.

Great, at least we will be two now...

However, I get a bunch of Java errors during compilation.

Which kind ?

I’m currently using a JDK from AdoptOpenJDK (Java 8). Is this correct,

Yes.

S.

or should I try using some other version or provider for compiling Scilab on macOS Catalina?

 

Cheers,

Arvid



_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-- 
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

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Tan Chin Luh Tan Chin Luh
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

Hi Stéphane, Arvid, 

Do count me in, 2.5 of us compiling this now, as I am not so familiar with MacOS actually so just count me as 0.5. 

I did the compilation using the third parties installed with brew, including the adoptopenjdk 8 with brew cask install. 

I pass the configure without modelica, tk, and build localization, and build process stuck as the same place as Arvid.

I tried to apply the code  Change 21438 ,  4904f0a9.diff, then the error shown :

[javac] symbol: class GL2

[javac] location: class GLShortCuts

[javac] /Users/kennethkoh/scilab_master/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/utils/GLShortCuts.java:94: error: cannot find symbol

[javac] public static void useColor(GL2 gl, Color color) {

[javac] ^

[javac] symbol: class GL2

[javac] location: class GLShortCuts

[javac] /Users/kennethkoh/scilab_master/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/utils/GLShortCuts.java:106: error: cannot find symbol

[javac] public static void setEnable(GL2 gl, int option, boolean status) {

[javac] ^

[javac] symbol: class GL2

[javac] location: class GLShortCuts

[javac] 84 errors

[javac] 2 warnings





Any advice?

Thanks.

Regards,
Chin Luh




---- On Tue, 14 Apr 2020 23:55:31 +0800 Arvid Rosén <[hidden email]> wrote ----

Sorry for top-posting, but here are a few of the errors I get:

 

Something missing with:

import javax.activation.MimetypesFileTypeMap;

 

A bunch of these:

compile:

    [javac] Compiling 1 source file to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/build/classes

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.jogamp.gluegen.structgen.CStructAnnotationProcessor' less than -source '8'

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.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] 1 error

    [javac] 1 warning

 

And also this one:

compile:

    [javac] Compiling 5 source files to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/build/classes/v2

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_ScilabJNI.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/JavasciException.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/ScilabVariablesJavasci.java

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6

    [javac] error: Source option 6 is no longer supported. Use 7 or later.

    [javac] error: Target option 6 is no longer supported. Use 7 or later.

 

Cheers,

Arvid

 

From: Scilab Users List <[hidden email]> on behalf of Stéphane Mottelet <[hidden email]>
Reply to: Users mailing list for Scilab <[hidden email]>
Date: Tuesday, 14 April 2020 at 17:00
To: "[hidden email]" <[hidden email]>
Subject: Re: [Scilab-users] Compiling Scilab for macOS

 

Hello,

Le 14/04/2020 à 16:51, Arvid Rosén a écrit :

Hi,

 

I still can’t find any Scilab 6.1 builds for macOS (despite the info text here: https://www.scilab.org) , so I’m trying to compile one myself.

Great, at least we will be two now...

However, I get a bunch of Java errors during compilation.

Which kind ?

I’m currently using a JDK from AdoptOpenJDK (Java 8). Is this correct,

Yes.

S.

or should I try using some other version or provider for compiling Scilab on macOS Catalina?

 

Cheers,

Arvid



_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-- 
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
_______________________________________________
users mailing list
http://lists.scilab.org/mailman/listinfo/users





_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
M. Nomiya M. Nomiya
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

Hello,

In the Message;

  Subject    : Re: [Scilab-users] Compiling Scilab for macOS
  Message-ID : <[hidden email]>
  Date & Time: Fri, 17 Apr 2020 21:38:54 +0800

[CLT] == Chin Luh Tan <[hidden email]> has written:

[...]
CLT>   Do count me in, 2.5 of us compiling this now, as I am not so
CLT> familiar with CLT>   MacOS actually so just count me as 0.5.

CLT>   I did the compilation using the third parties installed with
CLT>   brew, including the adoptopenjdk 8 with brew cask install.

In case of openSUSE Leap 15.1, I can compile with java 1.9.0 openjdk.
With java 1.8.0 openjdk, I've never succesed compiling.

HTHs,

Regards,

---
┏━━┓彡 Masaru Nomiya             mail-to: m.nomiya @ gmail.com
┃\/彡
┗━━┛          Think.
                                        -- The IBM slogan --
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

In reply to this post by Arvid Rosén

Hello,

I think that you may have more than one JDK installed on your computer. The problem

with error: package javax.annotation does not exist

is likely due to  java 11. Make sure that at configure time the right JDK is detected, and if necessary force the detection with  configure flag

--with-jdk=DIR

and/or

export JAVA_HOME=`/usr/libexec/java_home -v '1.8*'`

S.

Le 14/04/2020 à 17:55, Arvid Rosén a écrit :

Sorry for top-posting, but here are a few of the errors I get:

 

Something missing with:

import javax.activation.MimetypesFileTypeMap;

 

A bunch of these:

compile:

    [javac] Compiling 1 source file to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/build/classes

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.jogamp.gluegen.structgen.CStructAnnotationProcessor' less than -source '8'

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.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] 1 error

    [javac] 1 warning

 

And also this one:

compile:

    [javac] Compiling 5 source files to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/build/classes/v2

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_ScilabJNI.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/JavasciException.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/ScilabVariablesJavasci.java

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6

    [javac] error: Source option 6 is no longer supported. Use 7 or later.

    [javac] error: Target option 6 is no longer supported. Use 7 or later.

 

Cheers,

Arvid

 

From: Scilab Users List [hidden email] on behalf of Stéphane Mottelet [hidden email]
Reply to: Users mailing list for Scilab [hidden email]
Date: Tuesday, 14 April 2020 at 17:00
To: [hidden email] [hidden email]
Subject: Re: [Scilab-users] Compiling Scilab for macOS

 

Hello,

Le 14/04/2020 à 16:51, Arvid Rosén a écrit :

Hi,

 

I still can’t find any Scilab 6.1 builds for macOS (despite the info text here: https://www.scilab.org) , so I’m trying to compile one myself.

Great, at least we will be two now...

However, I get a bunch of Java errors during compilation.

Which kind ?

I’m currently using a JDK from AdoptOpenJDK (Java 8). Is this correct,

Yes.

S.

or should I try using some other version or provider for compiling Scilab on macOS Catalina?

 

Cheers,

Arvid



_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-- 
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

_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-- 
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

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Tan Chin Luh Tan Chin Luh
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

Hi Samuel, 

Thanks for your reply. Yes, there are 2 version of Java, another is 13, but in fact, i already use the export JAVA_HOME before "make":

Kenneths-MacBook-Air-2:scilab kennethkoh$ java -version

openjdk version "1.8.0_242"

OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)

OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)

Kenneths-MacBook-Air-2:scilab kennethkoh$ javac -version

javac 1.8.0_242


and also the configured show below:


checking JAVA_HOME variable... JAVA_HOME variable found, use it as JVM root directory

checking for zip or jar files to include on CLASSPATH... 

checking to see if the java compiler works... yes

Using JAVAC=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/javac

Java found in /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

checking type of jvm... jdk

checking java API version... 1.8

Using the following JNI include flags -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include/darwin


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 ................. = /usr/local/bin/ant


but the issue remained the same

thanks.

Regards,
Chin Luh


---- On Fri, 17 Apr 2020 22:43:46 +0800 Stéphane Mottelet <[hidden email]> wrote ----

Hello,

I think that you may have more than one JDK installed on your computer. The problem

with error: package javax.annotation does not exist

is likely due to  java 11. Make sure that at configure time the right JDK is detected, and if necessary force the detection with  configure flag

--with-jdk=DIR

and/or

export JAVA_HOME=`/usr/libexec/java_home -v '1.8*'`

S.

Le 14/04/2020 à 17:55, Arvid Rosén a écrit :

Sorry for top-posting, but here are a few of the errors I get:

 

Something missing with:

import javax.activation.MimetypesFileTypeMap;

 

A bunch of these:

compile:

    [javac] Compiling 1 source file to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/build/classes

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.jogamp.gluegen.structgen.CStructAnnotationProcessor' less than -source '8'

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.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] 1 error

    [javac] 1 warning

 

And also this one:

compile:

    [javac] Compiling 5 source files to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/build/classes/v2

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_ScilabJNI.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/JavasciException.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/ScilabVariablesJavasci.java

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6

    [javac] error: Source option 6 is no longer supported. Use 7 or later.

    [javac] error: Target option 6 is no longer supported. Use 7 or later.

 

Cheers,

Arvid

 

From: Scilab Users List [hidden email] on behalf of Stéphane Mottelet [hidden email]
Reply to: Users mailing list for Scilab [hidden email]
Date: Tuesday, 14 April 2020 at 17:00
To: [hidden email] [hidden email]
Subject: Re: [Scilab-users] Compiling Scilab for macOS

 

Hello,

Le 14/04/2020 à 16:51, Arvid Rosén a écrit :

Hi,

 

I still can’t find any Scilab 6.1 builds for macOS (despite the info text here: https://www.scilab.org) , so I’m trying to compile one myself.

Great, at least we will be two now...

However, I get a bunch of Java errors during compilation.

Which kind ?

I’m currently using a JDK from AdoptOpenJDK (Java 8). Is this correct,

Yes.

S.

or should I try using some other version or provider for compiling Scilab on macOS Catalina?

 

Cheers,

Arvid



_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-- 
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

_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

-- 
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

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Tan Chin Luh Tan Chin Luh
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

In reply to this post by M. Nomiya
Dear Nomiya San,

Thanks for your input, for ubuntu 18.04 I was able to make it with Openjdk-8, will take note on opensuse leap 15.1 on this issue if i came across this in the future. Great to have experience from all dev/user on the compilation for different distro.  

Thanks again.

Regards,
Chin Luh


---- On Fri, 17 Apr 2020 22:08:03 +0800 Masaru Nomiya <[hidden email]> wrote ----

Hello,

In the Message;

Subject : Re: [Scilab-users] Compiling Scilab for macOS
Message-ID : <171885d1738.11ad7da53901249[hidden email]>
Date & Time: Fri, 17 Apr 2020 21:38:54 +0800

[CLT] == Chin Luh Tan <[hidden email]> has written:

[...]
CLT> Do count me in, 2.5 of us compiling this now, as I am not so
CLT> familiar with CLT> MacOS actually so just count me as 0.5.

CLT> I did the compilation using the third parties installed with
CLT> brew, including the adoptopenjdk 8 with brew cask install.

In case of openSUSE Leap 15.1, I can compile with java 1.9.0 openjdk.
With java 1.8.0 openjdk, I've never succesed compiling.

HTHs,

Regards,

---
┏━━┓彡 Masaru Nomiya mail-to: m.nomiya @ gmail.com
┃\/彡
┗━━┛ Think.
                    -- The IBM slogan --
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
M. Nomiya M. Nomiya
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

Hello,

In the Message;

  Subject    : Re: [Scilab-users] Compiling Scilab for macOS
  Message-ID : <[hidden email]>
  Date & Time: Sat, 18 Apr 2020 11:10:31 +0800

[CLT] == Chin Luh Tan <[hidden email]> has written:

CLT>  Dear Nomiya San,

Oh!
How do you know the Japanese manner?

Anyway.

CLT>  Thanks for your input, for ubuntu 18.04 I was able to make it
CLT>  with Openjdk-8, will take note on opensuse leap 15.1 on this
CLT>  issue if i came across this in the future. Great to have
CLT>  experience from all dev/user on the compilation for different
CLT>  distro.

I could compile with java 1.8.0 openjdk, though on openSUSE 42.2.

But, the essential difference from openSUSE Leap 15.1 is just jogl2
and gluegen2's version;

            version
42.2         2.2.4
Leap 15.1    2.3.2

Regards,

---
┏━━┓彡 Masaru Nomiya             mail-to: m.nomiya @ gmail.com
┃\/彡
┗━━┛ "Bill! You married with Computer.
            Not with Me!"
          "No..., with money."
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Arvid Rosén Arvid Rosén
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Scilab for macOS

In reply to this post by Tan Chin Luh

Hi,

 

Same here. I have various versions (but initially only adoptopenjdk) of java, and I have tried many variants of JAVA_HOME and --with-jdk. It looks like the right version is found, but still no luck.

 

Cheers,

Arvid

 

From: Scilab Users List <[hidden email]> on behalf of Chin Luh Tan <[hidden email]>
Reply to: Users mailing list for Scilab <[hidden email]>
Date: Saturday, 18 April 2020 at 04:44
To: Users mailing list for Scilab <[hidden email]>
Subject: Re: [Scilab-users] Compiling Scilab for macOS

 

Hi Samuel, 

 

Thanks for your reply. Yes, there are 2 version of Java, another is 13, but in fact, i already use the export JAVA_HOME before "make":

 

Kenneths-MacBook-Air-2:scilab kennethkoh$ java -version

openjdk version "1.8.0_242"

OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)

OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)

Kenneths-MacBook-Air-2:scilab kennethkoh$ javac -version

javac 1.8.0_242



and also the configured show below:

 

checking JAVA_HOME variable... JAVA_HOME variable found, use it as JVM root directory

checking for zip or jar files to include on CLASSPATH... 

checking to see if the java compiler works... yes

Using JAVAC=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/javac

Java found in /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home

checking type of jvm... jdk

checking java API version... 1.8

Using the following JNI include flags -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include/darwin

 

 

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 ................. = /usr/local/bin/ant

 

 

but the issue remained the same

thanks.

Regards,
Chin Luh

 

---- On Fri, 17 Apr 2020 22:43:46 +0800 Stéphane Mottelet <[hidden email]> wrote ----

 

Hello,

I think that you may have more than one JDK installed on your computer. The problem

with error: package javax.annotation does not exist

is likely due to  java 11. Make sure that at configure time the right JDK is detected, and if necessary force the detection with  configure flag

--with-jdk=DIR

and/or

export JAVA_HOME=`/usr/libexec/java_home -v '1.8*'`

S.

Le 14/04/2020 à 17:55, Arvid Rosén a écrit :

Sorry for top-posting, but here are a few of the errors I get:

 

Something missing with:

import javax.activation.MimetypesFileTypeMap;

 

A bunch of these:

compile:

    [javac] Compiling 1 source file to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/build/classes

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/xmlloader/CSSParser.java

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.jogamp.gluegen.structgen.CStructAnnotationProcessor' less than -source '8'

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.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] 1 error

    [javac] 1 warning

 

And also this one:

compile:

    [javac] Compiling 5 source files to /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/build/classes/v2

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Call_ScilabJNI.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/JavasciException.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/Scilab.java

    [javac] /Users/arvid/everything/scilab/src/scilab/scilab-6.1.1/scilab/modules/javasci/src/java/org/scilab/modules/javasci/ScilabVariablesJavasci.java

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6

    [javac] error: Source option 6 is no longer supported. Use 7 or later.

    [javac] error: Target option 6 is no longer supported. Use 7 or later.

 

Cheers,

Arvid

 

From: Scilab Users List [hidden email] on behalf of Stéphane Mottelet [hidden email]
Reply to: Users mailing list for Scilab [hidden email]
Date: Tuesday, 14 April 2020 at 17:00
To: [hidden email] [hidden email]
Subject: Re: [Scilab-users] Compiling Scilab for macOS

 

Hello,

Le 14/04/2020 à 16:51, Arvid Rosén a écrit :

Hi,

 

I still can’t find any Scilab 6.1 builds for macOS (despite the info text here: https://www.scilab.org) , so I’m trying to compile one myself.

Great, at least we will be two now...

However, I get a bunch of Java errors during compilation.

Which kind ?

I’m currently using a JDK from AdoptOpenJDK (Java 8). Is this correct,

Yes.

S.

or should I try using some other version or provider for compiling Scilab on macOS Catalina?

 

Cheers,

Arvid

 

_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-- 
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

 

_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
 
-- 
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
 

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

 

 




_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users