fltk installation on Mac 10.8.3

左心房为你撑大大i 提交于 2019-12-01 12:11:33

问题


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

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

-bash: autoconf: command not found. 

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.

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.

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


回答1:


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...

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

fltk-1.3.2/ide/Xcode4

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.

I'd go with option 1 though.



来源:https://stackoverflow.com/questions/15560901/fltk-installation-on-mac-10-8-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!