Greetings

I am attempting to compile ffmpeg-1.2.2 as per the blfs instruction:-
( http://www.linuxfromscratch.org/blfs/view/svn/multimedia/ffmpeg.html ).
I have the "" Recommended (For Hardware Video Decoding)"" installed.

The compilaion reaches libavcodec/crystalhd.c  then hell breaks loose:- (shown 
below)

########################################
CC      libavcodec/crystalhd.o
In file included from libavcodec/crystalhd.c:82:0:
/usr/include/libcrystalhd/bc_dts_types.h:99:28: error: conflicting types for 
'uint64_t'
 typedef unsigned long long uint64_t;
                            ^
In file included from /usr/lib/gcc/x86_64-unknown-linux-
gnu/4.8.1/include/stdint.h:9:0,
                 from /usr/include/inttypes.h:27,
                 from libavcodec/crystalhd.c:77:
/usr/include/stdint.h:55:27: note: previous declaration of 'uint64_t' was here
 typedef unsigned long int uint64_t;
                           ^
In file included from libavcodec/crystalhd.c:82:0:
/usr/include/libcrystalhd/bc_dts_types.h:103:22: error: conflicting types for 
'int32_t'
 typedef signed long  int32_t;
                      ^
In file included from /usr/lib/gcc/x86_64-unknown-linux-
gnu/4.8.1/include/stdint.h:9:0,
                 from /usr/include/inttypes.h:27,
                 from libavcodec/crystalhd.c:77:
/usr/include/stdint.h:38:15: note: previous declaration of 'int32_t' was here
 typedef int   int32_t;
               ^
In file included from libavcodec/crystalhd.c:82:0:
/usr/include/libcrystalhd/bc_dts_types.h:107:23: error: conflicting types for 
'uint32_t'
 typedef unsigned long uint32_t;
                       ^
In file included from /usr/lib/gcc/x86_64-unknown-linux-
gnu/4.8.1/include/stdint.h:9:0,
                 from /usr/include/inttypes.h:27,
                 from libavcodec/crystalhd.c:77:
/usr/include/stdint.h:51:23: note: previous declaration of 'uint32_t' was here
 typedef unsigned int  uint32_t;
                       ^
In file included from libavcodec/crystalhd.c:84:0:
/usr/include/libcrystalhd/libcrystalhd_if.h:149:5: error: unknown type name 
'HANDLE'
     HANDLE   *hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:177:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:215:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:255:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:300:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:339:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:371:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:402:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:452:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:486:5: error: unknown type name 
'HANDLE'
     HANDLE     hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:522:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:569:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:604:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:635:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:666:5: error: unknown type name 
'HANDLE'
     HANDLE  hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:695:5: error: unknown type name 
'HANDLE'
     HANDLE    hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:726:5: error: unknown type name 
'HANDLE'
     HANDLE    hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:757:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:786:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:829:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:878:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:908:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:954:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:990:5: error: unknown type name 
'HANDLE'
     HANDLE    hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1031:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1068:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1104:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1138:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1170:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1198:5: error: unknown type name 
'HANDLE'
     HANDLE hDevice
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1228:5: error: unknown type name 
'HANDLE'
     HANDLE  hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1265:5: error: unknown type name 
'HANDLE'
     HANDLE  hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1298:5: error: unknown type name 
'HANDLE'
     HANDLE  hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1329:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1363:5: error: unknown type name 
'HANDLE'
     HANDLE   hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1393:5: error: unknown type name 
'HANDLE'
     HANDLE          hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1423:2: error: unknown type name 
'HANDLE'
  HANDLE  hDevice,
  ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1451:2: error: unknown type name 
'HANDLE'
  HANDLE  hDevice,
  ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1478:5: error: unknown type name 
'HANDLE'
     HANDLE  hDevice,
     ^
/usr/include/libcrystalhd/libcrystalhd_if.h:1507:5: error: unknown type name 
'HANDLE'
     HANDLE  hDevice,
     ^
libavcodec/crystalhd.c:126:5: error: unknown type name 'HANDLE'
     HANDLE dev;
     ^
libavcodec/crystalhd.c: In function 'print_frame_info':
libavcodec/crystalhd.c:189:5: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
     av_log(priv->avctx, AV_LOG_VERBOSE, "\tYBuffSz: %u\n", output->YbuffSz);
     ^
libavcodec/crystalhd.c:191:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->YBuffDoneSz);
            ^
