DolbyLaboratories / dlb_mp4base

The Dolby MP4 streaming muxer (dlb_mp4base) is a software implementation of a muxer of fragmented or unfragmented ISO base media file format (mp4). It supports muxing of Dolby Digital (AC-3), Dolby Digital Plus (E-AC-3), and Dolby AC-4 audio formats as well as Dolby Vision.
BSD 3-Clause "New" or "Revised" License
254 stars 60 forks source link

Cannot build mp4muxer. #1

Closed skotagiri closed 6 years ago

skotagiri commented 6 years ago

I cannot build mp4muxer for linux_amd64 target. I get the following error

[CCDEP:cc] ../../../../dlb_mp4base/src/util/io_file.c [CC:cc] ../../../../dlb_mp4base/src/util/io_file.c In file included from ../../../../dlb_mp4base/include/utils.h:42, from ../../../../dlb_mp4base/src/util/io_file.c:31: ../../../../dlb_mp4base/include/msg_log.h:102:1: warning: "/" within comment ../../../../dlb_mp4base/src/util/io_file.c: In function ‘file_open’: ../../../../dlb_mp4base/src/util/io_file.c:72: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness /usr/include/stdio.h:271: note: expected ‘const char restrict’ but argument is of type ‘const int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:72: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness /usr/include/stdio.h:271: note: expected ‘const char restrict’ but argument is of type ‘const int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:72: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness /usr/include/stdio.h:271: note: expected ‘const char restrict’ but argument is of type ‘const int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:84: warning: pointer targets in passing argument 1 of ‘strrchr’ differ in signedness /usr/include/string.h:262: note: expected ‘const char ’ but argument is of type ‘const int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:86: warning: pointer targets in passing argument 1 of ‘strrchr’ differ in signedness /usr/include/string.h:262: note: expected ‘const char ’ but argument is of type ‘const int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:92: error: invalid operands to binary - (have ‘char ’ and ‘const int8_t ’) ../../../../dlb_mp4base/src/util/io_file.c:94: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness ../../../../dlb_mp4base/src/util/io_file.c:94: note: expected ‘char ’ but argument is of type ‘int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:94: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness ../../../../dlb_mp4base/src/util/io_file.c:94: note: expected ‘const char ’ but argument is of type ‘const int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:110: error: invalid operands to binary - (have ‘char ’ and ‘const int8_t ’) ../../../../dlb_mp4base/src/util/io_file.c:113: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness ../../../../dlb_mp4base/src/util/io_file.c:113: note: expected ‘char ’ but argument is of type ‘int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:115: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness ../../../../dlb_mp4base/src/util/io_file.c:115: note: expected ‘char ’ but argument is of type ‘int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:115: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness ../../../../dlb_mp4base/src/util/io_file.c:115: note: expected ‘const char ’ but argument is of type ‘const int8_t ’ ../../../../dlb_mp4base/src/util/io_file.c:122: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness ../../../../dlb_mp4base/src/util/io_file.c:122: note: expected ‘char ’ but argument is of type ‘int8_t *’ make[1]: [obj/libmp4base_release/io_file.o] Error 1 make: [../../../../dlb_mp4base/make/libmp4base/linux_amd64/libmp4base_release.a] Error 2

ShaoWeiguo commented 6 years ago

Fixed it.