Error Running jextract on d3d12.h
Michael Ennen
mike.ennen at gmail.com
Tue Sep 8 06:05:29 UTC 2020
I should note that I also tried adding the DirectX 12 libraries like so:
& $panamaHome\bin\jextract -J-Xmx8G -L $inc\um\x64 -L C:\Windows\System32\
-I $inc\um -l d3d12 -o d3d12.jar --record-library-path $inc\um\d3d12.h
(first -L argument)
On Mon, Sep 7, 2020 at 4:29 PM Michael Ennen <mike.ennen at gmail.com> wrote:
> 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
>
--
Michael Ennen
More information about the panama-dev
mailing list