mcanterb / JRGSS

A port of the RPGMaker Engine to Java for Mac and Linux support
MIT License
35 stars 7 forks source link

Doesn't build on Linux #21

Open Silent-Hunter opened 7 years ago

Silent-Hunter commented 7 years ago

I'm using Gentoo, and it does this:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Player-Core 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Player-Core ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Player-Core ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Player-Core ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 44 source files to /home/silent/JRGSS/Player-Core/target/classes
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/Win32Util.java:[3,52] com.sun.org.apache.xpath.internal.operations.Bool is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/Scissors.java:[10,43] com.sun.corba.se.impl.orbutil.graph.Graph is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/User32.java:[8,52] com.sun.org.apache.xpath.internal.operations.Bool is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/Win32Util.java:[3,52] com.sun.org.apache.xpath.internal.operations.Bool is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/Scissors.java:[10,43] com.sun.corba.se.impl.orbutil.graph.Graph is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/User32.java:[8,52] com.sun.org.apache.xpath.internal.operations.Bool is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/Win32Util.java:[3,52] com.sun.org.apache.xpath.internal.operations.Bool is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/Scissors.java:[10,43] com.sun.corba.se.impl.orbutil.graph.Graph is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/User32.java:[8,52] com.sun.org.apache.xpath.internal.operations.Bool is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/Win32Util.java:[3,52] com.sun.org.apache.xpath.internal.operations.Bool is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/Scissors.java:[10,43] com.sun.corba.se.impl.orbutil.graph.Graph is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/User32.java:[8,52] com.sun.org.apache.xpath.internal.operations.Bool is internal proprietary API and may be removed in a future release
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/Win32Util.java: Some input files use unchecked or unsafe operations.
[WARNING] /home/silent/JRGSS/Player-Core/src/main/java/org/jrgss/api/win32/Win32Util.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Player-Core ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/silent/JRGSS/Player-Core/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ Player-Core ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ Player-Core ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ Player-Core ---
[INFO] Building jar: /home/silent/JRGSS/Player-Core/target/Player-Core-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ Player-Core ---
[INFO] Installing /home/silent/JRGSS/Player-Core/target/Player-Core-1.0-SNAPSHOT.jar to /home/silent/.m2/repository/org/jrgss/Player-Core/1.0-SNAPSHOT/Player-Core-1.0-SNAPSHOT.jar
[INFO] Installing /home/silent/JRGSS/Player-Core/pom.xml to /home/silent/.m2/repository/org/jrgss/Player-Core/1.0-SNAPSHOT/Player-Core-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.874 s
[INFO] Finished at: 2017-03-22T18:04:12-07:00
[INFO] Final Memory: 24M/431M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Player-Desktop 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Player-Desktop ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Player-Desktop ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/silent/JRGSS/Player-Desktop/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Player-Desktop ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 2 source files to /home/silent/JRGSS/Player-Desktop/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Player-Desktop ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/silent/JRGSS/Player-Desktop/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ Player-Desktop ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ Player-Desktop ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ Player-Desktop ---
[INFO] Building jar: /home/silent/JRGSS/Player-Desktop/target/Player-Desktop-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-shade-plugin:2.3:shade (default) @ Player-Desktop ---
[INFO] Including org.jrgss:Player-Core:jar:1.0-SNAPSHOT in the shaded jar.
[INFO] Including libgdx:gdx:jar:1.6.0 in the shaded jar.
[INFO] Including org.projectlombok:lombok:jar:1.14.0 in the shaded jar.
[INFO] Including org.jruby:jruby-complete:jar:1.7.19 in the shaded jar.
[INFO] Including org.ini4j:ini4j:jar:0.5.2 in the shaded jar.
[INFO] Including libgdx:gdx-freetype:jar:1.6.0 in the shaded jar.
[INFO] Including libgdx:gdx-controllers:jar:1.6.0 in the shaded jar.
[INFO] Including org.jetlang:jetlang:jar:0.2.12 in the shaded jar.
[INFO] Including com.google.guava:guava:jar:18.0 in the shaded jar.
[INFO] Including libgdx:gdx-backend-lwjgl:jar:1.6.0 in the shaded jar.
[INFO] Including libgdx:gdx-natives:jar:1.6.0 in the shaded jar.
[INFO] Including libgdx:gdx-backend-lwjgl-natives:jar:1.6.0 in the shaded jar.
[INFO] Including libgdx:gdx-freetype-natives:jar:1.6.0 in the shaded jar.
[INFO] Including libgdx:gdx-controllers-desktop:jar:1.6.0 in the shaded jar.
[INFO] Including libgdx:gdx-controllers-desktop-natives:jar:1.6.0 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /home/silent/JRGSS/Player-Desktop/target/Player-Desktop-1.0-SNAPSHOT.jar with /home/silent/JRGSS/Player-Desktop/target/Player-Desktop-1.0-SNAPSHOT-shaded.jar
[INFO] Dependency-reduced POM written at: /home/silent/JRGSS/Player-Desktop/dependency-reduced-pom.xml
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (default) @ Player-Desktop ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
Creating app bundle: Vidar Demo
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.102 s
[INFO] Finished at: 2017-03-22T18:04:20-07:00
[INFO] Final Memory: 25M/337M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (default) on project Player-Desktop: An Ant BuildException has occured: java.nio.file.NoSuchFileException: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Info.plist
[ERROR] around Ant part ...<bundleapp identifier="org.vidar.VidarDemo" displayname="Vidar Demo" mainclassname="org.jrgss.Desktop" outputdirectory="target" name="Vidar Demo">... @ 6:149 in /home/silent/JRGSS/Player-Desktop/target/antrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

It appears to be looking for an OSX path, Linux doesn't use /Library

glop102 commented 3 years ago

yeah, that is coming from that appbuilder jar seems to make a package for macs look in the build.sh script, and you will see if simply copies the final .jar out of the Player-Desktop/target/ folder the .jar should be there ready for you to use