Musepack Forums  

Go Back   Musepack Forums > Main > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 13 March 2012, 06:12 pm   #1
kuh3h3
Member
 
Join Date: Mar 2012
Posts: 1
Default 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
$
kuh3h3 is offline   Reply With Quote
Old 18 March 2012, 04:33 pm   #2
Genju
Member
 
Genju's Avatar
 
Join Date: Aug 2004
Posts: 5
Default

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
Genju is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 10:18 am.


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