Pages: 1
  Print  
Author Topic: Error - ENIGMA: Unable to communicate with library  (Read 8824 times)
Offline (Unknown gender) The 11th plague of Egypt
Posted on: June 06, 2014, 12:06:30 pm
Member
Joined: Dec 2009
Posts: 274

View Profile
Today I decided to try out the latest zip and couldn't even get through the first start.
I got the error you see in the screenshot.



When I restarted, the error did not appear again, but nothing works.
I'm on Windows 7 x64 SP1 - Italian version, if it makes a difference.
Logged
Offline (Male) Goombert
Reply #1 Posted on: June 06, 2014, 12:16:47 pm

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

View Profile
I just did a fresh extraction and I am unable to reproduce this. Please delete all copies of ENIGMA, navigate to C:/ProgramData and delete the folder "ENIGMA" and then redownload the latest Portable ZIP, extract it, and run enigma.exe

Report back if the issue persists.
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) The 11th plague of Egypt
Reply #2 Posted on: June 07, 2014, 07:02:48 am
Member
Joined: Dec 2009
Posts: 274

View Profile
Deleted the ENIGMA folder, the ProgramData folder and downloaded the latest zip.
Same error.

I have JRE 7u60 32bits installed. Removed JDK and all other stuff.

Code: [Select]
java.lang.UnsatisfiedLinkError: Unable to load library 'compileEGMf': Native library (win32-x86/compileEGMf.dll) not found in resource path ([file:/C:/Programmini/ENIGMA/enigma-dev/plugins/enigma.jar])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
at com.sun.jna.Library$Handler.<init>(Library.java:147)
at com.sun.jna.Native.loadLibrary(Native.java:412)
at com.sun.jna.Native.loadLibrary(Native.java:391)
at org.enigma.EnigmaRunner.attemptLib(EnigmaRunner.java:252)
at org.enigma.EnigmaRunner.access$1(EnigmaRunner.java:245)
at org.enigma.EnigmaRunner$3.run(EnigmaRunner.java:183)
Logged
Offline (Male) Goombert
Reply #3 Posted on: June 07, 2014, 07:16:58 am

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

View Profile
Ok a couple of things.

A) Run ENIGMA with administrative privileges, if that does not work, move on to part B.

B) Does the library exist? If not move on to part C. "C:/Programmini/ENIGMA/enigma-dev/compileEGMf.dll"

C) Open a command line, cd to enigma-dev/CompilerSource, run make, then go back and try ENIGMA again.
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) The 11th plague of Egypt
Reply #4 Posted on: June 07, 2014, 07:44:48 am
Member
Joined: Dec 2009
Posts: 274

View Profile
A) same error after resetting and trying again with admin priviledges

B) no, only file with that name is .cbp

C) error running make (this time without resetting after step A)
"accesso negato" means "access denied"
"impossibile trovare" means "cannot find"

Logged
Offline (Male) Josh @ Dreamland
Reply #5 Posted on: June 07, 2014, 07:57:49 am

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

View Profile Email
That's wild. Could you try running it from git bash? I'm not sure where it is getting that "-------" is a file, but if I had to guess, I'd say it's from one of two things:

1) The way command line arguments are being parsed. It's possible something happened that caused parameters to be interpreted as filenames, and then a sort moved all the hyphens to the front. This is unlikely, but....
2) Someone had merge errors before he distributed the zip, and somewhere in the makefile you'll see <<<<<<<<<<<<, ------------ and >>>>>>>>>>>>. I say this is unlikely because Robert doesn't have the same problem, and you said the zip is fresh.

Could you check over the makefiles to look for oddities?
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) TheExDeus
Reply #6 Posted on: June 07, 2014, 09:11:04 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Yes, try running git-bash.bat from the same folder where ENIGMA.exe is. Then type "cd enigma-dev" and then "mingw32-make". It should compile the compileEGMf.dll and put it in enigma-dev.
Logged
Offline (Unknown gender) The 11th plague of Egypt
Reply #7 Posted on: June 07, 2014, 10:17:02 am
Member
Joined: Dec 2009
Posts: 274

View Profile
Yes, try running git-bash.bat from the same folder where ENIGMA.exe is. Then type "cd enigma-dev" and then "mingw32-make". It should compile the compileEGMf.dll and put it in enigma-dev.
Ok! Doing this, compileEGMf.dll is created.

I cannot import my old project, though.
http://sandbox.yoyogames.com/games/147289/download

Is there a very simple game you use for testing?
I'm not sure this really installed correctly.
Logged
Offline (Unknown gender) TheExDeus
Reply #8 Posted on: June 07, 2014, 02:05:56 pm

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Try compiling an empty room first.
Logged
Offline (Unknown gender) The 11th plague of Egypt
Reply #9 Posted on: June 07, 2014, 06:15:50 pm
Member
Joined: Dec 2009
Posts: 274

View Profile
Try compiling an empty room first.
It works with no room at all, even in debug mode.
It also works with a single room.
Logged
Offline (Male) Goombert
Reply #10 Posted on: June 08, 2014, 06:10:53 am

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

View Profile
So is this resolved?
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) The 11th plague of Egypt
Reply #11 Posted on: June 08, 2014, 06:23:17 am
Member
Joined: Dec 2009
Posts: 274

View Profile
So is this resolved?
More or less, but it required manual compilation of the dll to work.
I'd like the next zip to work that on its own, like it's supposed to do.

I've got some other issues importing my old project, but maybe I should start a different thread for that, right?
Logged
Offline (Male) Goombert
Reply #12 Posted on: June 08, 2014, 06:24:19 am

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

View Profile
Yes please start another topic for that. But, let me ask you to clarify what you did here, and how I can fix the Portable ZIP for you.
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) The 11th plague of Egypt
Reply #13 Posted on: June 08, 2014, 07:54:36 am
Member
Joined: Dec 2009
Posts: 274

View Profile
Yes please start another topic for that. But, let me ask you to clarify what you did here, and how I can fix the Portable ZIP for you.
Delete the ENIGMA folder in ProgramData
Decompress the zip

Run git-bash.bat from the same folder where ENIGMA.exe is.
Type "cd enigma-dev" and then "mingw32-make".
If those steps are not taken, then compileEGMf.dll cannot be found (because it's not present).

Start ENIGMA.
« Last Edit: June 08, 2014, 07:56:14 am by The 11th plague of Egypt » Logged
Pages: 1
  Print