具体错误:
lametime.c: In function 'lame_set_stream_binary_mode': lametime.c:139:25: error: '_O_BINARY' undeclared (first use in this function); did you mean 'O_BINARY'? setmode(fileno(fp), _O_BINARY);
解决办法
打开出错文件 vi ./frontend/lametime.c
找到这一行:
#elif defined __CYGWIN
修改下面一行:
setmod(fileno(fp), _O_BINARY); 为 setmod(fileno(fp), O_BINARY);