Hello Guest

Errors Building lwjgl3-demos

  • 1 Replies
  • 230 Views
Errors Building lwjgl3-demos
« on: April 28, 2019, 19:45:04 »
All I did was:
git clone https://github.com/LWJGL/lwjgl3-demos.git
mvn clean install

and then after reading the read me...

mvn package

In both cases I received the following errors:
[INFO] Compiling 90 source files to /home/ken/Development/lwjgl3-demos/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[637,28] cannot find symbol
  symbol:   method bgfx_begin()
  location: class org.lwjgl.demo.bgfx.Metaballs
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[642,13] method bgfx_encoder_set_transient_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int,short
  found: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[650,13] cannot find symbol
  symbol:   method bgfx_end(long)
  location: class org.lwjgl.demo.bgfx.Metaballs
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[118,17] method bgfx_encoder_set_transient_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int,short
  found: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[180,24] cannot find symbol
  symbol:   method bgfx_begin()
  location: class org.lwjgl.demo.bgfx.Raymarch
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[196,9] cannot find symbol
  symbol:   method bgfx_end(long)
  location: class org.lwjgl.demo.bgfx.Raymarch
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[301,24] cannot find symbol
  symbol:   method bgfx_begin()
  location: class org.lwjgl.demo.bgfx.Bump
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[340,17] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,short,int,int,short
  found: long,int,short,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[371,21] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,short,int,int,short
  found: long,int,short,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[391,9] cannot find symbol
  symbol:   method bgfx_end(long)
  location: class org.lwjgl.demo.bgfx.Bump
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[110,24] cannot find symbol
  symbol:   method bgfx_begin()
  location: class org.lwjgl.demo.bgfx.Cubes
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[129,17] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,short,int,int,short
  found: long,int,short,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[137,9] cannot find symbol
  symbol:   method bgfx_end(long)
  location: class org.lwjgl.demo.bgfx.Cubes
