Pages: 1
  Print  
Author Topic: Install problem with incompatible JNA native library  (Read 4067 times)
Offline (Unknown gender) DancesWithRobots
Posted on: August 30, 2013, 10:45:59 AM
Member
Joined: Aug 2013
Posts: 8

View Profile Email
Since there was no executable or package available for Linux without compiling I decided to try ENIGMA under WINE and, after installing Java from the Oracle website, got it running with no problems.  I played around with it a little and decided to try compiling the Linux version.  Not sure how much of the previous pertains to this issue but I'm being complete.

When I started lateralgm, it halted while loading plug-ins.  Below is terminal output of the error message with some (hopefully pertinent) version information at the start.  I hope someone can help. 

Quote
david@david-desktop ~/enigma-dev $ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
OpenJDK Server VM (build 23.7-b01, mixed mode)
david@david-desktop ~/enigma-dev $ uname -r
3.8.0-19-generic
david@david-desktop ~/enigma-dev $ cat /etc/issue
Linux Mint 15 Olivia \n \l
david@david-desktop ~/enigma-dev $ java -jar lateralgm.jar
Java Version: 10700 (1.7.0_25)
Loading lib files in /home/david/enigma-dev/lateralgm.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
Exception in thread "main" java.lang.Error:

There is an incompatible JNA native library installed on this system.
To resolve this issue you may do one of the following:
 - remove or uninstall the offending library
 - set the system property jna.nosys=true
 - set jna.boot.library.path to include the path to the version of the
   jnidispatch library included with the JNA jar file you are using

   at com.sun.jna.Native.<clinit>(Native.java:142)
   at com.sun.jna.Structure.<clinit>(Structure.java:145)
   at org.enigma.EnigmaRunner.<init>(EnigmaRunner.java:121)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
   at java.lang.Class.newInstance(Class.java:374)
   at org.lateralgm.main.LGM.loadPlugins(LGM.java:504)
   at org.lateralgm.main.LGM.main(LGM.java:763)
« Last Edit: August 30, 2013, 08:26:56 PM by DancesWithRobots » Logged
Offline (Unknown gender) DancesWithRobots
Reply #1 Posted on: August 30, 2013, 01:25:19 PM
Member
Joined: Aug 2013
Posts: 8

View Profile Email
Well, I figured out how to

java -Djna.nosys=true  -jar lateralgm.jar

and Enigma starts, but fails when I try to compile an empty game.  Back to google.
« Last Edit: August 30, 2013, 08:54:46 PM by DancesWithRobots » Logged
Offline (Male) Josh @ Dreamland
Reply #2 Posted on: August 30, 2013, 09:02:56 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
What error does ENIGMA fail with? That part's probably easy to fix.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) DancesWithRobots
Reply #3 Posted on: August 30, 2013, 10:21:21 PM
Member
Joined: Aug 2013
Posts: 8

View Profile Email
Here's the end of the terminal output I get when I try to compile an empty game.  I'm also attaching the log mentioned in the error.

Quote
Writing shader data
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb763d1a6, pid=15465, tid=1654651712
#
# JRE version: 7.0_25-b30
# Java VM: OpenJDK Server VM (23.7-b01 mixed mode linux-x86 )
# Problematic frame:
# C  [libc.so.6+0x851a6]  envz_strip+0x1d6
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/david/enigma-dev/hs_err_pid15465.log
[thread 1656417088 also had an error]
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
Logged
Offline (Male) Goombert
Reply #4 Posted on: August 31, 2013, 01:09:44 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
Sorry, nobody has updated the package for LateralGM in the install.py script since I added shaders. Please get the new LGM and patch your installation here...
http://enigma-dev.org/forums/index.php?topic=1245.0
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) DancesWithRobots
Reply #5 Posted on: August 31, 2013, 02:48:50 AM
Member
Joined: Aug 2013
Posts: 8

View Profile Email
Cats wanted in in the middle of the night so I checked my email.  Manually unpacked and copied enigma.jar and lateralgm.jar (new files were older.)  Was able to complete install with java -Djna.nosys=true  -jar lateralgm.jar and play and debug an empty game.

Thanks guys!  I'll get back to this tomorrow.  Anything else you want to know?  Should I mark this topic as solved?  Also, going by Roberts comment on install.py and the age of the files I pasted vs the ones I replaced, I assume there will be an update shortly?
Logged
Offline (Male) Goombert
Reply #6 Posted on: August 31, 2013, 03:39:27 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
Yes even big ones if you check the one topic under General Enigma, I have written an extremely highly efficient model batching ready to be merged...


And shaders are now an internal resource.
« Last Edit: August 31, 2013, 04:16:18 AM by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print