Error Running jextract on d3d12.h

Michael Ennen mike.ennen at gmail.com
Mon Sep 7 23:29:33 UTC 2020


Hi Panama Devs,

Sorry if it is too early to post feedback like this.

I am attempting to run `jextract` on the d3d12.h DirectX 12 header file so
that I can use panama to interact with native DirectX 12 from Java.

I am attempting to run jextract as follows:

$inc ="C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0"
$panamaHome = "C:\Program Files\Java\jdk-14-panama"
& $panamaHome\bin\jextract -J-Xmx8G -L C:\Windows\System32\ -I $inc\um -l
d3d12 -o d3d12.jar --record-library-path $inc\um\d3d12.h

When I do I get the following error:

java.lang.RuntimeException: C:\Program Files (x86)\Windows
Kits\10\Include\10.0.17763.0\um/d3d12sdklayers.h:2730:15: error: unknown
type name 'D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_UNSUPPORTED'

It is quite probable I have the command line arguments wrong. I read the
jextract --help arguments list and the examples document (for the 2 Windows
examples) and this is what I came up with.

Thanks for your work.
-- 
Michael Ennen


More information about the panama-dev mailing list