[INFO] 13 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.325 s
[INFO] Finished at: 2019-04-28T11:29:31-06:00
[INFO] Final Memory: 21M/84M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project lwjgl3-demos: Compilation failure: Compilation failure:
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[637,28] cannot find symbol
[ERROR]   symbol:   method bgfx_begin()
[ERROR]   location: class org.lwjgl.demo.bgfx.Metaballs
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[642,13] method bgfx_encoder_set_transient_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int,short
[ERROR]   found: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[650,13] cannot find symbol
[ERROR]   symbol:   method bgfx_end(long)
[ERROR]   location: class org.lwjgl.demo.bgfx.Metaballs
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[118,17] method bgfx_encoder_set_transient_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int,short
[ERROR]   found: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[180,24] cannot find symbol
[ERROR]   symbol:   method bgfx_begin()
[ERROR]   location: class org.lwjgl.demo.bgfx.Raymarch
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[196,9] cannot find symbol
[ERROR]   symbol:   method bgfx_end(long)
[ERROR]   location: class org.lwjgl.demo.bgfx.Raymarch
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[301,24] cannot find symbol
[ERROR]   symbol:   method bgfx_begin()
[ERROR]   location: class org.lwjgl.demo.bgfx.Bump
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[340,17] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,short,int,int,short
[ERROR]   found: long,int,short,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[371,21] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,short,int,int,short
[ERROR]   found: long,int,short,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[391,9] cannot find symbol
[ERROR]   symbol:   method bgfx_end(long)
[ERROR]   location: class org.lwjgl.demo.bgfx.Bump
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[110,24] cannot find symbol
[ERROR]   symbol:   method bgfx_begin()
[ERROR]   location: class org.lwjgl.demo.bgfx.Cubes
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[129,17] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,short,int,int,short
[ERROR]   found: long,int,short,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[137,9] cannot find symbol
[ERROR]   symbol:   method bgfx_end(long)
[ERROR]   location: class org.lwjgl.demo.bgfx.Cubes
[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/MojoFailureException
ken@ken-GA-970A-UD3:~/Development/lwjgl3-demos$ mvn package
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building lwjgl3-demos 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ lwjgl3-demos ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 231 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ lwjgl3-demos ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 90 source files to /home/ken/Development/lwjgl3-demos/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[637,28] cannot find symbol
  symbol:   method bgfx_begin()
  location: class org.lwjgl.demo.bgfx.Metaballs
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[642,13] method bgfx_encoder_set_transient_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int,short
  found: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[650,13] cannot find symbol
  symbol:   method bgfx_end(long)
  location: class org.lwjgl.demo.bgfx.Metaballs
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[118,17] method bgfx_encoder_set_transient_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int,short
  found: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[180,24] cannot find symbol
  symbol:   method bgfx_begin()
  location: class org.lwjgl.demo.bgfx.Raymarch
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[196,9] cannot find symbol
  symbol:   method bgfx_end(long)
  location: class org.lwjgl.demo.bgfx.Raymarch
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[301,24] cannot find symbol
  symbol:   method bgfx_begin()
  location: class org.lwjgl.demo.bgfx.Bump
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[340,17] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,short,int,int,short
  found: long,int,short,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[371,21] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,short,int,int,short
  found: long,int,short,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[391,9] cannot find symbol
  symbol:   method bgfx_end(long)
  location: class org.lwjgl.demo.bgfx.Bump
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[110,24] cannot find symbol
  symbol:   method bgfx_begin()
  location: class org.lwjgl.demo.bgfx.Cubes
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[129,17] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
  required: long,int,short,int,int,short
  found: long,int,short,int,int
  reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[137,9] cannot find symbol
  symbol:   method bgfx_end(long)
  location: class org.lwjgl.demo.bgfx.Cubes
[INFO] 13 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.556 s
[INFO] Finished at: 2019-04-28T11:31:04-06:00
[INFO] Final Memory: 17M/64M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project lwjgl3-demos: Compilation failure: Compilation failure:
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[637,28] cannot find symbol
[ERROR]   symbol:   method bgfx_begin()
[ERROR]   location: class org.lwjgl.demo.bgfx.Metaballs
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[642,13] method bgfx_encoder_set_transient_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int,short
[ERROR]   found: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Metaballs.java:[650,13] cannot find symbol
[ERROR]   symbol:   method bgfx_end(long)
[ERROR]   location: class org.lwjgl.demo.bgfx.Metaballs
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[118,17] method bgfx_encoder_set_transient_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int,short
[ERROR]   found: long,int,org.lwjgl.bgfx.BGFXTransientVertexBuffer,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[180,24] cannot find symbol
[ERROR]   symbol:   method bgfx_begin()
[ERROR]   location: class org.lwjgl.demo.bgfx.Raymarch
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Raymarch.java:[196,9] cannot find symbol
[ERROR]   symbol:   method bgfx_end(long)
[ERROR]   location: class org.lwjgl.demo.bgfx.Raymarch
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[301,24] cannot find symbol
[ERROR]   symbol:   method bgfx_begin()
[ERROR]   location: class org.lwjgl.demo.bgfx.Bump
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[340,17] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,short,int,int,short
[ERROR]   found: long,int,short,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[371,21] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,short,int,int,short
[ERROR]   found: long,int,short,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Bump.java:[391,9] cannot find symbol
[ERROR]   symbol:   method bgfx_end(long)
[ERROR]   location: class org.lwjgl.demo.bgfx.Bump
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[110,24] cannot find symbol
[ERROR]   symbol:   method bgfx_begin()
[ERROR]   location: class org.lwjgl.demo.bgfx.Cubes
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[129,17] method bgfx_encoder_set_vertex_buffer in class org.lwjgl.bgfx.BGFX cannot be applied to given types;
[ERROR]   required: long,int,short,int,int,short
[ERROR]   found: long,int,short,int,int
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /home/ken/Development/lwjgl3-demos/src/org/lwjgl/demo/bgfx/Cubes.java:[137,9] cannot find symbol
[ERROR]   symbol:   method bgfx_end(long)
[ERROR]   location: class org.lwjgl.demo.bgfx.Cubes
[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/MojoFailureException

If it matters java -version produces:
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)


*

Offline spasi

  • *****
  • 2160
    • WebHotelier
Re: Errors Building lwjgl3-demos
« Reply #1 on: May 01, 2019, 21:43:31 »
Hey quaternion,

The bgfx demos were using an older version of the API, they have now been updated with the latest changes. You'll also need LWJGL 3.2.2 build 9 (should be up soon), I just discovered another change that I'd missed.