Musepack Forums

Musepack Forums (https://forum.musepack.net/index.php)
-   Development (https://forum.musepack.net/forumdisplay.php?f=11)
-   -   i tried to compile libmpc svn rev 477 but failed (https://forum.musepack.net/showthread.php?t=650)

kuh3h3 13 March 2012 06:12 pm

i tried to compile libmpc svn rev 477 but failed
 
i think this error maybe come from conflicts between mingw header and msys header.

==========
mingw stdint.h
typedef signed char int8_t;

msys types.h
typedef char int8_t;
================

even if i resolve this conflicts
new error(ctype related undefined) occured.
welcome any suggestions.



Master@kuh3h3 /d/new-ffmpeg/libmpc
$ make
[ 21%] Built target mpcdec_static
[ 41%] Built target mpcpsy_static
[ 56%] Built target mpcenc_static
[ 60%] Built target wavformat_static
[ 63%] Built target mpcgain
[ 65%] Built target mpcdec_cmd
[ 82%] Built target mpcenc
[ 85%] Built target mpc2sv8
[ 87%] Built target mpccut
Scanning dependencies of target mpcchap
[ 90%] Building C object mpcchap/CMakeFiles/mpcchap.dir/mpcchap.obj
In file included from D:/MSYS/include/sys/unistd.h:9:0,
from D:/MSYS/include/unistd.h:6,
from D:/new-ffmpeg/libmpc/mpcchap/dictionary.h:35,
from D:/new-ffmpeg/libmpc/mpcchap/iniparser.h:35,
from D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:23:
D:/MSYS/include/sys/types.h:106:14: error: conflicting types for 'int8_t'
d:\msys\mingw\bin\../lib/gcc/i686-pc-mingw32/4.6.2/../../../../i686-pc-mingw32/include/stdint.h:27:21: note: previous declaration of 'int8_t
' was here
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c: In function 'add_chaps_ini':
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:104:3: warning: implicit declaration of function 'atoll' [-Wimplicit-function-declaration]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:108:12: warning: unknown conversion type character 'l' in format [-Wformat]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:108:12: warning: unknown conversion type character 'l' in format [-Wformat]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:108:12: warning: too many arguments for format [-Wformat-extra-args]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:144:2: warning: implicit declaration of function 'ftruncate' [-Wimplicit-function-declaration]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c: In function 'add_chaps_cue':
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:194:12: warning: unknown conversion type character 'l' in format [-Wformat]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:194:12: warning: unknown conversion type character 'l' in format [-Wformat]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:194:12: warning: too many arguments for format [-Wformat-extra-args]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c: In function 'dump_chaps':
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:250:3: warning: unknown conversion type character 'l' in format [-Wformat]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:250:3: warning: format '%i' expects argument of type 'int', but argument 3 has type 'mpc_uint64_t' [-
Wformat]
D:/new-ffmpeg/libmpc/mpcchap/mpcchap.c:250:3: warning: too many arguments for format [-Wformat-extra-args]
make[2]: *** [mpcchap/CMakeFiles/mpcchap.dir/mpcchap.obj] Error 1
make[1]: *** [mpcchap/CMakeFiles/mpcchap.dir/all] Error 2
make: *** [all] Error 2

Master@kuh3h3 /d/new-ffmpeg/libmpc
$

Genju 18 March 2012 04:33 pm

What did you select as target in cmake? If you select mingw makefiles, you should use mingw32-make.exe, if you select msys makefiles everything should be compiled with the regular msys make.exe


All times are GMT. The time now is 09:12 pm.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2019, vBulletin Solutions Inc.