mac build fix

Reporter: RodrigoCard  |  Status: open  |  Last Modified: September 28, 2016, 12:32:26 PM

This commit includes a bunch of fixes:

  • gcc string problem workaround
  • c++11 needed to build the game correctly (dont remember why)
  • toString ambiguity fixed
  • included a stub Joystick support for mac (so it could be built with
    games that expect joystick functions, but without joystick support, for
    now)
  • <
RodrigoCard  
New fixes:

  • Running from the IDE
  • Creating a correct App Bundle in the choosen location in Compile Mode.

If there is nothing wrong I can call it done :)

RodrigoCard  

After the last Merge I did ( 788c8b5 ) Something broke.

Operating System: Mac OS X
Version: 10.11.6
Architecture: x86_64

Java Name: Java HotSpot(TM) 64-Bit Server VM
Java Vendor: Oracle Corporation
Version: 1.7.0_21

Available processors (cores): 2
Free memory (bytes): 8594696
Maximum memory (bytes): 251396096
Total memory available to JVM (bytes): 30175232

File system root: /
Total space (bytes): 999210909696
Free space (bytes): 116789239808
Usable space (bytes): 116527095808

Stack trace:

java.lang.UnsatisfiedLinkError: Unable to load library 'compileEGMf': Native library (darwin/libcompileEGMf.dylib) not found in resource path ([file:/Users/Rodrigo/Workspace%20Libs/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:248)
    at org.enigma.EnigmaRunner.access$1(EnigmaRunner.java:241)
    at org.enigma.EnigmaRunner$3.run(EnigmaRunner.java:179)

I already tried to put the dylib in "(root_of_project):/darwin/" folder, no success.
Where should I look for the error?

RobertBColton  

Take a look at #1023 we pulled something that may have caused that.

RodrigoCard  

Yeah! That was the culprit! java 64 bit trying to load a 32 bit lib :)

RobertBColton  

Thanks for letting me know, I've decided to merge that until we actually get a 64 bit release for Windows.

Please sign in to post comments, or you can view this issue on GitHub.