libavcodec/crystalhd.c:193:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->UVBuffDoneSz);
            ^
libavcodec/crystalhd.c:195:12: warning: format '%lu' expects argument of type 
'long unsigned int', but argument 4 has type 'uint64_t' [-Wformat=]
            output->PicInfo.timeStamp);
            ^
libavcodec/crystalhd.c:197:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.picture_number);
            ^
libavcodec/crystalhd.c:199:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.width);
            ^
libavcodec/crystalhd.c:201:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.height);
            ^
libavcodec/crystalhd.c:203:12: warning: format '%x' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.chroma_format);
            ^
libavcodec/crystalhd.c:205:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.pulldown);
            ^
libavcodec/crystalhd.c:207:12: warning: format '%x' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.flags);
            ^
libavcodec/crystalhd.c:209:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.frame_rate);
            ^
libavcodec/crystalhd.c:211:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.aspect_ratio);
            ^
libavcodec/crystalhd.c:213:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.colour_primaries);
            ^
libavcodec/crystalhd.c:215:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.picture_meta_payload);
            ^
libavcodec/crystalhd.c:217:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.sess_num);
            ^
libavcodec/crystalhd.c:219:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.ycom);
            ^
libavcodec/crystalhd.c:221:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.custom_aspect_ratio_width_height);
            ^
libavcodec/crystalhd.c:223:12: warning: format '%u' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.n_drop);
            ^
libavcodec/crystalhd.c:225:12: warning: format '%x' expects argument of type 
'unsigned int', but argument 4 has type 'uint32_t' [-Wformat=]
            output->PicInfo.other.h264.valid);
            ^
libavcodec/crystalhd.c: In function 'flush':
libavcodec/crystalhd.c:331:5: error: implicit declaration of function 
'DtsFlushInput' [-Werror=implicit-function-declaration]
     DtsFlushInput(priv->dev, 4);
     ^
libavcodec/crystalhd.c: In function 'uninit':
libavcodec/crystalhd.c:338:5: error: unknown type name 'HANDLE'
     HANDLE device;
     ^
libavcodec/crystalhd.c:341:5: error: implicit declaration of function 
'DtsStopDecoder' [-Werror=implicit-function-declaration]
     DtsStopDecoder(device);
     ^
libavcodec/crystalhd.c:342:5: error: implicit declaration of function 
'DtsCloseDecoder' [-Werror=implicit-function-declaration]
     DtsCloseDecoder(device);
     ^
libavcodec/crystalhd.c:343:5: error: implicit declaration of function 
'DtsDeviceClose' [-Werror=implicit-function-declaration]
     DtsDeviceClose(device);
     ^
libavcodec/crystalhd.c: In function 'init':
libavcodec/crystalhd.c:387:24: error: 'FALSE' undeclared (first use in this 
function)
         .FGTEnable   = FALSE,
                        ^
libavcodec/crystalhd.c:387:24: note: each undeclared identifier is reported 
only once for each function it appears in
libavcodec/crystalhd.c:388:24: error: 'TRUE' undeclared (first use in this 
function)
         .Progressive = TRUE,
                        ^
libavcodec/crystalhd.c:389:37: error: 'vdecFrameRate59_94' undeclared (first 
use in this function)
         .OptFlags    = 0x80000000 | vdecFrameRate59_94 | 0x40,
                                     ^
In file included from libavcodec/crystalhd.c:83:0:
libavcodec/crystalhd.c:401:41: error: 'vdecRESOLUTION_1080p23_976' undeclared 
(first use in this function)
                     DTS_DFLT_RESOLUTION(vdecRESOLUTION_1080p23_976);
                                         ^
libavcodec/crystalhd.c:464:15: error: 'BC_INPUT_FORMAT' has no member named 
'ScalingParams'
         format.ScalingParams.sWidth = priv->sWidth;
               ^
libavcodec/crystalhd.c:470:5: error: implicit declaration of function 
'DtsDeviceOpen' [-Werror=implicit-function-declaration]
     ret = DtsDeviceOpen(&priv->dev, mode);
     ^
