0

我在 OSX 10.12.4 上,似乎有一个现有的系统安装WxWidgets 3.0.2以及bakefile 0.2.10.

我不想触摸系统安装的 WxWidgets,所以我下载了 WxWidgets 3.0.3 的 tarball,运行configure --preset=/somelocalfolder && make install.

我想为一个适用于所有平台的简单 WxWidgets 项目设置一个 Bakefile。我阅读bakefile_quickstart.txt并决定尝试从build/bakefiles/wxpresets/sample/minimal.bkl

运行bakefile -f gnu minimal.bkl给了我以下错误:

-----------------------------------------------------------------------
This file cannot be processed with Bakefile version older than 0.2.2.
You are using Bakefile version 0.2.10. Please install the newest version
from http://www.bakefile.org.
-----------------------------------------------------------------------

/usr/local/share/bakefile/presets/wx.bkl:113: error: Bakefile not new enough
    included from /Users/prashanthcr/code/wxWidgets-3.0.3/build/bakefiles/wxpresets/sample/minimal.bkl:5

此错误消息没有意义,因为我相信version 0.2.10大于version 0.2.2.

我决定下载最新版本的 Bakefile version 1.2.5.1,.

命令行标志和二进制名称似乎已经完全改变,所以我只是尝试了以下内容:

bkl minimal.bkl

这给了我错误:

sample/minimal.bkl: error: this file is incompatible with new Bakefile versions; please use Bakefile 0.2.x to process it

这两个错误消息相互矛盾,我不知道该怎么办。

4

1 回答 1

1

这确实令人困惑,但让我尝试解释一下:wxWidgets 使用旧的 0.x 旧版 bakefile 分支。Bakefile 1.x 与它不兼容,不能与 wxWidgets bakefiles 一起使用。如果您想在自己的项目中使用 bakefile,请务必使用 1.x,因为它比 0.x 更好更简单。

于 2017-05-08T11:11:03.010 回答