Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8280227

jextract cannot extract structs from header file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • repo-panama
    • tools
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Tested on OSX and linux

      A DESCRIPTION OF THE PROBLEM :
      I want to use project libheif via panama and therefore used jextract to generate the java files which generally works except for sturcts parts

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Download https://github.com/strukturag/libheif
      2. compile libheif
      3. execute the jextract tool like:
      /Library/Java/jdk-17.jdk/Contents/Home/bin/jextract -d . --source -t org.libheif.linuxosx -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include --dump-includes libheif-osx.conf ./heif_api_structs.h

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      That for all struct types java files are created
      ACTUAL -
      WARNING: Using incubator modules: jdk.incubator.jextract, jdk.incubator.foreign
      ./error.h:28:10: fatal error: 'cinttypes' file not found

      ---------- BEGIN SOURCE ----------
      https://github.com/strukturag/libheif
      ---------- END SOURCE ----------

      FREQUENCY : always


            sundar Sundararajan Athijegannathan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: