未加星标

Compiling Warzone 2100 on Mac OS X

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二05 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

I recently ran across The Warzone 2100 Resurrection Project , and I thought to myself,"cool, I wonder if there's an OS X version..." So, I hit their downloads page only to find the message: "(The MacOSX diskimage will follow soon)"

So I thought, "oh well, I'll just grab the source code and compile it!" After about two hours of digging, I finally got it compiled, and here's how! (NOTE: I've got quite a bit of Unix stuff installed via fink , so your mileage may vary)

Here's the list of stuff I had to get/install/compile before I could even start on Warzone 2100: cmake (to compile physfs) , physfs , a newer bison , and SDL_net First I grab cmake 2.4.6 . Luckily, they have a universal .dmg for Tiger . Next, I grab the source code for physfs-1.1.1 from their download page . At first I tried compiling the "Unix Way", but that didn't work, so I used cmake to generate an Xcode project (pretty cool!). From a terminal window, I cd into the physfs directory and type:
cmake -G Xcode . Then, after compiling physfs with Xcode, I copied the libraries to my /usr/local directories. Again from a Terminal:
sudo cp libphysfs.* /usr/local/lib
sudo cp physfs.h /usr/local/include Next, I open up fink commander and grab the newest version of bison from fink Now I need SDL_net . While the project offers a Mac OS X Framework and SDL_net is available through fink... I grabbed the source anyway. It compiled just fine the Unix way:
./configure
make
sudo make install This put all the libraries in /usr/local/lib and /usr/local/include Finally, time to compile Warzone2100, so I grabbed the source code , which contains a handy-dandy file called COMPILE. I suggest you read it. To start of, I opened a terminal and cd'd into the warzone2100-2.0.6 directory and typed the following command: ./autogen.sh Then, I typed the following to configure it using my fink libraries and headers:
./configure --prefix=/Applications/Warzone2100-2.0.6 LDFLAGS=-L/sw/lib CPPFLAGS=-I/sw/include This will also put the final binary in my /Applications Directory. So, the last to steps are to compile, and install: make
sudo make install This did the trick for me. Now that I got Warzone2100 compiled, I can open a terminal and type the following:
/Applications/Warzone2100/bin/warzone2100 --fullscreen And this "should" lauch the application!

Enjoy!

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

主题: MacOS
分页:12
转载请注明
本文标题:Compiling Warzone 2100 on Mac OS X
本站链接:http://www.codesec.net/view/480560.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(31)