Akagi201 / h264-parser

parse h264 bitstream nalu
MIT License
28 stars 10 forks source link

cannot build #2

Open jinleileiking opened 6 years ago

jinleileiking commented 6 years ago
➜  h264-parser git:(master) ✗ make
Scanning dependencies of target h264_parser
[ 33%] Building C object CMakeFiles/h264_parser.dir/src/main.c.o
[ 66%] Building C object CMakeFiles/h264_parser.dir/src/h264-stream.c.o
In file included from /home/jinlei1/oss/h264-parser/src/h264-stream.c:11:0:
/home/jinlei1/oss/h264-parser/src/h264-nalu.h:11:5: error: unknown type name ‘uint8_t’
     uint8_t nal_ref_idc;
     ^
/home/jinlei1/oss/h264-parser/src/h264-nalu.h:12:5: error: unknown type name ‘uint8_t’
     uint8_t nal_unit_type;
     ^
/home/jinlei1/oss/h264-parser/src/h264-stream.c: In function ‘h264_byte_stream_get_nalu’:
/home/jinlei1/oss/h264-parser/src/h264-stream.c:68:9: error: implicit declaration of function ‘h264_nal_unit’ [-Werror=implicit-function-declaration]
         nalu = h264_nal_unit(s);
         ^
/home/jinlei1/oss/h264-parser/src/h264-stream.c:68:14: error: assignment makes pointer from integer without a cast [-Werror]
         nalu = h264_nal_unit(s);
              ^
/home/jinlei1/oss/h264-parser/src/h264-stream.c:70:5: error: implicit declaration of function ‘h264_more_data_in_byte_stream’ [-Werror=implicit-function-declaration]
     while (h264_more_data_in_byte_stream(s) &&
     ^
/home/jinlei1/oss/h264-parser/src/h264-stream.c:75:12: error: ‘nu’ undeclared (first use in this function)
     return nu;
            ^
/home/jinlei1/oss/h264-parser/src/h264-stream.c:75:12: note: each undeclared identifier is reported only once for each function it appears in
/home/jinlei1/oss/h264-parser/src/h264-stream.c:52:18: error: variable ‘nalu’ set but not used [-Werror=unused-but-set-variable]
     h264_nalu_t *nalu = NULL;
                  ^
/home/jinlei1/oss/h264-parser/src/h264-stream.c: At top level:
/home/jinlei1/oss/h264-parser/src/h264-stream.c:78:16: error: ‘h264_exp_golomb_bits’ defined but not used [-Werror=unused-variable]
 static uint8_t h264_exp_golomb_bits[256] = {
                ^
/home/jinlei1/oss/h264-parser/src/h264-stream.c: In function ‘h264_byte_stream_get_nalu’:
/home/jinlei1/oss/h264-parser/src/h264-stream.c:76:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/h264_parser.dir/src/h264-stream.c.o] Error 1
make[1]: *** [CMakeFiles/h264_parser.dir/all] Error 2
make: *** [all] Error 2

first blood.

bigcat26 commented 6 years ago

“h264_nal_unit”未定义

second blood.