Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffMPEG "inttypes.h not found" error

Tags:

While using the ffMPEG builds in Windows with Visual Studio 2010, I encountered the inttypes.h not found error.
Since searching through the internet led me to wrong solutions, I thought I'd put up the right solution here so that people can find it easily. Will be answering my own question soon.

like image 360
Nav Avatar asked Nov 07 '12 09:11

Nav


2 Answers

The solution is to download this file and place the inttypes.h file either where Visual Studio can find it, or in the folder where ffMPEG's common.h is located. If you choose the latter, you'll have to change the #include<inttypes.h> line to #include "inttypes.h".
Had got this solution from here.

Another solution which didn't work for me is to replace the #include<inttypes.h> with

typedef signed char  int8_t;
typedef signed short int16_t;
typedef signed int   int32_t;
typedef unsigned char  uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int   uint32_t;
typedef signed long long   int64_t;
typedef unsigned long long uint64_t;

This solution was obtained from here.

Hope this helped.

like image 53
Nav Avatar answered Oct 05 '22 06:10

Nav


#ifndef HAS_INT_TYPES

#ifdef HAS_C99
  #include <stdint.h>
#endif

#endif
like image 40
Vladimir Poslavskiy Avatar answered Oct 05 '22 06:10

Vladimir Poslavskiy