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

Closed
egabl opened this Issue Mar 14, 2012 · 9 comments

Comments

Projects
None yet
3 participants
@egabl
Copy link

egabl commented Mar 14, 2012

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:

-I D:/video_resources_entpackt/ffmpeg-git-1eabd71/ 

"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avcodec-54.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avdevice-53.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avfilter-2.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avformat-54.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avutil-51.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/postproc-52.dll"  
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/swscale-2.dll"  

-library avcodec    D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavcodec/avcodec.h 
-library avdevice   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavdevice/avdevice.h
-library avfilter   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavfilter/avfilter.h
-library avformat   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavformat/avformat.h
-library avutil     D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavutil/avutil.h
-library postproc   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libpostproc/postprocess.h
-library swscale    D:/video_resources_entpackt/ffmpeg-git-1eabd71/libswscale/swscale.h

-runtime BridJ
-reification
-scalaStructSetters

-root com.nativelibs4java.ffmpeg

//-nocpp 
//-noJar -noComp
-arch win64 -jar ffmpeg.jar
//-o src/main/java
-v

Jnaerator makes the ffmpeg.jar but generates some code like that in the AvcodecLibrary.java:

    /// Undefined type
    public static interface AVCodecInternal {

    };

instead of including the typedef from libavcodec/internal.h.

I cannot figure out what I did wrong? ...

Regards and thanks in advance.
egabl

@ochafik

This comment has been minimized.

Copy link
Member

ochafik commented Mar 20, 2012

Hi @egabl ,

There must be some parsing bug that prevents things from going the way they should :-S
Have you tried adding libavcodec/internal.h before all the other files ? This kind of workaround has saved my life quite a few times :-D

Cheers

@egabl

This comment has been minimized.

Copy link

egabl commented Mar 21, 2012

Hi @ochafik

Thanks for the workaround.

I now use this config.jnaertor file:

-ID:/video_resources_entpackt/ffmpeg-git-1eabd71/ 
//-ID:/video_resources_entpackt/ffmpeg-git-1eabd71/ libavutil/

//D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavutil/*.h

"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avcodec-54.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avdevice-53.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avfilter-2.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avformat-54.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avutil-51.dll" 
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/postproc-52.dll"  
"D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/swscale-2.dll"  