libavcodec/crystalhd.c:476:5: error: implicit declaration of function 
'DtsCrystalHDVersion' [-Werror=implicit-function-declaration]
     ret = DtsCrystalHDVersion(priv->dev, &version);
     ^
libavcodec/crystalhd.c:491:5: error: implicit declaration of function 
'DtsSetInputFormat' [-Werror=implicit-function-declaration]
     ret = DtsSetInputFormat(priv->dev, &format);
     ^
libavcodec/crystalhd.c:497:5: error: implicit declaration of function 
'DtsOpenDecoder' [-Werror=implicit-function-declaration]
     ret = DtsOpenDecoder(priv->dev, BC_STREAM_TYPE_ES);
     ^
libavcodec/crystalhd.c:503:5: error: implicit declaration of function 
'DtsSetColorSpace' [-Werror=implicit-function-declaration]
     ret = DtsSetColorSpace(priv->dev, OUTPUT_MODE422_YUY2);
     ^
libavcodec/crystalhd.c:508:5: error: implicit declaration of function 
'DtsStartDecoder' [-Werror=implicit-function-declaration]
     ret = DtsStartDecoder(priv->dev);
     ^
libavcodec/crystalhd.c:513:5: error: implicit declaration of function 
'DtsStartCapture' [-Werror=implicit-function-declaration]
     ret = DtsStartCapture(priv->dev);
     ^
libavcodec/crystalhd.c: In function 'copy_frame':
libavcodec/crystalhd.c:550:53: error: 'VDEC_FLAG_BOTTOMFIELD' undeclared 
(first use in this function)
     uint8_t bottom_field = (output->PicInfo.flags & VDEC_FLAG_BOTTOMFIELD) ==
                                                     ^
libavcodec/crystalhd.c:552:55: error: 'VDEC_FLAG_BOTTOM_FIRST' undeclared 
(first use in this function)
     uint8_t bottom_first = !!(output->PicInfo.flags & 
VDEC_FLAG_BOTTOM_FIRST);
                                                       ^
libavcodec/crystalhd.c:580:16: warning: format '%lu' expects argument of type 
'long unsigned int', but argument 4 has type 'uint64_t' [-Wformat=]
                output->PicInfo.timeStamp);
                ^
libavcodec/crystalhd.c:585:5: error: implicit declaration of function 
'DtsGetDriverStatus' [-Werror=implicit-function-declaration]
     ret = DtsGetDriverStatus(priv->dev, &decoder_status);
     ^
libavcodec/crystalhd.c:609:50: error: 'VDEC_FLAG_UNKNOWN_SRC' undeclared 
(first use in this function)
                        !(output->PicInfo.flags & VDEC_FLAG_UNKNOWN_SRC) ||
                                                  ^
libavcodec/crystalhd.c:611:39: error: 'BC_DTS_STATUS' has no member named 
'picNumFlags'
                        (decoder_status.picNumFlags & ~0x40000000) ==
                                       ^
libavcodec/crystalhd.c:627:43: error: 'VDEC_FLAG_INTERLACED_SRC' undeclared 
(first use in this function)
     interlaced = (output->PicInfo.flags & VDEC_FLAG_INTERLACED_SRC) &&
                                           ^
