刺猬大战 hedgewars 0.9.19.3 编译成功
刺猬大战 hedgewars 0.9.19.3 编译,因为 ffmpeg 版本打了个补丁如下,它自带了文泉驿字体和一个WIN上的字体不能删,否则进不了游戏。。。昨天搞半天原来这么回事,文泉驿字体我搞了个链接,删掉自带的文泉驿字体,原来的那个 DejaVuSans-Bold.ttf 字体 MGC3 没有了,在 spec 档里把链接那几行代码删了,用上它自带的 DejaVuSans-Bold.ttf,编译运行 OK。--- hedgewars-src-0.9.19.3/QTfrontend/util/LibavInteraction.cpp 2013-06-11 07:26:50.000000000 +0000+++ hw-master/QTfrontend/util/LibavInteraction.cpp 2013-11-05 12:58:15.735985653 +0000
@@ -32,7 +32,7 @@
struct Codec
{
- CodecID id;
+ AVCodecID id;
bool isAudio;
QString shortName; // used for identification
QString longName; // used for displaying to user
@@ -52,7 +52,7 @@
QMap<QString,Format> formats;
// test if given format supports given codec
-bool FormatQueryCodec(AVOutputFormat *ofmt, enum CodecID codec_id)
+bool FormatQueryCodec(AVOutputFormat *ofmt, enum AVCodecID codec_id)
{
#if LIBAVFORMAT_VERSION_MAJOR >= 54
return avformat_query_codec(ofmt, codec_id, FF_COMPLIANCE_NORMAL) == 1;
@@ -278,7 +278,7 @@
return "";
int s = float(pContext->duration)/AV_TIME_BASE;
- QString desc = QString(tr("Duration: %1m %2s\n")).arg(s/60).arg(s%60);
+ QString desc = tr("Duration: %1m %2s").arg(s/60).arg(s%60) + "\n";
for (int i = 0; i < (int)pContext->nb_streams; i++)
{
AVStream* pStream = pContext->streams;
@@ -290,11 +290,11 @@
if (pCodec->codec_type == AVMEDIA_TYPE_VIDEO)
{
- desc += QString(tr("Video: %1x%2, ")).arg(pCodec->width).arg(pCodec->height);
+ desc += QString(tr("Video: %1x%2")).arg(pCodec->width).arg(pCodec->height) + ", ";
if (pStream->avg_frame_rate.den)
{
float fps = float(pStream->avg_frame_rate.num)/pStream->avg_frame_rate.den;
- desc += QString(tr("%1 fps, ")).arg(fps, 0, 'f', 2);
+ desc += QString(tr("%1 fps")).arg(fps, 0, 'f', 2) + ", ";
}
}
else if (pCodec->codec_type == AVMEDIA_TYPE_AUDIO)
0ad 和 warzone2100 也编译成功了,置顶帖有就不上图了。
页:
[1]