Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Problems with ffmpeg/avcodec.dll /// Undefined type #288
Jnaerator makes the ffmpeg.jar but generates some code like that in the AvcodecLibrary.java:
instead of including the typedef from libavcodec/internal.h.
I cannot figure out what I did wrong? ...
Regards and thanks in advance.
Thanks for the workaround.
I now use this config.jnaertor file:
Then i had some compile errors with IntValueEnum typs like in AvutilLibrary:
I fixed this by changing it to:
Next step was to call avutil_version() like:
That didn't work so I upgraded to current bridj-0.7-SNAPSHOT-windows-only.jar as recommended in #196:
but still I get that output:
(Sorry for the partial German output. SCHWERWIEGEND == FATAL)
What can I try next?
Hi @egabl ,
Quick remark concerning the compilation error for generated IntValuedEnum types : this should be resolved with the latest version of BridJ, the change you've quoted appears to be wrong (infinite loop of fromValue calling itself !).
The errors you're seeing afterwards should only be an issue if you're trying to use a function that takes by-value struct arguments or returns structs by value. Is it the case ?
I ran jnaerator successfully on FFmpeg (v0.10.2; OSX homebrew) but it seems like no methods are generated in any of the .java files; only the constants are there.
but no methods like below exists:
My config.jnaerator is:
added a commit
Jun 5, 2012
Hi @rexguo ,
Thanks for your perseverance !
As for the complete no-functions blackout, I haven't investigated it yet but it might be related to these nasty stack overflows : could you please confirm it still happens after the fix ?
Hi Olivier, thanks for the fast response.
I built 0.11-SNAPSHOT from source and ran it again with the same config.jnaerator but the methods are still missing. This is the output:
Only 8 Java files (with only constants and enums) are generated and I'm expecting a lot more.
Just so I understand this correctly, jnaerator only requires the .h files from FFmpeg and not the .dylib's, is that correct?