libavcodec/crystalhd.c:630:45: error: 'BC_DTS_STATUS' has no member named 
'picNumFlags'
     if (!trust_interlaced && (decoder_status.picNumFlags & ~0x40000000) == 0) 
{
                                             ^
libavcodec/crystalhd.c: In function 'receive_frame':
libavcodec/crystalhd.c:744:5: error: unknown type name 'HANDLE'
     HANDLE dev       = priv->dev;
     ^
libavcodec/crystalhd.c:749:5: error: implicit declaration of function 
'DtsProcOutputNoCopy' [-Werror=implicit-function-declaration]
     ret = DtsProcOutputNoCopy(dev, OUTPUT_PROC_TIMEOUT, &output);
     ^
libavcodec/crystalhd.c:755:14: error: 'vdecAspectRatioSquare' undeclared 
(first use in this function)
         case vdecAspectRatioSquare:
              ^
libavcodec/crystalhd.c:758:14: error: 'vdecAspectRatio12_11' undeclared (first 
use in this function)
         case vdecAspectRatio12_11:
              ^
libavcodec/crystalhd.c:761:14: error: 'vdecAspectRatio10_11' undeclared (first 
use in this function)
         case vdecAspectRatio10_11:
              ^
libavcodec/crystalhd.c:764:14: error: 'vdecAspectRatio16_11' undeclared (first 
use in this function)
         case vdecAspectRatio16_11:
              ^
libavcodec/crystalhd.c:767:14: error: 'vdecAspectRatio40_33' undeclared (first 
use in this function)
         case vdecAspectRatio40_33:
              ^
libavcodec/crystalhd.c:770:14: error: 'vdecAspectRatio24_11' undeclared (first 
use in this function)
         case vdecAspectRatio24_11:
              ^
libavcodec/crystalhd.c:773:14: error: 'vdecAspectRatio20_11' undeclared (first 
use in this function)
         case vdecAspectRatio20_11:
              ^
libavcodec/crystalhd.c:776:14: error: 'vdecAspectRatio32_11' undeclared (first 
use in this function)
         case vdecAspectRatio32_11:
              ^
libavcodec/crystalhd.c:779:14: error: 'vdecAspectRatio80_33' undeclared (first 
use in this function)
         case vdecAspectRatio80_33:
              ^
libavcodec/crystalhd.c:782:14: error: 'vdecAspectRatio18_11' undeclared (first 
use in this function)
         case vdecAspectRatio18_11:
              ^
libavcodec/crystalhd.c:785:14: error: 'vdecAspectRatio15_11' undeclared (first 
use in this function)
         case vdecAspectRatio15_11:
              ^
libavcodec/crystalhd.c:788:14: error: 'vdecAspectRatio64_33' undeclared (first 
use in this function)
         case vdecAspectRatio64_33:
              ^
libavcodec/crystalhd.c:791:14: error: 'vdecAspectRatio160_99' undeclared 
(first use in this function)
         case vdecAspectRatio160_99:
              ^
libavcodec/crystalhd.c:794:14: error: 'vdecAspectRatio4_3' undeclared (first 
use in this function)
         case vdecAspectRatio4_3:
              ^
libavcodec/crystalhd.c:797:14: error: 'vdecAspectRatio16_9' undeclared (first 
use in this function)
         case vdecAspectRatio16_9:
              ^
libavcodec/crystalhd.c:800:14: error: 'vdecAspectRatio221_1' undeclared (first 
use in this function)
         case vdecAspectRatio221_1:
              ^
libavcodec/crystalhd.c:821:17: error: implicit declaration of function 
'DtsReleaseOutputBuffs' [-Werror=implicit-function-declaration]
                 DtsReleaseOutputBuffs(dev, NULL, FALSE);
                 ^
libavcodec/crystalhd.c:821:50: error: 'FALSE' undeclared (first use in this 
function)
                 DtsReleaseOutputBuffs(dev, NULL, FALSE);
                                                  ^
libavcodec/crystalhd.c: In function 'decode':
libavcodec/crystalhd.c:877:5: error: unknown type name 'HANDLE'
     HANDLE dev         = priv->dev;
     ^
libavcodec/crystalhd.c:902:9: error: implicit declaration of function 
'DtsTxFreeSize' [-Werror=implicit-function-declaration]
         int32_t tx_free = (int32_t)DtsTxFreeSize(dev);
         ^
libavcodec/crystalhd.c:964:20: warning: format '%lu' expects argument of type 
'long unsigned int', but argument 4 has type 'uint64_t' [-Wformat=]
                    "input \"pts\": %"PRIu64"\n", pts);
                    ^
libavcodec/crystalhd.c:965:13: error: implicit declaration of function 
'DtsProcInput' [-Werror=implicit-function-declaration]
             ret = DtsProcInput(dev, in_data, len, pts, 0);
             ^
libavcodec/crystalhd.c: In function 'copy_frame':
libavcodec/crystalhd.c:732:1: error: control reaches end of non-void function 
[-Werror=return-type]
 }
 ^
cc1: some warnings being treated as errors
make: *** [libavcodec/crystalhd.o] Error 1

#############################################

advice will be  appreciated

sincerely
lusInteg
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to