x265 not found (unknown type name 'x265_intra_data')

Issue #79 closed
jb_alvarado created an issue

Hello everybody, today I found out that I can not build anymore ffmpeg with x265, last week it was working normal. Now I get the error message x265 not found and in the log file I have this written:

In file included from D:/_System/mingw64_August2014/msys64/tmp/ffconf.r5RVCpEH.c:1:0:
D:/_System/mingw64_August2014/local64/include/x265.h:117:5: error: unknown type name 'x265_inter_data'
     x265_inter_data* interData;
     ^
D:/_System/mingw64_August2014/local64/include/x265.h:118:5: error: unknown type name 'x265_intra_data'
     x265_intra_data* intraData;
     ^
D:/_System/mingw64_August2014/local64/include/x265.h:180:5: error: unknown type name 'x265_analysis_data'
     x265_analysis_data analysisData;
     ^
D:/_System/mingw64_August2014/msys64/tmp/ffconf.r5RVCpEH.c: In function 'check_x265_encoder_encode':
D:/_System/mingw64_August2014/msys64/tmp/ffconf.r5RVCpEH.c:2:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 long check_x265_encoder_encode(void) { return (long) x265_encoder_encode; }
                                               ^
ERROR: x265 not found

Have you a idea what is happen here? System: msys2, mingw-w64, 64 bit

Regards

jb_

Comments (4)

  1. Former user Account Deleted

    They try to use a structure without the struct keyword, or they forgot to do a typedef! A temp fix could be (patch file):

    --- x265.h  2014-09-12 18:25:22.785168012 +0200
    +++ x265_patch.h    2014-09-12 18:27:42.696706926 +0200
    @@ -89,7 +89,7 @@
     } x265_nal;
    
     /* Stores inter (motion estimation) analysis data for a single frame */
    -struct x265_inter_data
    +typedef struct x265_inter_data
     {
         uint32_t zOrder;
         int      ref[2];
    @@ -99,26 +99,29 @@
         uint32_t depth;
         int      poc;
         uint32_t cuAddr;
    -};
    +}x265_inter_data;
    +
    
     /* Stores intra (motion estimation) analysis data for a single frame */
    -struct x265_intra_data
    +typedef struct x265_intra_data
     {
         uint8_t*  depth;
         uint8_t*  modes;
         char*     partSizes;
         int*      poc;
         uint32_t* cuAddr;
    -};
    +}x265_intra_data;
    +
    
     /* Stores all analysis data for a single frame */
    -struct x265_analysis_data
    +typedef struct x265_analysis_data
     {
         x265_inter_data* interData;
         x265_intra_data* intraData;
         uint32_t         numCUsInFrame;
         uint32_t         numPartitions;
    -};
    +}x265_analysis_data;
    +
    
     /* Used to pass pictures into the encoder, and to get picture data back out of
      * the encoder.  The input and output semantics are different */
    
  2. Log in to comment