【发布时间】:2013-03-22 00:54:03
【问题描述】:
我在 Mac 上安装 fltk 时遇到了困难,我想在 Xcode 4 上运行。下载文件并解压缩并尝试按照说明进行操作后:
2.3 Configuring FLTK
-----------------------
Stay in your FLTK source-code directory. Type:
autoconf
Now configure your FLTK installation:
./configure
ADVANCED: type "./configure --help" to get a complete list of optional
configurations parameters. These should be pretty self-explanatory. Some
more details can be found in README.
To create Universal Binaries, start "configure" with these flags:
./configure --with-archflags="-arch i386 -arch ppc -arch x86_64"
:END_ADVANCED
首先,当我尝试运行 autoconf 时,我得到:
-bash: autoconf: command not found.
还有./configure 命令,像这样dhcp-10-201-207-151:fltk-1.3 user$ ./configure,我明白了:
-bash: ./configure: No such file or directory.
我已经尝试在网络上遵循许多教程,其中大多数都已过时,它对我不起作用。显然,还有另一种使用 Macports 安装它的方法,我也未能应用。
如果有人可以展示安装fltk 并以更简单的方式在Xcode 上运行它的步骤,我将不胜感激。
【问题讨论】:
-
你必须自己安装 autoconf,首先是:gist.github.com/jellybeansoup/4192307
-
先安装苹果开发者工具。您可以使用 xCode 或直接从 developer.apple.com 下载它们。还有其他方法可以解决该问题,但这可能是最简单的方法,如果您想继续使用 FLTK,您会很高兴拥有它们。
标签: xcode4 terminal installation osx-mountain-lion fltk