Scilab 6 (compiled with thirdparty) fails at runtime in Ubuntu 16.04
Reported by Chenfeng Zhu
BUG DESCRIPTION:
----------------
Compile Scilab 6 with thirdparty in Ubuntu 16.04. Compilation works.
But the Scilab fails when starting to run.
(However, scilab-cli could work well. So the main problem might be due to the OpenGL in Ubuntu 16.04 or the jogl2.jar from thirdparty.)
ERROR LOG:
----------
$ bin/scilab
Could not create a Scilab main class. Error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: jogamp.common.os.MachineDescriptionRuntime.getPointerSizeInBytesImpl()I
at jogamp.common.os.MachineDescriptionRuntime.getPointerSizeInBytesImpl(Native Method)
at jogamp.common.os.MachineDescriptionRuntime.getRuntimeImpl(MachineDescriptionRuntime.java:138)
at jogamp.common.os.MachineDescriptionRuntime.getRuntime(MachineDescriptionRuntime.java:124)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:228)
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:120)
at org.scilab.modules.gui.SwingView.<init>(Unknown Source)
at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source)
at org.scilab.modules.core.Scilab.<init>(Unknown Source)
Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available).
HOW TO REPRODUCE THE BUG:
-------------------------
After compiling Scilab 6 with thirdparty in Ubuntu 16.04, try to run scilab and get the error.
OTHER INFORMATION:
------------------
System Environments:
Ubuntu 16.04 LTS xenial
amd64
jdk
1.8.0_73
gfortran
4:5.3.1-1ubuntu1
g++
4:5.3.1-1ubuntu1
ocaml-nox
4.02.3-5ubuntu2
libgl1-mesa-dev
11.2.0-1ubuntu2
libtool
2.4.6-0.1
automake
1:1.15-4ubuntu1
autoconf
2.69-9
$ echo $CLASSPATH
.:/usr/develop/jdk1.8.0_73/lib:/usr/develop/jdk1.8.0_73/lib/rt.jar:/usr/develop/jdk1.8.0_73/lib/tools.jar:/usr/workspace/git/scilab_git/scilab/thirdparty:/usr/workspace/git/scilab_git/scilab/thirdparty/jogl2.jar
$ echo $LD_LIBRARY_PATH
/usr/workspace/git/scilab_git/scilab/lib/thirdparty/:
(the permission of the directory is normal.)
in scilab-cli
[a, b] = getdebuginfo()
Scilab Version: scilab-branch-master
Compileur version: 5.3.1 20160413
XML version: 2.9.1
Compiler Architecture: X64