-library avcodec    D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavcodec/internal.h 
//-library avcodec  D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavcodec/*.h 
-library avcodec    D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavcodec/avcodec.h 
-library avdevice   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavdevice/*.h
-library avdevice   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavdevice/avdevice.h
-library avfilter   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavfilter/*.h
-library avfilter   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavfilter/avfilter.h
//-library avformat   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavformat/avformat.h
-library avformat   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavformat/*.h
-library avutil     D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavutil/opt.h
-library avutil     D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavutil/*.h
-library avutil     D:/video_resources_entpackt/ffmpeg-git-1eabd71/libavutil/avutil.h
-library postproc   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libpostproc/*.h
-library postproc   D:/video_resources_entpackt/ffmpeg-git-1eabd71/libpostproc/postprocess.h
-library swscale    D:/video_resources_entpackt/ffmpeg-git-1eabd71/libswscale/*.h
-library swscale    D:/video_resources_entpackt/ffmpeg-git-1eabd71/libswscale/swscale.h

-runtime BridJ
-reification
-scalaStructSetters

-root com.nativelibs4java.ffmpeg

//-nocpp 
-noJar -noComp
//-jar ffmpeg.jar
-arch win64 
-o src/main/java
-v

Then i had some compile errors with IntValueEnum typs like in AvutilLibrary:

        public static IntValuedEnum<AVRounding > fromValue(int value) {
            return FlagSet.fromValue(value, values());
        }

I fixed this by changing it to:

        public static IntValuedEnum<AVRounding > fromValue(int value) {
            return AVRounding.fromValue(value);
        }

Next step was to call avutil_version() like:

        BridJ.getNativeLibrary("avutil", new File("D:/video_resources_entpackt/ffmpeg-git-1eabd71-win64-shared/bin/avutil-51.dll"));
        System.out.println(AvutilLibrary.avutil_version());

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:

test playing file: D:/video_resources/video/simpson.mp4
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native org.bridj.Pointer org.bridj.dyncall.DyncallLibrary.dcNewStruct(long,int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcCloseStruct(org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native long org.bridj.dyncall.DyncallLibrary.dcStructSize(org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcSubStruct(org.bridj.Pointer,long,int,long)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcStructField(org.bridj.Pointer,int,int,long)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native org.bridj.Pointer org.bridj.dyncall.DyncallLibrary.dcNewCallVM(long)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcFree(org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcReset(org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcMode(org.bridj.Pointer,int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgBool(org.bridj.Pointer,int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgChar(org.bridj.Pointer,byte)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgShort(org.bridj.Pointer,short)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgInt(org.bridj.Pointer,int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgLong(org.bridj.Pointer,long)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgLongLong(org.bridj.Pointer,long)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgFloat(org.bridj.Pointer,float)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgDouble(org.bridj.Pointer,double)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgPointer(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcArgStruct(org.bridj.Pointer,org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcCallVoid(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int org.bridj.dyncall.DyncallLibrary.dcCallBool(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native byte org.bridj.dyncall.DyncallLibrary.dcCallChar(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native short org.bridj.dyncall.DyncallLibrary.dcCallShort(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int org.bridj.dyncall.DyncallLibrary.dcCallInt(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native long org.bridj.dyncall.DyncallLibrary.dcCallLong(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native long org.bridj.dyncall.DyncallLibrary.dcCallLongLong(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native float org.bridj.dyncall.DyncallLibrary.dcCallFloat(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native double org.bridj.dyncall.DyncallLibrary.dcCallDouble(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native org.bridj.Pointer org.bridj.dyncall.DyncallLibrary.dcCallPointer(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcCallStruct(org.bridj.Pointer,org.bridj.Pointer,org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int org.bridj.dyncall.DyncallLibrary.dcGetError(org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native long org.bridj.dyncall.DyncallLibrary.dcStructAlignment(org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native void org.bridj.dyncall.DyncallLibrary.dcFreeStruct(org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native org.bridj.Pointer org.bridj.dyncall.DyncallLibrary.dcDefineStruct(org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_cmp_q(com.nativelibs4java.ffmpeg.avutil.AVRational,com.nativelibs4java.ffmpeg.avutil.AVRational)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native double com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_q2d(com.nativelibs4java.ffmpeg.avutil.AVRational)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:156)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:156)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:156)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:156)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:156)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native long com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_rescale_rnd(long,long,long,org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native long com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_rescale_q_rnd(long,com.nativelibs4java.ffmpeg.avutil.AVRational,com.nativelibs4java.ffmpeg.avutil.AVRational,org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVRational : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native org.bridj.Pointer com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_get_media_type_string(org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native byte com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_get_picture_type_char(org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_log2_c(int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_log2_16bit_c(int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_clip_c(int,int,int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native byte com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_clip_uint8_c(int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native byte com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_clip_int8_c(int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native short com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_clip_uint16_c(int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native short com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_clip_int16_c(int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_clipl_int32_c(long)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_clip_uintp2_c(int,int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native float com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_clipf_c(float,float,float)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_ceil_log2_c(int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_popcount_c(int)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_popcount64_c(long)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_size_mult(long,long,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVExtFloat : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.BridJ log
SCHWERWIEGEND: Unable to create low-level struct metadata for com.nativelibs4java.ffmpeg.avutil.AVExtFloat : won't be able to use it as a by-value function argument.
java.lang.UnsatisfiedLinkError: org.bridj.dyncall.DyncallLibrary.dcNewStruct(JI)Lorg/bridj/Pointer;
    at org.bridj.dyncall.DyncallLibrary.dcNewStruct(Native Method)
    at org.bridj.DyncallStructs.buildDCstruct(DyncallStructs.java:20)
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:342)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:156)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native void com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_log_default_callback(org.bridj.Pointer,int,org.bridj.Pointer,com.nativelibs4java.ffmpeg.avutil.AvutilLibrary$va_list) : java.util.NoSuchElementException: No ValueType for class com.nativelibs4java.ffmpeg.avutil.AvutilLibrary$va_list
java.util.NoSuchElementException: No ValueType for class com.nativelibs4java.ffmpeg.avutil.AvutilLibrary$va_list
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native void com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_log_format_line(org.bridj.Pointer,int,org.bridj.Pointer,com.nativelibs4java.ffmpeg.avutil.AvutilLibrary$va_list,org.bridj.Pointer,int,org.bridj.Pointer) : java.util.NoSuchElementException: No ValueType for class com.nativelibs4java.ffmpeg.avutil.AvutilLibrary$va_list
java.util.NoSuchElementException: No ValueType for class com.nativelibs4java.ffmpeg.avutil.AvutilLibrary$va_list
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native org.bridj.Pointer com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_x_if_null(org.bridj.Pointer,org.bridj.Pointer)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native org.bridj.Pointer com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_get_sample_fmt_name(org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native org.bridj.IntValuedEnum com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_get_sample_fmt(org.bridj.Pointer) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:156)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native org.bridj.IntValuedEnum com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_get_alt_sample_fmt(org.bridj.IntValuedEnum,int) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native org.bridj.Pointer com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_get_sample_fmt_string(org.bridj.Pointer,int,org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_get_bits_per_sample_fmt(org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_get_bytes_per_sample(org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_sample_fmt_is_planar(org.bridj.IntValuedEnum) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_samples_get_buffer_size(org.bridj.Pointer,int,int,org.bridj.IntValuedEnum,int) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_samples_fill_arrays(org.bridj.Pointer,org.bridj.Pointer,org.bridj.Pointer,int,int,org.bridj.IntValuedEnum,int) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Unable to register public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.av_samples_alloc(org.bridj.Pointer,org.bridj.Pointer,int,int,org.bridj.IntValuedEnum,int) : java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
java.util.NoSuchElementException: No ValueType for class org.bridj.IntValuedEnum
    at org.bridj.MethodCallInfo.getValueType(MethodCallInfo.java:352)
    at org.bridj.MethodCallInfo.init(MethodCallInfo.java:145)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:90)
    at org.bridj.MethodCallInfo.<init>(MethodCallInfo.java:56)
    at org.bridj.CRuntime$MethodCallInfoBuilder.apply(CRuntime.java:270)
    at org.bridj.CRuntime.registerNativeMethod(CRuntime.java:401)
    at org.bridj.CRuntime.register(CRuntime.java:357)
    at org.bridj.CRuntime.register(CRuntime.java:266)
    at org.bridj.BridJ.register(BridJ.java:292)
    at org.bridj.BridJ.register(BridJ.java:161)
    at com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.<clinit>(AvutilLibrary.java:26)
    at Test.main(Test.java:68)
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.ff_get_cpu_flags_arm()
21.03.2012 13:14:58 org.bridj.AbstractBridJRuntime log
SCHWERWIEGEND: Failed to get address of method public static native int com.nativelibs4java.ffmpeg.avutil.AvutilLibrary.ff_get_cpu_flags_ppc()
3353188

(Sorry for the partial German output. SCHWERWIEGEND == FATAL)

What can I try next?

Thanks!

Cheers

@ochafik

This comment has been minimized.

Copy link
Member

ochafik commented Mar 21, 2012

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

@egabl

This comment has been minimized.

Copy link

egabl commented Mar 26, 2012

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

@egabl egabl closed this Mar 26, 2012

@rexguo

This comment has been minimized.

Copy link

rexguo commented Jun 5, 2012

Sorry I made a careless mistake. I successfully jnaerated ffmpeg now.

@rexguo

This comment has been minimized.

Copy link

rexguo commented Jun 5, 2012

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.
e.g. these are generated:

    /// <i>native declaration : libswscale/swscale.h</i>
    public static final int SWS_CPU_CAPS_MMX = (int)-2147483648;

but no methods like below exists:

        public static native int av_new_packet(Pointer<AVPacket > pkt, int size);

My config.jnaerator is:

-I $(FFMPEG_HOME)

-library avcodec    $(FFMPEG_HOME)/libavcodec/*.h
-library avdevice   $(FFMPEG_HOME)/libavdevice/*.h
-library avfilter   $(FFMPEG_HOME)/libavfilter/*.h
-library avformat   $(FFMPEG_HOME)/libavformat/*.h
-library avutil     $(FFMPEG_HOME)/libavutil/*.h
-library postproc   $(FFMPEG_HOME)/libpostproc/*.h
-library swresample $(FFMPEG_HOME)/libswresample/*.h
-library swscale    $(FFMPEG_HOME)/libswscale/*.h

-mode Directory
-runtime BridJ
-reification
-scalaStructSetters

-root com.ffmpeg

-o src
-v

The output:


$ java -Xmx2g -jar jnaerator-0.10-shaded.jar 
Auto-configuring parser...
Jun 6, 2012 3:13:33 AM com.ochafik.lang.jnaerator.JNAeratorConfigUtils getProp
INFO: [environment] JNAERATOR_INCLUDE_PATH=.:/usr/include:/usr/include/c++/4.2.1:/usr/include/c++/4.2.1/tr1
Jun 6, 2012 3:13:33 AM com.ochafik.lang.jnaerator.JNAeratorConfigUtils getProp
INFO: [environment] JNAERATOR_FRAMEWORKS_PATH=/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks:/System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks:/System/Library/Frameworks:/Library/Frameworks:/Local/Library/Frameworks/:/Users/rexguo/Library/Frameworks
os.arch = x86_64
Jun 6, 2012 3:13:33 AM com.ochafik.lang.jnaerator.JNAerator jnaerate
INFO: Include path : 
    /usr/local/Cellar/ffmpeg/0.10.2/include
    .
    /usr/include
    /usr/include/c++/4.2.1
    /usr/include/c++/4.2.1/tr1
Parsing native headers...
/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:20:0: error: File not found: xmmintrin.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h:21:0: error: File not found: ConditionalMacros.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:49: error: Unexpected operator ?
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:67: error: missing ) in expression
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:67: error: missing ) in expression
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:67: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:67: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:80: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:81: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:81: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:82: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:110: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:112: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:115: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:115: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:116: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:117: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:-1:-1: warning: No newline before end of file
/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:36:165: warning: No newline before end of file
/usr/local/Cellar/ffmpeg/0.10.2/include/libavcodec/vdpau.h:44:0: error: File not found: vdpau/vdpau.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/usr/local/Cellar/ffmpeg/0.10.2/include/libavcodec/vdpau.h:45:0: error: File not found: vdpau/vdpau_x11.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/usr/local/Cellar/ffmpeg/0.10.2/include/libavcodec/dxva2.h:26:0: error: File not found: d3d9.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/usr/local/Cellar/ffmpeg/0.10.2/include/libavcodec/dxva2.h:27:0: error: File not found: dxva2api.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
Writing preprocessor output to '_jnaerator.preprocessed.c'
Writing preprocessor macros to '_jnaerator.macros.cpp'
line 1:1 no viable alternative at character '\'
line 1:19 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:22 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:11 no viable alternative at character '?'
line 1:25 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:14 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:23 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:24 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:20 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:8 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:11 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:28 mismatched character '<EOF>' expecting '"'
line 1:2 mismatched character 'C' expecting '.'
line 1:30 mismatched character '<EOF>' expecting '.'
line 1:1 no viable alternative at character '\'
line 1:13 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:5 no viable alternative at character '\'
line 1:9 no viable alternative at character '\'
line 1:1 no viable alternative at character '\'
line 1:1 no viable alternative at character '\'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:2 mismatched character 'G' expecting '.'
line 1:29 mismatched character '<EOF>' expecting '.'
line 1:1 no viable alternative at character '\'
line 1:20 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:12 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:13 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:13 no viable alternative at character '?'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:1 no viable alternative at character '\'
line 1:11 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:20 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:14 mismatched character '<EOF>' expecting '"'
line 1:2 mismatched character 'G' expecting '.'
line 1:29 mismatched character '<EOF>' expecting '.'
line 1:1 no viable alternative at character '\'
line 1:1 no viable alternative at character '\'
line 1:1 no viable alternative at character '\'
line 1:18 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:11 no viable alternative at character '?'
line 1:27 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:17 mismatched character '<EOF>' expecting '"'
Failed to convert define '_POSIX_VDISABLE => ((unsigned char)'\377'):
java.lang.StringIndexOutOfBoundsException: String index out of range: 4
line 1:1 no viable alternative at character '\'
line 1:9 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:11 no viable alternative at character '?'
line 1:30 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:17 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:11 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:10 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:12 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:20 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:5 no viable alternative at character '\'
line 1:9 no viable alternative at character '\'
line 1:1 no viable alternative at character '\'
line 1:18 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:20 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:17 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:14 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:12 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:19 mismatched character '<EOF>' expecting '"'
line 1:2 mismatched character 'P' expecting '.'
line 1:38 mismatched character '<EOF>' expecting '.'
line 1:1 no viable alternative at character '\'
line 1:18 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:23 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:13 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:12 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:9 no viable alternative at character '?'
line 1:11 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:14 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:20 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:12 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:17 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:20 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:2 mismatched character 'G' expecting '.'
line 1:33 mismatched character '<EOF>' expecting '.'
Failed to convert define 'AV_NOPTS_VALUE => INT64_C(0x8000000000000000):
java.lang.NumberFormatException: Parsing hex : "0x8000000000000000ll"
line 1:1 no viable alternative at character '\'
line 1:20 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:11 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:13 no viable alternative at character '?'
line 1:15 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:16 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:18 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:17 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:18 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:18 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:18 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:14 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:14 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:13 mismatched character '<EOF>' expecting '"'
line 1:2 mismatched character 'G' expecting '.'
line 1:31 mismatched character '<EOF>' expecting '.'
line 1:29 no viable alternative at character '\'
line 1:33 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:1 no viable alternative at character '\'
line 1:12 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:12 mismatched character '<EOF>' expecting '"'
line 1:1 no viable alternative at character '\'
line 1:17 mismatched character '<EOF>' expecting '"'
Normalizing parsed code...
Writing raw parsed sources to '_jnaerator.rawParsed.cpp'
Writing normalized parsed sources to '_jnaerator.normalizedParsed.cpp'
Generating libraries...
Generating SwscaleLibrary.java
Generating AvformatLibrary.java
Generating PostprocLibrary.java
Generating AvutilLibrary.java
Generating AvcodecLibrary.java
Generating AvdeviceLibrary.java
Generating SwresampleLibrary.java
Generating AvfilterLibrary.java
#
# SUCCESS: JNAeration completed !
# Output mode is 'Directory(Bindings sources in simple file hierarchy)
#
@ochafik

This comment has been minimized.

Copy link
Member

ochafik commented Jun 5, 2012

Hi @rexguo ,

Thanks for your perseverance !
You've uncovered a bug in typedef resolution that was thankfully easy to fix, so this is now in the latest 0.11-SNAPSHOT.

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

@rexguo

This comment has been minimized.

Copy link

rexguo commented Jun 6, 2012

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:

$ java -Xmx2g -jar jnaerator-0.11-SNAPSHOT-shaded.jar 
Auto-configuring parser...
Jun 6, 2012 1:19:52 PM com.ochafik.lang.jnaerator.JNAeratorConfigUtils getProp
INFO: [environment] JNAERATOR_INCLUDE_PATH=.:/usr/include:/usr/include/c++/4.2.1:/usr/include/c++/4.2.1/tr1
Jun 6, 2012 1:19:52 PM com.ochafik.lang.jnaerator.JNAeratorConfigUtils getProp
INFO: [environment] JNAERATOR_FRAMEWORKS_PATH=/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks:/System/Library/Frameworks/ApplicationServices.framework/Versions/Current/Frameworks:/System/Library/Frameworks:/Library/Frameworks:/Local/Library/Frameworks/:/Users/rexguo/Library/Frameworks
os.arch = x86_64
Jun 6, 2012 1:19:52 PM com.ochafik.lang.jnaerator.JNAerator jnaerate
INFO: Include path : 
    /usr/local/Cellar/ffmpeg/0.10.2/include
    .
    /usr/include
    /usr/include/c++/4.2.1
    /usr/include/c++/4.2.1/tr1
Parsing native headers...
/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:20:0: error: File not found: xmmintrin.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h:21:0: error: File not found: ConditionalMacros.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:49: error: Unexpected operator ?
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:67: error: missing ) in expression
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:67: error: missing ) in expression
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:67: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:67: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:80: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:81: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:81: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:82: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:110: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:112: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:115: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:115: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:116: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:32:117: warning: Unexpected nonwhite token
/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:-1:-1: warning: No newline before end of file
/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:36:165: warning: No newline before end of file
/usr/local/Cellar/ffmpeg/0.10.2/include/libavcodec/vdpau.h:44:0: error: File not found: vdpau/vdpau.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/usr/local/Cellar/ffmpeg/0.10.2/include/libavcodec/vdpau.h:45:0: error: File not found: vdpau/vdpau_x11.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/usr/local/Cellar/ffmpeg/0.10.2/include/libavcodec/dxva2.h:26:0: error: File not found: d3d9.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
/usr/local/Cellar/ffmpeg/0.10.2/include/libavcodec/dxva2.h:27:0: error: File not found: dxva2api.h in /usr/local/Cellar/ffmpeg/0.10.2/include . /usr/include /usr/include/c++/4.2.1 /usr/include/c++/4.2.1/tr1
Writing preprocessor output to '_jnaerator.preprocessed.c'
Writing preprocessor macros to '_jnaerator.macros.cpp'
line 1:1 no viable alternative at character '\'
line 1:19 mismatched character '<EOF>' expecting '"'
...[snip <EOF> errors]..
Normalizing parsed code...
Writing raw parsed sources to '_jnaerator.rawParsed.cpp'
Writing normalized parsed sources to '_jnaerator.normalizedParsed.cpp'
Generating libraries...
Generating SwscaleLibrary.java
Generating AvformatLibrary.java
Generating PostprocLibrary.java
Generating AvutilLibrary.java
Generating AvcodecLibrary.java
Generating AvdeviceLibrary.java
Generating SwresampleLibrary.java
Generating AvfilterLibrary.java
#
# SUCCESS: JNAeration completed !
# Output mode is 'Directory(Bindings sources in simple file hierarchy)
#

Only 8 Java files (with only constants and enums) are generated and I'm expecting a lot more.
The output files are here:
https://gist.github.com/2880074

Just so I understand this correctly, jnaerator only requires the .h files from FFmpeg and not the .dylib's, is that correct?

@ochafik

This comment has been minimized.

Copy link
Member

ochafik commented Feb 12, 2013

Hi @rexguo,

JNAerator indeed only needs header files.

Could you please try with the -parseChunks option?

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment