From sylvain.corlay at gmail.com Mon Apr 13 11:55:58 2020 From: sylvain.corlay at gmail.com (Sylvain Corlay) Date: Mon, 13 Apr 2020 11:55:58 +0200 Subject: [Scilab-Dev] Scilab 6.1.0 is available! In-Reply-To: References: Message-ID: Hello All, I am following up on this. Is there any hope for a patch Scilab release that would support gcc < 8 ? This regression makes packaging the latest version of scilab impossible on conda-forge, which is probably the largest scientific software distribution. Thanks, Sylvain On Thu, Mar 5, 2020 at 11:56 AM Sylvain Corlay wrote: > Hi Cl?ment, > > Indeed, this is what I ended up doing - and there are a couple of > instances of the same error in various places. > > This appears to be a legitimate error C++ even though this passes with GCC > 8. > > On the choice of dropping GCC<8, this seems a bit early, even if the > latest flavors of Ubuntu, or Debian Sid already have GCC8 available. GCC6 > and GCC7 are recent compilers and people target older distributions in > their builds. > > Best, > > Sylvain Corlay > > On Thu, Mar 5, 2020 at 11:41 AM Cl?ment David > wrote: > >> Hello Sylvain, >> >> I took a look at the trace, it looks like g++ 7 is confused with the >> xml.h include ; as libxml2 is already protected with ifdef __cplusplus >> extern "C" you might just move the #include from XMLDocument.hxx:28 >> out of the extern "C". >> >> Sorry about that but gcc-7 is not our target for official releases, >> Debian/Ubuntu/Fedora all ship gcc-8 with a more stable c++17 support. I >> could only help to debug issues on the conda side. >> >> Regards, >> >> -- >> Cl?ment >> >> > -----Original Message----- >> > From: dev On Behalf Of Sylvain Corlay >> > Sent: Thursday, March 5, 2020 10:15 AM >> > To: List dedicated to the development of Scilab >> > Subject: Re: [Scilab-Dev] Scilab 6.1.0 is available! >> > >> > Hello, >> > >> > Is there any update on the support of GCC 7 for Scilab 6.1? >> > >> > This is a major blocker for us to package it for the conda ecosystem. >> > >> > Best, >> > >> > On Thu, Feb 27, 2020 at 4:12 PM Sylvain Corlay < >> sylvain.corlay at gmail.com >> > > wrote: >> > >> > >> > Patching the source to use resolves that >> > particular issue with C++17 in GCC7. >> > >> > However, the Scilab build now fails with many occurrences of the >> error: >> > >> > error: template with C linkage >> > >> > >> > - You can see the raw build logs here: >> https://dev.azure.com/conda- >> > forge/84710dde-1620-425b-80d0- >> > 4cf5baca359d/_apis/build/builds/125787/logs/7 >> > - The scilab recipe update including the patches for >> is >> > available here: https://github.com/conda-forge/scilab-feedstock/pull/11 >> > >> > Officially supporting older versions of GCC than GCC 8 (which is >> from >> > May 2018) would be greatly appreciated. >> > >> > >> > Best, >> > >> > >> > On Thu, Feb 27, 2020 at 2:28 PM Sylvain Corlay >> > > wrote: >> > >> > >> > Hi Cl?ment, >> > >> > Regarding the Java, we already skip xcos in the build but >> we >> > were really hoping that we could start including it with this version. >> > >> > For the filesystem thingy, I will be patching the source >> as part of >> > the conda recipe to use instead and see how >> it goes - >> > although it would be really nice if we could support more compilers out >> of the >> > box. >> > >> > Sylvain >> > >> > On Thu, Feb 27, 2020 at 2:25 PM Cl?ment David >> > > >> > wrote: >> > >> > >> > Hello Sylvain, >> > >> > First, thank you for your work on the conda >> packaging. >> > The c++17 requirements is only needed for a single file that is used to >> implement >> > fullpath() (named fullpath.cpp). The used API is reduced to >> > std::filesystem::weakly_canonical and std::filesystem::absolute [1]. I >> guess using >> > a light patch might relax the use of the filesystem header, for example, >> > something like [2]. >> > >> > About the Java8 requirement, I guess you could >> > ./configure --without-xcos as a first approach. I started porting the >> Java code >> > out of javax.xml.bind [3] but that's very repetitive and error prone >> work. >> > >> > [1]: >> > >> https://codereview.scilab.org/#/c/21041/25/scilab/modules/fileio/src/cpp/fullp >> > ath.cpp >> > [2]: >> > https://stackoverflow.com/questions/45867379/why-does-gcc-not-seem-to- >> > have-the-filesystem-standard-library >> > [3]: https://codereview.scilab.org/#/c/20630/ >> > >> > Regards, >> > >> > -- >> > Cl?ment >> > >> > > -----Original Message----- >> > > From: dev > > > On Behalf Of Sylvain Corlay >> > > Sent: Thursday, February 27, 2020 1:50 PM >> > > To: List dedicated to the development of Scilab >> > > >> > > Subject: Re: [Scilab-Dev] Scilab 6.1.0 is >> available! >> > > >> > > Congratulations on the release. >> > > >> > > I am the author of the conda package for >> scilab, and >> > unfortunately, it does not >> > > seem that 6.1.0 can be successfully packaged for >> > conda-forge with the new >> > > requirement for the C++17 header, >> > which requires GCC 8. >> > > >> > > Conda-forge is still based on GCC 7, which is >> fairly >> > recent, with C++17 enabled by >> > > default. Would you consider not using the >> > from the C++17 standard >> > > so that Scilab can be made available to a wider >> > audience? >> > > >> > > Another blocker to the packaging of Scilab is >> the >> > outdated version of java that is >> > > required by the GUI. Is there any plan to >> support a >> > more recent version of >> > > OpenJDK? >> > > >> > > Best, >> > > >> > > Sylvain Corlay >> > > >> > > On Tue, Feb 25, 2020 at 2:10 PM Cl?ment David >> > > > > group.com >> > > > group.com> > > wrote: >> > > >> > > >> > > Dear Scilab-ers, >> > > >> > > >> > > >> > > A brand new Scilab 6.1.0 >> > is >> > > released today! >> > > >> > > >> > > >> > > This version includes further improvement >> atop >> > Scilab 6.0 for better >> > > stability and increased algorithm performance. >> It also >> > includes a reworked >> > > display for more compact and meaningful value >> > printing; web tools for HTTP, >> > > JSON support; better debug support and various >> > algorithm rewrite/extension. >> > > >> > > >> > > >> > > This first iteration of the 6.1 branch >> fixes up to 245 >> > bugs and implements >> > > missing features from the 6.0.2 version. We >> would >> > like to give a special thanks >> > > to Samuel and Stephane who have been very active >> > this year. >> > > >> > > >> > > >> > > If you find any critical issue or >> instability that might >> > need a 6.1.x release >> > > please alert us >> . If you >> > are a toolbox maintainer, >> > > please rebuild your code, upgrade it when >> needed and >> > publish it to >> > > atoms.scilab.org >> > . >> > > >> > > >> > > >> > > For the complete list of changes and bugs >> fixed, >> > please take a look at >> > > the CHANGES >> > file. >> > > >> > > >> > > >> > > -- >> > > >> > > Cl?ment on behalf of the Scilab team >> > > >> > > >> > _______________________________________________ >> > > dev mailing list >> > > dev at lists.scilab.org > dev at lists.scilab.org> >> > > >> > > >> http://lists.scilab.org/mailman/listinfo/dev >> > > >> > >> > >> > _______________________________________________ >> > dev mailing list >> > dev at lists.scilab.org > > >> > http://lists.scilab.org/mailman/listinfo/dev >> > >> >> _______________________________________________ >> dev mailing list >> dev at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/dev >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kalyan.chatterjea at gmail.com Thu Apr 16 04:56:37 2020 From: kalyan.chatterjea at gmail.com (Kalyan Chatterjea) Date: Thu, 16 Apr 2020 10:56:37 +0800 Subject: [Scilab-Dev] User-Input Validation Message-ID: Hello, I have written a simple code for User-Input-Validation. It seems to work. But for a wrong string input there is the error 4 (Undefined variable:). Q1. Can this error be hidden? Q2. Kindly let me know if I should use a better validation code. Thanks for your help Kalyan CODE: clear clc month = 0; while (month<1 | month>6) month = input('Please chose your option between 1 and 6: '); if (type(month)==10) then month=0;end;//10 - represent string end select month case 1 disp("Month is January") case 2 disp("Month is February") case 3 disp("Month is March") case 4 disp("Month is April") case 5 disp("Month is May") case 6 disp("Month is June") else disp("Wrong Month number") end disp(month) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kalyan.Chatterjea at gmail.com Thu Apr 16 08:49:00 2020 From: Kalyan.Chatterjea at gmail.com (kalyansg) Date: Wed, 15 Apr 2020 23:49:00 -0700 (MST) Subject: [Scilab-Dev] User-Input Validation In-Reply-To: References: Message-ID: <1587019740160-0.post@n3.nabble.com> I think a better code would be: clear clc month = 0; while (month<1 | month>6) month = input('Please chose your option between 1 and 6: ', "string") month=strtod(month) if (isnan(month)) then month = 0;end end select month case 1 disp("Month is January") case 2 disp("Month is February") case 3 disp("Month is March") case 4 disp("Month is April") case 5 disp("Month is May") case 6 disp("Month is June") else disp("Wrong Month number") end disp(month) -- Sent from: http://mailinglists.scilab.org/Scilab-developers-Mailing-Lists-Archives-f2574944.html From stephane.mottelet at utc.fr Sat Apr 18 11:49:22 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Sat, 18 Apr 2020 11:49:22 +0200 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> References: <858961DA-6539-4C79-904C-080BC1C6026B@softube.com> <6d25276c-8626-f39f-f165-1929860dded5@utc.fr> <12f20574-6951-90dd-ebdf-517f4a12cf9a@utc.fr> <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> Message-ID: <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> Hello, That's one of the reasons why I don't like Homebrew: thos packaging system is quite aggressive w.r.t. software versions. I think The problem you have here is due to the Ant package, whose version needs openjdk13. Hence, all java builds within Scilab are done with java13. The only workaround I found is to uninstall the Ant Homebrew package and manually installed official build of 1.10.7 version built above JDK? 1.8 (https://ant.apache.org/bindownload.cgi). My personnal setup to build Scilab 6.1 OSX version is - OX HighSierra or Mojave - Fink 0.45 as a packaging system, which is more conservative w.r.t. library versions - Jogl >= 2.3.2 patch (https://codereview.scilab.org/#/c/21438/) - jogl 2.4 (pick up the lastest release candidate at https://jogamp.org/deployment/archive/rc/). jogl 2.4. is absolutely needed (see http://forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html), I had to build official 6.0.2 version above it. On Catalina and latest XCode you can try to build with bundled clang which is now C++17 compliant. However, in order to build for Mojave and before, you cannot uses c++17 features. I personnaly build Scilab under Mojave and HighSierra with the folowing configure flags : ?./config.status --config '--without-openmp' '--without-tk' '--with-eigen_include=/Users/mottelet/git/scilab_master/scilab/lib/Eigen/includes' 'F77=gfortran-fsf-8' 'CC=gcc-fsf-8' 'LDFLAGS=-L/sw/lib/gcc8/lib/' 'CXX=g++-fsf-8' 'LIBS=-lstdc++fs' console module has to be built separately with clang: cd modules/console make CC=clang. Imposing CC=clang globally is not recommended for exception handling between e.g. fortran/C/C++ 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/ 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"). Tell me when you will be arrived at this point... S. Le 18/04/2020 ? 04:43, Chin Luh Tan a ?crit?: > 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 > >* 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 > on behalf of St?phane > Mottelet > > *Reply to: *Users mailing list for Scilab > > *Date: *Tuesday, 14 April 2020 at 17:00 > *To: *"users at lists.scilab.org" > > *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 > > users at lists.scilab.org > > 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 > users at lists.scilab.org > 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 > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at softube.com Sat Apr 18 16:32:18 2020 From: arvid at softube.com (=?utf-8?B?QXJ2aWQgUm9zw6lu?=) Date: Sat, 18 Apr 2020 14:32:18 +0000 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> References: <858961DA-6539-4C79-904C-080BC1C6026B@softube.com> <6d25276c-8626-f39f-f165-1929860dded5@utc.fr> <12f20574-6951-90dd-ebdf-517f4a12cf9a@utc.fr> <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> Message-ID: <8DD33FFA-241B-43E1-8A62-43B714115F6D@softube.com> Hi, You are right Stephane! Ant was in fact causing the problem here. My workaround was: brew install ant at 1.9 Trying to build with clang right now. Cheers, Arvid From: dev on behalf of St?phane Mottelet Reply to: List dedicated to the development of Scilab Date: Saturday, 18 April 2020 at 11:49 To: "dev at lists.scilab.org" Subject: [Scilab-Dev] Compiling Scilab for macOS Hello, That's one of the reasons why I don't like Homebrew: thos packaging system is quite aggressive w.r.t. software versions. I think The problem you have here is due to the Ant package, whose version needs openjdk13. Hence, all java builds within Scilab are done with java13. The only workaround I found is to uninstall the Ant Homebrew package and manually installed official build of 1.10.7 version built above JDK 1.8 (https://ant.apache.org/bindownload.cgi). My personnal setup to build Scilab 6.1 OSX version is - OX HighSierra or Mojave - Fink 0.45 as a packaging system, which is more conservative w.r.t. library versions - Jogl >= 2.3.2 patch (https://codereview.scilab.org/#/c/21438/) - jogl 2.4 (pick up the lastest release candidate at https://jogamp.org/deployment/archive/rc/). jogl 2.4. is absolutely needed (see http://forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html), I had to build official 6.0.2 version above it. On Catalina and latest XCode you can try to build with bundled clang which is now C++17 compliant. However, in order to build for Mojave and before, you cannot uses c++17 features. I personnaly build Scilab under Mojave and HighSierra with the folowing configure flags : ./config.status --config '--without-openmp' '--without-tk' '--with-eigen_include=/Users/mottelet/git/scilab_master/scilab/lib/Eigen/includes' 'F77=gfortran-fsf-8' 'CC=gcc-fsf-8' 'LDFLAGS=-L/sw/lib/gcc8/lib/' 'CXX=g++-fsf-8' 'LIBS=-lstdc++fs' console module has to be built separately with clang: cd modules/console make CC=clang. Imposing CC=clang globally is not recommended for exception handling between e.g. fortran/C/C++ 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/ 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"). Tell me when you will be arrived at this point... S. Le 18/04/2020 ? 04:43, Chin Luh Tan a ?crit : 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 > 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 on behalf of St?phane Mottelet Reply to: Users mailing list for Scilab Date: Tuesday, 14 April 2020 at 17:00 To: "users at lists.scilab.org" 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 users at lists.scilab.org 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 users at lists.scilab.org 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 users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Sun Apr 19 13:09:42 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Sun, 19 Apr 2020 19:09:42 +0800 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <8DD33FFA-241B-43E1-8A62-43B714115F6D@softube.com> References: <858961DA-6539-4C79-904C-080BC1C6026B@softube.com> <6d25276c-8626-f39f-f165-1929860dded5@utc.fr> <12f20574-6951-90dd-ebdf-517f4a12cf9a@utc.fr> <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> <8DD33FFA-241B-43E1-8A62-43B714115F6D@softube.com> Message-ID: <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> 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 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.? checking jogl2...? /Users/kennethkoh/scilab-6.1/scilab/thirdparty/jogl2.jar 2.4? Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X checking gluegen2-rt...? /Users/kennethkoh/scilab-6.1/scilab/thirdparty/gluegen2-rt.jar 2.4? 6. Then I get the error as mentioned above.? Any advice on this, or I shall try on the fink next. thanks again. Regards, Chin Luh ---- On Sat, 18 Apr 2020 22:32:18 +0800 Arvid Ros?n wrote ---- Hi, ? You are right Stephane! Ant was in fact causing the problem here. ? My workaround was: brew install ant at 1.9 ? Trying to build with clang right now. ? Cheers, Arvid ? From: dev on behalf of St?phane Mottelet Reply to: List dedicated to the development of Scilab Date: Saturday, 18 April 2020 at 11:49 To: "mailto:dev at lists.scilab.org" Subject: [Scilab-Dev] Compiling Scilab for macOS ? Hello, That's one of the reasons why I don't like Homebrew: thos packaging system is quite aggressive w.r.t. software versions. I think The problem you have here is due to the Ant package, whose version needs openjdk13. Hence, all java builds within Scilab are done with java13. The only workaround I found is to uninstall the Ant Homebrew package and manually installed official build of 1.10.7 version built above JDK? 1.8 (https://ant.apache.org/bindownload.cgi). My personnal setup to build Scilab 6.1 OSX version is - OX HighSierra or Mojave - Fink 0.45 as a packaging system, which is more conservative w.r.t. library versions - Jogl >= 2.3.2 patch (https://codereview.scilab.org/#/c/21438/) - jogl 2.4 (pick up the lastest release candidate at https://jogamp.org/deployment/archive/rc/). jogl 2.4. is absolutely needed (see http://forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html), I had to build official 6.0.2 version above it. On Catalina and latest XCode you can try to build with bundled clang which is now C++17 compliant. However, in order to build for Mojave and before, you cannot uses c++17 features. I personnaly build Scilab under Mojave and HighSierra with the folowing configure flags : ?./config.status --config '--without-openmp' '--without-tk' '--with-eigen_include=/Users/mottelet/git/scilab_master/scilab/lib/Eigen/includes' 'F77=gfortran-fsf-8' 'CC=gcc-fsf-8' 'LDFLAGS=-L/sw/lib/gcc8/lib/' 'CXX=g++-fsf-8' 'LIBS=-lstdc++fs' console module has to be built separately with clang: cd modules/console make CC=clang. Imposing CC=clang globally is not recommended for exception handling between e.g. fortran/C/C++ 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/ 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"). Tell me when you will be arrived at this point... S. ? ? ? ? Le 18/04/2020 ? 04:43, Chin Luh Tan a ?crit?: 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 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 mailto:users-bounces at lists.scilab.org on behalf of St?phane Mottelet mailto:stephane.mottelet at utc.fr Reply to: Users mailing list for Scilab mailto:users at lists.scilab.org Date: Tuesday, 14 April 2020 at 17:00 To: mailto:users at lists.scilab.org mailto:users at lists.scilab.org 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://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 mailto:users at lists.scilab.org https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet ? _______________________________________________ users mailing list mailto:users at lists.scilab.org https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet ? _______________________________________________ users mailing list mailto:users at lists.scilab.org https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users ? ? _______________________________________________ users mailing list mailto:users at lists.scilab.org 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 _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Sun Apr 19 14:38:13 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sun, 19 Apr 2020 14:38:13 +0200 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> References: <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> Message-ID: <7FF72760-D957-444A-B115-BB3C43EF1EF6@utc.fr> Hello, Did you a make clean ? Did you completely uninstall all brew ant versions ? I know this should not be necessary but did you uninstall openjdk at 13 ? S. >> Le 19 avr. 2020 ? 13:10, 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 > 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. > > checking jogl2... /Users/kennethkoh/scilab-6.1/scilab/thirdparty/jogl2.jar 2.4 > > Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X > > checking gluegen2-rt... /Users/kennethkoh/scilab-6.1/scilab/thirdparty/gluegen2-rt.jar 2.4 > > > 6. Then I get the error as mentioned above. > > Any advice on this, or I shall try on the fink next. > > thanks again. > > Regards, > Chin Luh > > > ---- On Sat, 18 Apr 2020 22:32:18 +0800 Arvid Ros?n wrote ---- > > Hi, > > > > You are right Stephane! Ant was in fact causing the problem here. > > > > My workaround was: > > brew install ant at 1.9 > > > > Trying to build with clang right now. > > > > Cheers, > > Arvid > > > > From: dev on behalf of St?phane Mottelet > Reply to: List dedicated to the development of Scilab > Date: Saturday, 18 April 2020 at 11:49 > To: "dev at lists.scilab.org" > Subject: [Scilab-Dev] Compiling Scilab for macOS > > > > Hello, > > That's one of the reasons why I don't like Homebrew: thos packaging system is quite aggressive w.r.t. software versions. I think The problem you have here is due to the Ant package, whose version needs openjdk13. Hence, all java builds within Scilab are done with java13. The only workaround I found is to uninstall the Ant Homebrew package and manually installed official build of 1.10.7 version built above JDK 1.8 (https://ant.apache.org/bindownload.cgi). > > My personnal setup to build Scilab 6.1 OSX version is > > - OX HighSierra or Mojave > > - Fink 0.45 as a packaging system, which is more conservative w.r.t. library versions > > - Jogl >= 2.3.2 patch (https://codereview.scilab.org/#/c/21438/) > > - jogl 2.4 (pick up the lastest release candidate at https://jogamp.org/deployment/archive/rc/). jogl 2.4. is absolutely needed (see http://forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html), I had to build official 6.0.2 version above it. > > On Catalina and latest XCode you can try to build with bundled clang which is now C++17 compliant. However, in order to build for Mojave and before, you cannot uses c++17 features. > > I personnaly build Scilab under Mojave and HighSierra with the folowing configure flags : > > ./config.status --config > '--without-openmp' '--without-tk' '--with-eigen_include=/Users/mottelet/git/scilab_master/scilab/lib/Eigen/includes' 'F77=gfortran-fsf-8' 'CC=gcc-fsf-8' 'LDFLAGS=-L/sw/lib/gcc8/lib/' 'CXX=g++-fsf-8' 'LIBS=-lstdc++fs' > > console module has to be built separately with clang: cd modules/console make CC=clang. Imposing CC=clang globally is not recommended for exception handling between e.g. fortran/C/C++ > > 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/ 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"). > > Tell me when you will be arrived at this point... > > S. > > > > > > > > > > Le 18/04/2020 ? 04:43, Chin Luh Tan a ?crit : > > 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 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 on behalf of St?phane Mottelet > Reply to: Users mailing list for Scilab > Date: Tuesday, 14 April 2020 at 17:00 > To: "users at lists.scilab.org" > 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 > users at lists.scilab.org > 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 > users at lists.scilab.org > 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 > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > 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 > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Sun Apr 19 15:15:38 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Sun, 19 Apr 2020 21:15:38 +0800 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <7FF72760-D957-444A-B115-BB3C43EF1EF6@utc.fr> References: <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> <7FF72760-D957-444A-B115-BB3C43EF1EF6@utc.fr> Message-ID: <171929480d2.dbc3ffa6499255.3035833509279878901@bytecode-asia.com> I do always make clean before a new build? for this case, i even git another scilab to make sure it is really clean. However? i did not uninstall the ant and java, will give a try again and get back to you.? Thanks alot Rgds, Chin Luh ---- On Sun, 19 Apr 2020 20:38:13 +0800 stephane.mottelet at utc.fr wrote ---- Hello, Did you a make clean ? Did you completely uninstall all brew ant versions ? I know this should not be necessary but did you uninstall openjdk at 13 ? S. Le 19 avr. 2020 ? 13:10, 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 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.? checking jogl2...? /Users/kennethkoh/scilab-6.1/scilab/thirdparty/jogl2.jar 2.4? Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X checking gluegen2-rt...? /Users/kennethkoh/scilab-6.1/scilab/thirdparty/gluegen2-rt.jar 2.4? 6. Then I get the error as mentioned above.? Any advice on this, or I shall try on the fink next. thanks again. Regards, Chin Luh ---- On Sat, 18 Apr 2020 22:32:18 +0800 Arvid Ros?n wrote ---- Hi, ? You are right Stephane! Ant was in fact causing the problem here. ? My workaround was: brew install ant at 1.9 ? Trying to build with clang right now. ? Cheers, Arvid ? From: dev on behalf of St?phane Mottelet Reply to: List dedicated to the development of Scilab Date: Saturday, 18 April 2020 at 11:49 To: "dev at lists.scilab.org" Subject: [Scilab-Dev] Compiling Scilab for macOS ? Hello, That's one of the reasons why I don't like Homebrew: thos packaging system is quite aggressive w.r.t. software versions. I think The problem you have here is due to the Ant package, whose version needs openjdk13. Hence, all java builds within Scilab are done with java13. The only workaround I found is to uninstall the Ant Homebrew package and manually installed official build of 1.10.7 version built above JDK? 1.8 (https://ant.apache.org/bindownload.cgi). My personnal setup to build Scilab 6.1 OSX version is - OX HighSierra or Mojave - Fink 0.45 as a packaging system, which is more conservative w.r.t. library versions - Jogl >= 2.3.2 patch (https://codereview.scilab.org/#/c/21438/) - jogl 2.4 (pick up the lastest release candidate at https://jogamp.org/deployment/archive/rc/). jogl 2.4. is absolutely needed (see http://forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html), I had to build official 6.0.2 version above it. On Catalina and latest XCode you can try to build with bundled clang which is now C++17 compliant. However, in order to build for Mojave and before, you cannot uses c++17 features. I personnaly build Scilab under Mojave and HighSierra with the folowing configure flags : ?./config.status --config '--without-openmp' '--without-tk' '--with-eigen_include=/Users/mottelet/git/scilab_master/scilab/lib/Eigen/includes' 'F77=gfortran-fsf-8' 'CC=gcc-fsf-8' 'LDFLAGS=-L/sw/lib/gcc8/lib/' 'CXX=g++-fsf-8' 'LIBS=-lstdc++fs' console module has to be built separately with clang: cd modules/console make CC=clang. Imposing CC=clang globally is not recommended for exception handling between e.g. fortran/C/C++ 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/ 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"). Tell me when you will be arrived at this point... S. ? ? ? ? Le 18/04/2020 ? 04:43, Chin Luh Tan a ?crit?: 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 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 on behalf of St?phane Mottelet Reply to: Users mailing list for Scilab Date: Tuesday, 14 April 2020 at 17:00 To: "users at lists.scilab.org" 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 users at lists.scilab.org 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 users at lists.scilab.org 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 users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ? ? _______________________________________________ users mailing list users at lists.scilab.org 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 _______________________________________________ dev mailing list dev at lists.scilab.org http://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 _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvain.corlay at gmail.com Sun Apr 19 15:31:34 2020 From: sylvain.corlay at gmail.com (Sylvain Corlay) Date: Sun, 19 Apr 2020 15:31:34 +0200 Subject: [Scilab-Dev] Scilab 6.1.0 is available! In-Reply-To: References: Message-ID: Hey, Any news on supporting another version of gcc than the latest version? Best, On Mon, Apr 13, 2020, 11:55 Sylvain Corlay wrote: > Hello All, > > I am following up on this. > > Is there any hope for a patch Scilab release that would support gcc < 8 ? > This regression makes packaging the latest version of scilab impossible on > conda-forge, which is probably the largest scientific software distribution. > > Thanks, > > Sylvain > > > On Thu, Mar 5, 2020 at 11:56 AM Sylvain Corlay > wrote: > >> Hi Cl?ment, >> >> Indeed, this is what I ended up doing - and there are a couple of >> instances of the same error in various places. >> >> This appears to be a legitimate error C++ even though this passes with >> GCC 8. >> >> On the choice of dropping GCC<8, this seems a bit early, even if the >> latest flavors of Ubuntu, or Debian Sid already have GCC8 available. GCC6 >> and GCC7 are recent compilers and people target older distributions in >> their builds. >> >> Best, >> >> Sylvain Corlay >> >> On Thu, Mar 5, 2020 at 11:41 AM Cl?ment David < >> Clement.David at esi-group.com> wrote: >> >>> Hello Sylvain, >>> >>> I took a look at the trace, it looks like g++ 7 is confused with the >>> xml.h include ; as libxml2 is already protected with ifdef __cplusplus >>> extern "C" you might just move the #include from XMLDocument.hxx:28 >>> out of the extern "C". >>> >>> Sorry about that but gcc-7 is not our target for official releases, >>> Debian/Ubuntu/Fedora all ship gcc-8 with a more stable c++17 support. I >>> could only help to debug issues on the conda side. >>> >>> Regards, >>> >>> -- >>> Cl?ment >>> >>> > -----Original Message----- >>> > From: dev On Behalf Of Sylvain Corlay >>> > Sent: Thursday, March 5, 2020 10:15 AM >>> > To: List dedicated to the development of Scilab >>> > Subject: Re: [Scilab-Dev] Scilab 6.1.0 is available! >>> > >>> > Hello, >>> > >>> > Is there any update on the support of GCC 7 for Scilab 6.1? >>> > >>> > This is a major blocker for us to package it for the conda ecosystem. >>> > >>> > Best, >>> > >>> > On Thu, Feb 27, 2020 at 4:12 PM Sylvain Corlay < >>> sylvain.corlay at gmail.com >>> > > wrote: >>> > >>> > >>> > Patching the source to use resolves >>> that >>> > particular issue with C++17 in GCC7. >>> > >>> > However, the Scilab build now fails with many occurrences of the >>> error: >>> > >>> > error: template with C linkage >>> > >>> > >>> > - You can see the raw build logs here: >>> https://dev.azure.com/conda- >>> > forge/84710dde-1620-425b-80d0- >>> > 4cf5baca359d/_apis/build/builds/125787/logs/7 >>> > - The scilab recipe update including the patches for >>> is >>> > available here: >>> https://github.com/conda-forge/scilab-feedstock/pull/11 >>> > >>> > Officially supporting older versions of GCC than GCC 8 (which is >>> from >>> > May 2018) would be greatly appreciated. >>> > >>> > >>> > Best, >>> > >>> > >>> > On Thu, Feb 27, 2020 at 2:28 PM Sylvain Corlay >>> > > wrote: >>> > >>> > >>> > Hi Cl?ment, >>> > >>> > Regarding the Java, we already skip xcos in the build >>> but we >>> > were really hoping that we could start including it with this version. >>> > >>> > For the filesystem thingy, I will be patching the source >>> as part of >>> > the conda recipe to use instead and see how >>> it goes - >>> > although it would be really nice if we could support more compilers >>> out of the >>> > box. >>> > >>> > Sylvain >>> > >>> > On Thu, Feb 27, 2020 at 2:25 PM Cl?ment David >>> > > >>> > wrote: >>> > >>> > >>> > Hello Sylvain, >>> > >>> > First, thank you for your work on the conda >>> packaging. >>> > The c++17 requirements is only needed for a single file that is used >>> to implement >>> > fullpath() (named fullpath.cpp). The used API is reduced to >>> > std::filesystem::weakly_canonical and std::filesystem::absolute [1]. I >>> guess using >>> > a light patch might relax the use of the filesystem header, for >>> example, >>> > something like [2]. >>> > >>> > About the Java8 requirement, I guess you could >>> > ./configure --without-xcos as a first approach. I started porting the >>> Java code >>> > out of javax.xml.bind [3] but that's very repetitive and error prone >>> work. >>> > >>> > [1]: >>> > >>> https://codereview.scilab.org/#/c/21041/25/scilab/modules/fileio/src/cpp/fullp >>> > ath.cpp >>> > [2]: >>> > https://stackoverflow.com/questions/45867379/why-does-gcc-not-seem-to- >>> > have-the-filesystem-standard-library >>> > [3]: https://codereview.scilab.org/#/c/20630/ >>> > >>> > Regards, >>> > >>> > -- >>> > Cl?ment >>> > >>> > > -----Original Message----- >>> > > From: dev >> > > On Behalf Of Sylvain Corlay >>> > > Sent: Thursday, February 27, 2020 1:50 PM >>> > > To: List dedicated to the development of Scilab >>> > > >>> > > Subject: Re: [Scilab-Dev] Scilab 6.1.0 is >>> available! >>> > > >>> > > Congratulations on the release. >>> > > >>> > > I am the author of the conda package for >>> scilab, and >>> > unfortunately, it does not >>> > > seem that 6.1.0 can be successfully packaged >>> for >>> > conda-forge with the new >>> > > requirement for the C++17 header, >>> > which requires GCC 8. >>> > > >>> > > Conda-forge is still based on GCC 7, which is >>> fairly >>> > recent, with C++17 enabled by >>> > > default. Would you consider not using the >>> > from the C++17 standard >>> > > so that Scilab can be made available to a wider >>> > audience? >>> > > >>> > > Another blocker to the packaging of Scilab is >>> the >>> > outdated version of java that is >>> > > required by the GUI. Is there any plan to >>> support a >>> > more recent version of >>> > > OpenJDK? >>> > > >>> > > Best, >>> > > >>> > > Sylvain Corlay >>> > > >>> > > On Tue, Feb 25, 2020 at 2:10 PM Cl?ment David >>> > >> > > group.com >>> > >> > group.com> > > wrote: >>> > > >>> > > >>> > > Dear Scilab-ers, >>> > > >>> > > >>> > > >>> > > A brand new Scilab 6.1.0 >>> > is >>> > > released today! >>> > > >>> > > >>> > > >>> > > This version includes further >>> improvement atop >>> > Scilab 6.0 for better >>> > > stability and increased algorithm performance. >>> It also >>> > includes a reworked >>> > > display for more compact and meaningful value >>> > printing; web tools for HTTP, >>> > > JSON support; better debug support and various >>> > algorithm rewrite/extension. >>> > > >>> > > >>> > > >>> > > This first iteration of the 6.1 branch >>> fixes up to 245 >>> > bugs and implements >>> > > missing features from the 6.0.2 version. We >>> would >>> > like to give a special thanks >>> > > to Samuel and Stephane who have been very >>> active >>> > this year. >>> > > >>> > > >>> > > >>> > > If you find any critical issue or >>> instability that might >>> > need a 6.1.x release >>> > > please alert us >>> . If you >>> > are a toolbox maintainer, >>> > > please rebuild your code, upgrade it when >>> needed and >>> > publish it to >>> > > atoms.scilab.org >>> > . >>> > > >>> > > >>> > > >>> > > For the complete list of changes and >>> bugs fixed, >>> > please take a look at >>> > > the CHANGES >>> > file. >>> > > >>> > > >>> > > >>> > > -- >>> > > >>> > > Cl?ment on behalf of the Scilab team >>> > > >>> > > >>> > _______________________________________________ >>> > > dev mailing list >>> > > dev at lists.scilab.org >> dev at lists.scilab.org> >>> > > >>> > > >>> http://lists.scilab.org/mailman/listinfo/dev >>> > > >>> > >>> > >>> > _______________________________________________ >>> > dev mailing list >>> > dev at lists.scilab.org >> dev at lists.scilab.org> >>> > http://lists.scilab.org/mailman/listinfo/dev >>> > >>> >>> _______________________________________________ >>> dev mailing list >>> dev at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/dev >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Sun Apr 19 15:33:13 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Sun, 19 Apr 2020 21:33:13 +0800 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <171929480d2.dbc3ffa6499255.3035833509279878901@bytecode-asia.com> References: <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> <7FF72760-D957-444A-B115-BB3C43EF1EF6@utc.fr> <171929480d2.dbc3ffa6499255.3035833509279878901@bytecode-asia.com> Message-ID: <17192a49a3b.c651240242854.8146935399626592379@bytecode-asia.com> hi again,? great, some progress... after remove ant, no different, but after remove all java version except 1.8, i get following error instead: ? ? [javac] /Users/kennethkoh/scilab-6.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/datatip/Datatip.java:35: error: cannot access UserDefinedFormat ? ? [javac] import org.scilab.forge.scirenderer.ruler.graduations.UserDefinedFormat; ? ? [javac]? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ ? ? [javac] ? bad class file: /Users/kennethkoh/scilab-6.1/scilab/modules/scirenderer/jar/scirenderer.jar(org/scilab/forge/scirenderer/ruler/graduations/UserDefinedFormat.class) ? ? [javac] ? ? class file has wrong version 57.0, should be 52.0 ? ? [javac] ? ? Please remove or make sure it appears in the correct subdirectory of the classpath. will explore more later. CL ---- On Sun, 19 Apr 2020 21:15:38 +0800 Chin Luh Tan wrote ---- I do always make clean before a new build? for this case, i even git another scilab to make sure it is really clean. However? i did not uninstall the ant and java, will give a try again and get back to you.? Thanks alot Rgds, Chin Luh ---- On Sun, 19 Apr 2020 20:38:13 +0800 mailto:stephane.mottelet at utc.fr wrote ---- Hello, Did you a make clean ? Did you completely uninstall all brew ant versions ? I know this should not be necessary but did you uninstall openjdk at 13 ? S. Le 19 avr. 2020 ? 13:10, 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://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.? checking jogl2...? /Users/kennethkoh/scilab-6.1/scilab/thirdparty/jogl2.jar 2.4? Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X checking gluegen2-rt...? /Users/kennethkoh/scilab-6.1/scilab/thirdparty/gluegen2-rt.jar 2.4? 6. Then I get the error as mentioned above.? Any advice on this, or I shall try on the fink next. thanks again. Regards, Chin Luh ---- On Sat, 18 Apr 2020 22:32:18 +0800 Arvid Ros?n wrote ---- Hi, ? You are right Stephane! Ant was in fact causing the problem here. ? My workaround was: brew install ant at 1.9 ? Trying to build with clang right now. ? Cheers, Arvid ? From: dev on behalf of St?phane Mottelet Reply to: List dedicated to the development of Scilab Date: Saturday, 18 April 2020 at 11:49 To: "mailto:dev at lists.scilab.org" Subject: [Scilab-Dev] Compiling Scilab for macOS ? Hello, That's one of the reasons why I don't like Homebrew: thos packaging system is quite aggressive w.r.t. software versions. I think The problem you have here is due to the Ant package, whose version needs openjdk13. Hence, all java builds within Scilab are done with java13. The only workaround I found is to uninstall the Ant Homebrew package and manually installed official build of 1.10.7 version built above JDK? 1.8 (https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/ant.apache.org/bindownload.cgi). My personnal setup to build Scilab 6.1 OSX version is - OX HighSierra or Mojave - Fink 0.45 as a packaging system, which is more conservative w.r.t. library versions - Jogl >= 2.3.2 patch (https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/codereview.scilab.org/#/c/21438/) - jogl 2.4 (pick up the lastest release candidate at https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/jogamp.org/deployment/archive/rc/). jogl 2.4. is absolutely needed (see https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html), I had to build official 6.0.2 version above it. On Catalina and latest XCode you can try to build with bundled clang which is now C++17 compliant. However, in order to build for Mojave and before, you cannot uses c++17 features. I personnaly build Scilab under Mojave and HighSierra with the folowing configure flags : ?./config.status --config '--without-openmp' '--without-tk' '--with-eigen_include=/Users/mottelet/git/scilab_master/scilab/lib/Eigen/includes' 'F77=gfortran-fsf-8' 'CC=gcc-fsf-8' 'LDFLAGS=-L/sw/lib/gcc8/lib/' 'CXX=g++-fsf-8' 'LIBS=-lstdc++fs' console module has to be built separately with clang: cd modules/console make CC=clang. Imposing CC=clang globally is not recommended for exception handling between e.g. fortran/C/C++ 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://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"). Tell me when you will be arrived at this point... S. ? ? ? ? Le 18/04/2020 ? 04:43, Chin Luh Tan a ?crit?: 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 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 mailto:users-bounces at lists.scilab.org on behalf of St?phane Mottelet mailto:stephane.mottelet at utc.fr Reply to: Users mailing list for Scilab mailto:users at lists.scilab.org Date: Tuesday, 14 April 2020 at 17:00 To: mailto:users at lists.scilab.org mailto:users at lists.scilab.org 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://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 mailto:users at lists.scilab.org https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet ? _______________________________________________ users mailing list mailto:users at lists.scilab.org https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet ? _______________________________________________ users mailing list mailto:users at lists.scilab.org https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users ? ? _______________________________________________ users mailing list mailto:users at lists.scilab.org https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet _______________________________________________ dev mailing list mailto:dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev _______________________________________________ dev mailing list mailto:dev at lists.scilab.org https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev _______________________________________________ dev mailing list mailto:dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Sun Apr 19 17:53:57 2020 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sun, 19 Apr 2020 17:53:57 +0200 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <17192a49a3b.c651240242854.8146935399626592379@bytecode-asia.com> References: <17192a49a3b.c651240242854.8146935399626592379@bytecode-asia.com> Message-ID: <45625838-7D29-4A86-913B-BF4D822B7187@utc.fr> You should force rebuild of the scirenderer jar file (remove it). S. > Le 19 avr. 2020 ? 15:33, Chin Luh Tan a ?crit : > > ? > hi again, > > great, some progress... after remove ant, no different, but after remove all java version except 1.8, i get following error instead: > > [javac] /Users/kennethkoh/scilab-6.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/datatip/Datatip.java:35: error: cannot access UserDefinedFormat > > [javac] import org.scilab.forge.scirenderer.ruler.graduations.UserDefinedFormat; > > [javac] ^ > > [javac] bad class file: /Users/kennethkoh/scilab-6.1/scilab/modules/scirenderer/jar/scirenderer.jar(org/scilab/forge/scirenderer/ruler/graduations/UserDefinedFormat.class) > > [javac] class file has wrong version 57.0, should be 52.0 > > [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. > > > will explore more later. > > CL > > > > ---- On Sun, 19 Apr 2020 21:15:38 +0800 Chin Luh Tan wrote ---- > > > I do always make clean before a new build for this case, i even git another scilab to make sure it is really clean. > > However i did not uninstall the ant and java, will give a try again and get back to you. > > Thanks alot > > Rgds, > Chin Luh > > > > > ---- On Sun, 19 Apr 2020 20:38:13 +0800 stephane.mottelet at utc.fr wrote ---- > > Hello, > > Did you a make clean ? Did you completely uninstall all brew ant versions ? I know this should not be necessary but did you uninstall openjdk at 13 ? > > S. > > Le 19 avr. 2020 ? 13:10, 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 > 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. > > checking jogl2... /Users/kennethkoh/scilab-6.1/scilab/thirdparty/jogl2.jar 2.4 > > Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X > > checking gluegen2-rt... /Users/kennethkoh/scilab-6.1/scilab/thirdparty/gluegen2-rt.jar 2.4 > > > 6. Then I get the error as mentioned above. > > Any advice on this, or I shall try on the fink next. > > thanks again. > > Regards, > Chin Luh > > > ---- On Sat, 18 Apr 2020 22:32:18 +0800 Arvid Ros?n wrote ---- > > Hi, > > > > You are right Stephane! Ant was in fact causing the problem here. > > > > My workaround was: > > brew install ant at 1.9 > > > > Trying to build with clang right now. > > > > Cheers, > > Arvid > > > > From: dev on behalf of St?phane Mottelet > Reply to: List dedicated to the development of Scilab > Date: Saturday, 18 April 2020 at 11:49 > To: "dev at lists.scilab.org" > Subject: [Scilab-Dev] Compiling Scilab for macOS > > > > Hello, > > That's one of the reasons why I don't like Homebrew: thos packaging system is quite aggressive w.r.t. software versions. I think The problem you have here is due to the Ant package, whose version needs openjdk13. Hence, all java builds within Scilab are done with java13. The only workaround I found is to uninstall the Ant Homebrew package and manually installed official build of 1.10.7 version built above JDK 1.8 (https://ant.apache.org/bindownload.cgi). > > My personnal setup to build Scilab 6.1 OSX version is > > - OX HighSierra or Mojave > > - Fink 0.45 as a packaging system, which is more conservative w.r.t. library versions > > - Jogl >= 2.3.2 patch (https://codereview.scilab.org/#/c/21438/) > > - jogl 2.4 (pick up the lastest release candidate at https://jogamp.org/deployment/archive/rc/). jogl 2.4. is absolutely needed (see http://forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html), I had to build official 6.0.2 version above it. > > On Catalina and latest XCode you can try to build with bundled clang which is now C++17 compliant. However, in order to build for Mojave and before, you cannot uses c++17 features. > > I personnaly build Scilab under Mojave and HighSierra with the folowing configure flags : > > ./config.status --config > '--without-openmp' '--without-tk' '--with-eigen_include=/Users/mottelet/git/scilab_master/scilab/lib/Eigen/includes' 'F77=gfortran-fsf-8' 'CC=gcc-fsf-8' 'LDFLAGS=-L/sw/lib/gcc8/lib/' 'CXX=g++-fsf-8' 'LIBS=-lstdc++fs' > > console module has to be built separately with clang: cd modules/console make CC=clang. Imposing CC=clang globally is not recommended for exception handling between e.g. fortran/C/C++ > > 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/ 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"). > > Tell me when you will be arrived at this point... > > S. > > > > > > > > > > Le 18/04/2020 ? 04:43, Chin Luh Tan a ?crit : > > 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 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 on behalf of St?phane Mottelet > Reply to: Users mailing list for Scilab > Date: Tuesday, 14 April 2020 at 17:00 > To: "users at lists.scilab.org" > 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 > users at lists.scilab.org > 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 > users at lists.scilab.org > 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 > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > 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 > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://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 > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Sun Apr 19 18:03:43 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Mon, 20 Apr 2020 00:03:43 +0800 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <45625838-7D29-4A86-913B-BF4D822B7187@utc.fr> References: <17192a49a3b.c651240242854.8146935399626592379@bytecode-asia.com> <45625838-7D29-4A86-913B-BF4D822B7187@utc.fr> Message-ID: <171932e6459.c133391a500698.963838107472420876@bytecode-asia.com> Thanks,? i make clean and deleted the jar folder, but overlooked the build folder, making progress now, shall get back to you tomorrow,? thanks again for your guidance! Rgds, CL ---- On Sun, 19 Apr 2020 23:53:57 +0800 stephane.mottelet at utc.fr wrote ---- You should force rebuild of the scirenderer jar file (remove it). S. Le 19 avr. 2020 ? 15:33, Chin Luh Tan a ?crit?: ? hi again,? great, some progress... after remove ant, no different, but after remove all java version except 1.8, i get following error instead: ? ? [javac] /Users/kennethkoh/scilab-6.1/scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/datatip/Datatip.java:35: error: cannot access UserDefinedFormat ? ? [javac] import org.scilab.forge.scirenderer.ruler.graduations.UserDefinedFormat; ? ? [javac]? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ ? ? [javac] ? bad class file: /Users/kennethkoh/scilab-6.1/scilab/modules/scirenderer/jar/scirenderer.jar(org/scilab/forge/scirenderer/ruler/graduations/UserDefinedFormat.class) ? ? [javac] ? ? class file has wrong version 57.0, should be 52.0 ? ? [javac] ? ? Please remove or make sure it appears in the correct subdirectory of the classpath. will explore more later. CL ---- On Sun, 19 Apr 2020 21:15:38 +0800 Chin Luh Tan wrote ---- I do always make clean before a new build? for this case, i even git another scilab to make sure it is really clean. However? i did not uninstall the ant and java, will give a try again and get back to you.? Thanks alot Rgds, Chin Luh ---- On Sun, 19 Apr 2020 20:38:13 +0800 stephane.mottelet at utc.fr wrote ---- Hello, Did you a make clean ? Did you completely uninstall all brew ant versions ? I know this should not be necessary but did you uninstall openjdk at 13 ? S. Le 19 avr. 2020 ? 13:10, 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 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.? checking jogl2...? /Users/kennethkoh/scilab-6.1/scilab/thirdparty/jogl2.jar 2.4? Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X checking gluegen2-rt...? /Users/kennethkoh/scilab-6.1/scilab/thirdparty/gluegen2-rt.jar 2.4? 6. Then I get the error as mentioned above.? Any advice on this, or I shall try on the fink next. thanks again. Regards, Chin Luh ---- On Sat, 18 Apr 2020 22:32:18 +0800 Arvid Ros?n wrote ---- Hi, ? You are right Stephane! Ant was in fact causing the problem here. ? My workaround was: brew install ant at 1.9 ? Trying to build with clang right now. ? Cheers, Arvid ? From: dev on behalf of St?phane Mottelet Reply to: List dedicated to the development of Scilab Date: Saturday, 18 April 2020 at 11:49 To: "dev at lists.scilab.org" Subject: [Scilab-Dev] Compiling Scilab for macOS ? Hello, That's one of the reasons why I don't like Homebrew: thos packaging system is quite aggressive w.r.t. software versions. I think The problem you have here is due to the Ant package, whose version needs openjdk13. Hence, all java builds within Scilab are done with java13. The only workaround I found is to uninstall the Ant Homebrew package and manually installed official build of 1.10.7 version built above JDK? 1.8 (https://ant.apache.org/bindownload.cgi). My personnal setup to build Scilab 6.1 OSX version is - OX HighSierra or Mojave - Fink 0.45 as a packaging system, which is more conservative w.r.t. library versions - Jogl >= 2.3.2 patch (https://codereview.scilab.org/#/c/21438/) - jogl 2.4 (pick up the lastest release candidate at https://jogamp.org/deployment/archive/rc/). jogl 2.4. is absolutely needed (see http://forum.jogamp.org/JOGL-on-Mojave-Mac-OS-10-14-td4039037.html), I had to build official 6.0.2 version above it. On Catalina and latest XCode you can try to build with bundled clang which is now C++17 compliant. However, in order to build for Mojave and before, you cannot uses c++17 features. I personnaly build Scilab under Mojave and HighSierra with the folowing configure flags : ?./config.status --config '--without-openmp' '--without-tk' '--with-eigen_include=/Users/mottelet/git/scilab_master/scilab/lib/Eigen/includes' 'F77=gfortran-fsf-8' 'CC=gcc-fsf-8' 'LDFLAGS=-L/sw/lib/gcc8/lib/' 'CXX=g++-fsf-8' 'LIBS=-lstdc++fs' console module has to be built separately with clang: cd modules/console make CC=clang. Imposing CC=clang globally is not recommended for exception handling between e.g. fortran/C/C++ 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/ 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"). Tell me when you will be arrived at this point... S. ? ? ? ? Le 18/04/2020 ? 04:43, Chin Luh Tan a ?crit?: 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 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 on behalf of St?phane Mottelet Reply to: Users mailing list for Scilab Date: Tuesday, 14 April 2020 at 17:00 To: "users at lists.scilab.org" 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 users at lists.scilab.org 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 users at lists.scilab.org 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 users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ? ? _______________________________________________ users mailing list users at lists.scilab.org 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 _______________________________________________ dev mailing list dev at lists.scilab.org http://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 _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev at lists.scilab.org http://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 _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Mon Apr 20 14:58:52 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 20 Apr 2020 14:58:52 +0200 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> References: <858961DA-6539-4C79-904C-080BC1C6026B@softube.com> <6d25276c-8626-f39f-f165-1929860dded5@utc.fr> <12f20574-6951-90dd-ebdf-517f4a12cf9a@utc.fr> <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> <8DD33FFA-241B-43E1-8A62-43B714115F6D@softube.com> <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> Message-ID: <0547f3bb-1f97-7701-c05b-abf9971c2016@utc.fr> 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 > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Mon Apr 20 15:06:52 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Mon, 20 Apr 2020 21:06:52 +0800 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <0547f3bb-1f97-7701-c05b-abf9971c2016@utc.fr> References: <858961DA-6539-4C79-904C-080BC1C6026B@softube.com> <6d25276c-8626-f39f-f165-1929860dded5@utc.fr> <12f20574-6951-90dd-ebdf-517f4a12cf9a@utc.fr> <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> <8DD33FFA-241B-43E1-8A62-43B714115F6D@softube.com> <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> <0547f3bb-1f97-7701-c05b-abf9971c2016@utc.fr> Message-ID: <17197b2d606.f8c812bc125926.1454775163526961353@bytecode-asia.com> 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/. 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://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 wrote ---- 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://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 _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Mon Apr 20 17:55:12 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Mon, 20 Apr 2020 23:55:12 +0800 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <17197b2d606.f8c812bc125926.1454775163526961353@bytecode-asia.com> References: <858961DA-6539-4C79-904C-080BC1C6026B@softube.com> <6d25276c-8626-f39f-f165-1929860dded5@utc.fr> <12f20574-6951-90dd-ebdf-517f4a12cf9a@utc.fr> <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> <8DD33FFA-241B-43E1-8A62-43B714115F6D@softube.com> <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> <0547f3bb-1f97-7701-c05b-abf9971c2016@utc.fr> <17197b2d606.f8c812bc125926.1454775163526961353@bytecode-asia.com> Message-ID: <171984cf49b.d2722fcb155436.2550310013775997085@bytecode-asia.com> 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/. 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 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/. 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://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 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://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 _______________________________________________ dev mailing list mailto:dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at softube.com Tue Apr 21 08:42:37 2020 From: arvid at softube.com (=?utf-8?B?QXJ2aWQgUm9zw6lu?=) Date: Tue, 21 Apr 2020 06:42:37 +0000 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: <171984cf49b.d2722fcb155436.2550310013775997085@bytecode-asia.com> References: <858961DA-6539-4C79-904C-080BC1C6026B@softube.com> <6d25276c-8626-f39f-f165-1929860dded5@utc.fr> <12f20574-6951-90dd-ebdf-517f4a12cf9a@utc.fr> <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> <8DD33FFA-241B-43E1-8A62-43B714115F6D@softube.com> <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> <0547f3bb-1f97-7701-c05b-abf9971c2016@utc.fr> <17197b2d606.f8c812bc125926.1454775163526961353@bytecode-asia.com> <171984cf49b.d2722fcb155436.2550310013775997085@bytecode-asia.com> Message-ID: 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. 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 on behalf of Chin Luh Tan Reply to: List dedicated to the development of Scilab Date: Monday, 20 April 2020 at 17:55 To: List dedicated to the development of Scilab 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/. 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 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/. 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/ 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 > 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 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 _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Tue Apr 21 08:50:03 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Tue, 21 Apr 2020 08:50:03 +0200 Subject: [Scilab-Dev] Compiling Scilab for macOS In-Reply-To: References: <858961DA-6539-4C79-904C-080BC1C6026B@softube.com> <6d25276c-8626-f39f-f165-1929860dded5@utc.fr> <12f20574-6951-90dd-ebdf-517f4a12cf9a@utc.fr> <1718b2b1b5f.11f854be1977416.2273769595764789220@bytecode-asia.com> <4459fc24-8ecc-2bc1-bfab-887cede940e3@utc.fr> <8DD33FFA-241B-43E1-8A62-43B714115F6D@softube.com> <17192213571.113b43a3d38849.7958597546081406876@bytecode-asia.com> <0547f3bb-1f97-7701-c05b-abf9971c2016@utc.fr> <17197b2d606.f8c812bc125926.1454775163526961353@bytecode-asia.com> <171984cf49b.d2722fcb155436.2550310013775997085@bytecode-asia.com> Message-ID: 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 on behalf of Chin Luh Tan > > *Reply to: *List dedicated to the development of Scilab > > *Date: *Monday, 20 April 2020 at 17:55 > *To: *List dedicated to the development of Scilab > *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/ > . > 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 > * 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/ > . > 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/ > ?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 > >* > 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 > > > 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 > > _______________________________________________ > > dev mailing list > > dev at lists.scilab.org > > http://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: From stephane.mottelet at utc.fr Tue Apr 21 19:21:30 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Tue, 21 Apr 2020 19:21:30 +0200 Subject: [Scilab-Dev] Scilab 6.1 for OSX is out ! Message-ID: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> Hi all, Finally I managed to package a branch-6.1 version. "branch-6.1" means that you will have the actual features of 6.1 version plus the bug fixes and improvements provided by the team and contributors since its release. The archive is available to dowload at the following url: https://www.utc.fr/~mottelet/scilab_for_macOS.html Tests have been made under HighSierra, Mojave, Catalina and everything seems OK. Please use the ML to report eventual problems. Enjoy ! -- 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 From chinluh.tan at bytecode-asia.com Wed Apr 22 07:41:36 2020 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 22 Apr 2020 13:41:36 +0800 Subject: [Scilab-Dev] Scilab 6.1 for OSX is out ! In-Reply-To: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> References: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> Message-ID: <171a067e718.c333271a93207.2361529335510130482@bytecode-asia.com> Thanks Stephane! I tested to launch on Catalina and HS, no problem in launching, some basics functions testing, plots, and xcos.? Regards, Chin Luh ---- On Wed, 22 Apr 2020 01:21:30 +0800 St?phane Mottelet wrote ---- Hi all, Finally I managed to package a branch-6.1 version. "branch-6.1" means that you will have the actual features of 6.1 version plus the bug fixes and improvements provided by the team and contributors since its release. The archive is available to dowload at the following url: https://www.utc.fr/~mottelet/scilab_for_macOS.html Tests have been made under HighSierra, Mojave, Catalina and everything seems OK. Please use the ML to report eventual problems. Enjoy ! -- 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 _______________________________________________ dev mailing list mailto:dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at softube.com Wed Apr 22 08:40:01 2020 From: arvid at softube.com (=?utf-8?B?QXJ2aWQgUm9zw6lu?=) Date: Wed, 22 Apr 2020 06:40:01 +0000 Subject: [Scilab-Dev] [Scilab-users] Scilab 6.1 for OSX is out ! In-Reply-To: References: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> <171a067e718.c333271a93207.2361529335510130482@bytecode-asia.com> Message-ID: Indeed, Thank you very much! Basic stuff works here too on Catalina. However, I do have some problems running and compiling my C++-libraries in this version. I get the following linking problem: Symbol not found: __ZN5types5TList8getFieldERKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEE Referenced from: ? Either at runtime, or variations on the same theme when compiling, like this: "types::TList::getField(std::__1::basic_string, std::__1::allocator > const&)", referenced from: collectfields_gw(std::__1::vector >&, int, std::__1::vector >&) in Any ideas? Maybe the TList class has changed somehow. I guess I need to go and check in the code, but any pointers here would be appreciated. Cheers, Arvid From: Scilab Users List on behalf of "Yann Debray @ Scilab" Reply to: Users mailing list for Scilab Date: Wednesday, 22 April 2020 at 08:19 To: Users mailing list for Scilab , List dedicated to the development of Scilab Cc: List dedicated to the development of Scilab , Users mailing list for Scilab Subject: Re: [Scilab-users] [Scilab-Dev] Scilab 6.1 for OSX is out ! Dear St?phane, Thank you very much. I will report this on our website. -- Yann Debray Scilab Director ESI Group Cell: +33 6 45 81 65 06 Website: https://www.scilab.org On Wed, Apr 22, 2020 at 7:42 AM +0200, "Chin Luh Tan" > wrote: Thanks Stephane! I tested to launch on Catalina and HS, no problem in launching, some basics functions testing, plots, and xcos. Regards, Chin Luh ---- On Wed, 22 Apr 2020 01:21:30 +0800 St?phane Mottelet wrote ---- Hi all, Finally I managed to package a branch-6.1 version. "branch-6.1" means that you will have the actual features of 6.1 version plus the bug fixes and improvements provided by the team and contributors since its release. The archive is available to dowload at the following url: https://www.utc.fr/~mottelet/scilab_for_macOS.html Tests have been made under HighSierra, Mojave, Catalina and everything seems OK. Please use the ML to report eventual problems. Enjoy ! -- 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 _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Apr 22 08:45:50 2020 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 22 Apr 2020 08:45:50 +0200 Subject: [Scilab-Dev] [Scilab-users] Scilab 6.1 for OSX is out ! In-Reply-To: References: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> <171a067e718.c333271a93207.2361529335510130482@bytecode-asia.com> Message-ID: <56f4f321-6e4c-ae45-c241-c91cd84c00b2@utc.fr> (answered on dev at lists.scilab.org) Hello, I had this problem when building on Catalina. What compiler set did you use ? Just clang or a mix of clang and gcc/g++/clang ? S. Le 22/04/2020 ? 08:40, Arvid Ros?n a ?crit?: > > Indeed, > > Thank you very much! > > Basic stuff works here too on Catalina. However, I do have some > problems running and compiling my C++-libraries in this version. I get > the following linking problem: > > Symbol not found: > __ZN5types5TList8getFieldERKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEE > > Referenced from: ? > > Either at runtime, or variations on the same theme when compiling, > like this: > > "types::TList::getField(std::__1::basic_string std::__1::char_traits, std::__1::allocator > > const&)", referenced from: > > collectfields_gw(std::__1::vector std::__1::allocator >&, int, > std::__1::vector std::__1::allocator >&) in > > Any ideas? Maybe the TList class has changed somehow. I guess I need > to go and check in the code, but any pointers here would be appreciated. > > Cheers, > > Arvid > > *From: *Scilab Users List on behalf > of "Yann Debray @ Scilab" > *Reply to: *Users mailing list for Scilab > *Date: *Wednesday, 22 April 2020 at 08:19 > *To: *Users mailing list for Scilab , List > dedicated to the development of Scilab > *Cc: *List dedicated to the development of Scilab > , Users mailing list for Scilab > > *Subject: *Re: [Scilab-users] [Scilab-Dev] Scilab 6.1 for OSX is out ! > > Dear St?phane, > > Thank you very much. > > I will report this on our website. > > -- > > Yann Debray > > Scilab Director > > ESI Group > > Cell: +33 6 45 81 65 06 > > Website: https://www.scilab.org > > > > On Wed, Apr 22, 2020 at 7:42 AM +0200, "Chin Luh Tan" > > > wrote: > > Thanks Stephane! > > I tested to launch on Catalina and HS, no problem in launching, > some basics functions testing, plots, and xcos. > > Regards, > Chin Luh > > ---- On Wed, 22 Apr 2020 01:21:30 +0800 *St?phane Mottelet > * wrote ---- > > Hi all, > > Finally I managed to package a branch-6.1 version. > "branch-6.1" means > that you will have the actual features of 6.1 version plus the > bug fixes > and improvements provided by the team and contributors since its > release. The archive is available to dowload at the following url: > > https://www.utc.fr/~mottelet/scilab_for_macOS.html > > > Tests have been made under HighSierra, Mojave, Catalina and > everything > seems OK. Please use the ML to report eventual problems. > > Enjoy ! > > -- > 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 > > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at softube.com Wed Apr 22 08:57:03 2020 From: arvid at softube.com (=?utf-8?B?QXJ2aWQgUm9zw6lu?=) Date: Wed, 22 Apr 2020 06:57:03 +0000 Subject: [Scilab-Dev] [Scilab-users] Scilab 6.1 for OSX is out ! In-Reply-To: <56f4f321-6e4c-ae45-c241-c91cd84c00b2@utc.fr> References: <5346a48b-59f6-5676-b52b-00efc63e7a37@utc.fr> <171a067e718.c333271a93207.2361529335510130482@bytecode-asia.com> <56f4f321-6e4c-ae45-c241-c91cd84c00b2@utc.fr> Message-ID: I tried both XCode?s clang and gcc-9 from Homebrew. But I just realized that due to the macOS Framework troubles with gcc-9 and Catalina, I never managed to finish anything using gcc-9. I removed my modules that depend on the macOS SDK:s (as a test), and now I can compile a working library using gcc-9. Great! Now, if only Apple could not ship those broken SDK:s ? Cheers, Arvid From: dev on behalf of St?phane Mottelet Reply to: List dedicated to the development of Scilab Date: Wednesday, 22 April 2020 at 08:46 To: "dev at lists.scilab.org" Subject: Re: [Scilab-Dev] [Scilab-users] Scilab 6.1 for OSX is out ! (answered on dev at lists.scilab.org) Hello, I had this problem when building on Catalina. What compiler set did you use ? Just clang or a mix of clang and gcc/g++/clang ? S. Le 22/04/2020 ? 08:40, Arvid Ros?n a ?crit : Indeed, Thank you very much! Basic stuff works here too on Catalina. However, I do have some problems running and compiling my C++-libraries in this version. I get the following linking problem: Symbol not found: __ZN5types5TList8getFieldERKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEE Referenced from: ? Either at runtime, or variations on the same theme when compiling, like this: "types::TList::getField(std::__1::basic_string, std::__1::allocator > const&)", referenced from: collectfields_gw(std::__1::vector >&, int, std::__1::vector >&) in Any ideas? Maybe the TList class has changed somehow. I guess I need to go and check in the code, but any pointers here would be appreciated. Cheers, Arvid From: Scilab Users List on behalf of "Yann Debray @ Scilab" Reply to: Users mailing list for Scilab Date: Wednesday, 22 April 2020 at 08:19 To: Users mailing list for Scilab , List dedicated to the development of Scilab Cc: List dedicated to the development of Scilab , Users mailing list for Scilab Subject: Re: [Scilab-users] [Scilab-Dev] Scilab 6.1 for OSX is out ! Dear St?phane, Thank you very much. I will report this on our website. -- Yann Debray Scilab Director ESI Group Cell: +33 6 45 81 65 06 Website: https://www.scilab.org On Wed, Apr 22, 2020 at 7:42 AM +0200, "Chin Luh Tan" > wrote: Thanks Stephane! I tested to launch on Catalina and HS, no problem in launching, some basics functions testing, plots, and xcos. Regards, Chin Luh ---- On Wed, 22 Apr 2020 01:21:30 +0800 St?phane Mottelet wrote ---- Hi all, Finally I managed to package a branch-6.1 version. "branch-6.1" means that you will have the actual features of 6.1 version plus the bug fixes and improvements provided by the team and contributors since its release. The archive is available to dowload at the following url: https://www.utc.fr/~mottelet/scilab_for_macOS.html Tests have been made under HighSierra, Mojave, Catalina and everything seems OK. Please use the ML to report eventual problems. Enjoy ! -- 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 _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev _______________________________________________ users mailing list users at lists.scilab.org 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: