Skip to content

Build using JOGL 2.6 because 2.5 crashes on m series macs. #13

@odinsbane

Description

@odinsbane

I was trying to build the java3d-examples and I cannot use them because jogl 2.5 crashes on osx with mseries macs. I tried just including the newer jogl libs in the java3d-exampls/pom.xml but I think that causes some contradicting dependencies.

If however, I rebuilt java3d targeting jogamp version 2.6 then I can build and run the java3d examples.

I chagned the pom in java3d-core, java3d-utils, vecmath.

  • changed the version to 1.73-SNAPSHOT
  • changed jogamp to 2.6 (only java3d-core and java3d-utils)

Some symbols were missing in java3d so I also had to modify Jogl2es2Pipeline.java to get it to compile.

diff --git a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java
index f7729e5..bba400f 100644
--- a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java
+++ b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java
@@ -6086,20 +6086,20 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline
                        case GL3.GL_COMPRESSED_SRGB8_ETC2:
                        case GL3.GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:
                                // ASTC
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_4x4_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_5x4_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_5x5_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_6x5_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_6x6_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_8x5_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_8x6_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_8x8_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_10x5_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_10x6_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_10x8_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_10x10_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_12x10_KHR:
-                       case GL3.GL_COMPRESSED_RGBA_ASTC_12x12_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_4x4_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_5x4_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_5x5_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_6x5_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_6x6_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_8x5_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_8x6_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_8x8_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_10x5_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_10x6_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_10x8_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_10x10_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_12x10_KHR:
+                       //case GL3.GL_COMPRESSED_RGBA_ASTC_12x12_KHR:

Then I used maven and installed the three packages to my local repository and target 1.7.3-SNAPSHOT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions