-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some header files entirely skipped #240
Comments
Could you share the header file so I can debug this? |
Absolutely. Added for reference: https://github.com/ianshmean/ImageIO.jl/tree/master/gen/libjpeg/ref_headers thanks! |
It looks like you forgot to add macro definitions to Clang's cmd arguments. e.g. |
Ah, that helps bring a few more defs into That's with:
|
you need to define |
But that's defined in |
Explicitly setting I'm now hitting an odd bug.. these two structs reference each other.. which breaks loading in the wrapped version: header:
Wrapped version: const jpeg_saved_marker_ptr = Ptr{jpeg_marker_struct}
struct jpeg_marker_struct
next::jpeg_saved_marker_ptr
marker::UINT8
original_length::UInt32
data_length::UInt32
data::Ptr{JOCTET}
end ?? |
Julia still cannot handle forward declaration yet(keno has a PR#32658 for this). the workaround is to use
BTW, Julia do support some kinda "forward declaration" in the following way:
Note that this only works if |
I see ok. I've switched in the Ptr{Cvoid} approach. How do you recommend adjusting wrapped files? I'd like to make the wrap process repeatable, but the idea of doing a multiline |
Since those forward decls are very easy to spot and there are only a few API changes between minor releases, I just use git and manually select and commit new changes when upgrading the lib to a newer minor version. To make the whole process fully automatic is cool, but maybe also a little bit overkill, I guess. :P |
My
libjpeg
wrapper completes successfully, but on loading the output hits errors because of missing consts, the first of which is defined injmorecfg.h
and I noticed the following warnings. Why are those provided headers being skipped?Wrapper code: https://github.com/ianshmean/ImageIO.jl/blob/master/gen/libjpeg/wrap_libjpeg.jl
The text was updated successfully, but these errors were encountered: