在Mac 10.8.3上安装fltk [英] fltk installation on Mac 10.8.3

查看:110
本文介绍了在Mac 10.8.3上安装fltk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上安装fltk时遇到困难,我想在Xcode 4上运行.下载文件并解压缩后,尝试按照说明进行操作:

I'm struggling with fltk installation on my Mac, I'd like to run in on Xcode 4. After downloading the file and unzip it and trying to follow the instructions:

 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时,我得到了:


First of all, when i try to run autoconf I get:

-bash: autoconf: command not found. 

还有./configure命令,像这样的dhcp-10-201-207-151:fltk-1.3 user$ ./configure,我得到:

Also the ./configure command, like this dhcp-10-201-207-151:fltk-1.3 user$ ./configure, I get:

-bash: ./configure: No such file or directory.

我尝试了遵循网上的许多教程,其中大多数教程已过时,但对我而言不起作用.显然,还有另一种使用Macports进行安装的方法,但我也没有应用.

I have tried followed many tutorials on the web, which most of them are outdated, it didn't work for me. Apparently,there is another way to install it using Macports which I also failed to apply.

如果有人可以显示安装fltk并以更简单的方式在Xcode上运行它的步骤,我将不胜感激.

If somebody could show the steps to install fltk and run it on Xcode in a easier manner, I would really appreciate that.

推荐答案

您不需要使用autoconf或您提到的选项. 如果您已安装Xcode 4和命令行工具,则可以像这样在OS X上编译FLTK:

You don't need to use autoconf or the options you mention. You can compile FLTK on OS X like this, if you have Xcode 4 and Command Line Tools installed:

./configure CC=clang CXX=clang++
make
sudo make install

至少对我来说很好...

At least that worked fine for me...

我也已经使用Xcode在OS X上构建了它,但是随后您必须转到

I've also built it on OS X with Xcode, but then you have to go to the

fltk-1.3.2/ide/Xcode4

目录,并使用Xcode打开FLTK.xcodeproj文件,然后选择"Demo"作为构建目标,并选择"Build for Archive".然后,您可以根据需要将文件手动移动到/usr/local/,也可以将其移动为/Library/Frameworks中的框架.

Directory, and open the FLTK.xcodeproj file with Xcode, then choose "Demo" as the build target and "Build for Archive". Then you can manually move the files to /usr/local/ if you want, or as a framework in /Library/Frameworks.

我会选择选项1.

这篇关于在Mac 10.8.3上安装fltk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