error: package com.jogamp.common does not exist

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

error: package com.jogamp.common does not exist

thierry
Hello, Trying to build jogamp-jogl 2.6.0 on FreeBSD with JDK-21 fails with this message:
java.generate.copy2temp:
     [echo] 
     [echo] GlueGen has successfully generated files.

javah.drmgbm:

javah.x11:
    [javac] Compiling 2 source files to /usr/ports/graphics/jogamp-jogl-2.6.0/work/jogl/build/nativewindow/classes
    [javac] warning: [options] source value 8 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 8 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /usr/ports/graphics/jogamp-jogl-2.6.0/work/jogl/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java:48: error: package com.jogamp.common does not exist
    [javac] import com.jogamp.common.ExceptionUtils;
    [javac]                         ^
    [javac] /usr/ports/graphics/jogamp-jogl-2.6.0/work/jogl/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java:49: error: package com.jogamp.common.util does not exist
    [javac] import com.jogamp.common.util.LongObjectHashMap;
    [javac]                              ^
    [javac] /usr/ports/graphics/jogamp-jogl-2.6.0/work/jogl/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java:50: error: package com.jogamp.common.util does not exist
    [javac] import com.jogamp.common.util.PropertyAccess;
    [javac]                              ^
    [javac] /usr/ports/graphics/jogamp-jogl-2.6.0/work/jogl/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java:172: error: cannot find symbol
    [javac]     private static LongObjectHashMap openDisplayMap = new LongObjectHashMap(); // handle -> name
    [javac]                    ^
    [javac]   symbol:   class LongObjectHashMap
    [javac]   location: class X11Util
    [javac] /usr/ports/graphics/jogamp-jogl-2.6.0/work/jogl/build/nativewindow/gensrc/classes/jogamp/nativewindow/x11/X11Lib.java:9: error: package com.jogamp.common.util does not exist
    [javac] import com.jogamp.common.util.Bitfield;
    [javac]                              ^
Beginning is:
jogamp.env.validation:
     [echo] ant.version                Apache Ant(TM) version 1.10.15 compiled on August 25 2024
     [echo] ant.java.version           21
     [echo] java.version               21.0.8
     [echo] java.home                  /usr/local/openjdk21
     [echo] jvmJava.exe                /usr/local/openjdk21/bin/java
     [echo] jvmJava8.exe               ${jvmJava8.exe}
     [echo] minJava21                  true
     [echo] minJava17                  true
     [echo] minJava11                  true
     [echo] minJava9                   true
     [echo] minJava8                   true
--
Th. Thomas
Reply | Threaded
Open this post in threaded view
|

Re: error: package com.jogamp.common does not exist

gouessej
Administrator
Hello

Have you strictly followed our build instructions?

PropertyAccess is here:
https://jogamp.org/cgit/gluegen.git/tree/src/java/com/jogamp/common/util/PropertyAccess.java
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: error: package com.jogamp.common does not exist

Sven Gothel
Administrator
In reply to this post by thierry
Hi thierry,

in case you haven't resolved this yet
and assuming you surely read the 'Build Steps' in
Howto-build <https://jogamp.org/jogl/doc/HowToBuild.html>:

I would suggest a jogamp-2.6.0 ports folder to simplify things,
containing all desired modules: gluegen, joal, jogl and perhaps jocl.
This way, you will have no troubles finding gluegen and joal etc,
relative to the parent folder.

Otherwise, you have to inject the gluegen (and maybe joal) location
by defining 'gluegen.root' property (see jogl/build/build-common.xml).
Same goes for 'joal.root'.

Hope this helps.
Best of luck to update/integrate JogAmp into ports!

PS: I tried to build FreeBSD powerpc big-endian ports
to utilize as a big-endian test-machine a while ago and sadly failed.
Can you give me the proper forum sub-section where I could ask these questions?
Thank you.