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
Problems with ffmpeg/avcodec.dll /// Undefined type #288
Comments
Hi @egabl , There must be some parsing bug that prevents things from going the way they should :-S Cheers |
Hi @ochafik 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? Thanks! Cheers |
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 ? Cheers |
Hi @ochafik , Thanks for your comment. True the IntValuedEnum change was a bad idea from mi. I will keep on trying to generate the ffmpeg wrapper. Cheers |
Sorry I made a careless mistake. I successfully jnaerated ffmpeg now. |
Hi Olivier, 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:
The output:
|
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 ? Cheers |
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? |
Hi @rexguo, JNAerator indeed only needs header files. Could you please try with the Cheers |
Hello,
I am trying to run the latest (v0.9.10 jnaerator-0.9.10-SNAPSHOT-20120310.jar) jnaerator against the latest ffmpeg Windows 64bit libraries (built by http://ffmpeg.zeranoe.com/builds/ Source Code 64-bit DLLs). I modified the config.jnaerator to create a .jar that includes the native DLLs aswell:
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.
egabl
The text was updated successfully, but these errors were encountered: