ResourceScope missing OS/X
Michael Hall
mik3hall at gmail.com
Sun Mar 26 13:22:58 UTC 2023
> On Mar 26, 2023, at 5:07 AM, Duncan Gittins <duncan.gittins at gmail.com> wrote:
>
> It looks like you have used jextract which was not built for JDK20,as ResourceScope class is from earlier JDK version.
> You'll need to build and generate with a JDK20 compatible jextract or wait for the team to drop a compatible build here: https://jdk.java.net/jextract/
>
> Kind regards
>
> Duncan
>
>
I had problems for a while because I had a jdk-19 installed for my default so I thought I’d use my GitHub built image that I was assuming was a jdk-20. It had however at some point become a jdk-21 causing errors on the —release, So I installed the latest jdk-20 as my default and changed to using that. I found that no jextract was included and that there was a separate GitHub project and did build my own.
So my jextract invocation looked like…
jextract='/Users/mjh/Documents/GitHub/jextract/build/jextract/bin/jextract'
$jextract --output . --source -t opengl.macos.v13_2_1 \
-lGL -l/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/GLUT.framework/Versions/A/GLUT.tbd \
-I /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include \
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/GLUT.framework/Versions/A/Headers/glut.h
# -C -F/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/ \
Modified from what was indicated to be not working in the panama-gl project. It generates but with the compile errors.
I noticed later yesterday one of the errors was that MemoryAddress also isn’t there which I had used standalone not that long ago. jdk-19 again I think? Has that also been removed? The source isn’t there for either in what I have for jdk-21.
Possibly I didn’t do a completely clean install somehow but had something leftover from earlier runs with an older release but I didn’t think it worked at all until I was forced to ensure jdk-20.
In a while I’ll do another attempt and try to make sure everything is clean as I go.
Thanks.
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20230326/471c81ec/attachment.htm>
More information about the jextract-dev
mailing list