aliens

Author Topic: Compiling on Mac OS X Lion with Xcode 4 template  (Read 31634 times)

Offline luciderous

  • Colonel
  • ****
  • Posts: 108
  • There is no spoon...
    • View Profile
Compiling on Mac OS X Lion with Xcode 4 template
« on: November 28, 2010, 12:27:42 pm »
THIS GUIDE IS NOW OBSOLETE! FOLLOW NEW INSTRUCTIONS INSTEAD - https://www.ufopaedia.org/index.php?title=Compiling_with_Xcode_(OpenXcom)

---
Get Xcode 4.1 template with all the dependencies included here - https://www.mediafire.com/?i2xqyuinubd6bp6

Easy compilation guide (Note that for readability's sake '/' means the template's root folder, not your system root):

1. Run Xcode, open Organizer, add the Project's Git Repository (https://github.com/SupSuper/OpenXcom.git) and clone it (save with a "OpenXcomGit" name).
2. Add source folder (/OpenXcomGit/src) to your project tree (! choose "Create groups for any added folders").
3. Remove all the irrelevant project files from project tree: Makefile, resource.h, all the Visual Studio files etc., when asked choose "Delete References".
4. Copy all the original XCOM folders/files into (/OpenXcomGit/bin/DATA) folder.
5. Right-click on "Supporting Files" in the project tree and add "/OpenXcomGit/bin/DATA" folder there (! choose "Create folder references for any added folders")
6. Build & Run! Enjoy!

Dependencies included:
SDL-1.2.14 (official pkg)
SDL_mixer-1.2.11 (official pkg)
SDL_gfx-2.0.22 (built myself since no official pkg has been released, "Deployment Target" = 10.5)
yaml-cpp--0.2.6 (built framework myself, "Deployment Target" = 10.6)

P.S. Here is a precompiled binary (constantly updated), created by following the aforementioned step-by-step guide.
v. 0.3 (9c322148c536) - https://www.mediafire.com/?8359p5iqr12wg5e
« Last Edit: June 24, 2014, 11:27:01 pm by SupSuper »

Offline panther

  • Sergeant
  • **
  • Posts: 42
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #1 on: December 05, 2010, 10:20:39 pm »
Hey, that is great news!

In fact, I was toying with the idea to contribute.
Is there a current list of ToDo items, where would I start looking?

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #2 on: December 06, 2010, 04:23:31 pm »
I guess best way to start contributing(some bigger stuff than simple bugfixes) would be entering irc channel and talk to SupSuper or Daiky. Here are details how to enter irc:
https://openxcom.ninex.info/forum/index.php?topic=63.0


Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #3 on: December 07, 2010, 04:47:20 am »
There's no ToDo list, but you can always look around the forum for any pending issues for look around the code for anything that might need fixing or just bugs you. :P

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #4 on: December 08, 2010, 11:04:18 am »
Or implement ufopaedia ;)

Offline panther

  • Sergeant
  • **
  • Posts: 42
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #5 on: December 08, 2010, 08:54:03 pm »
OK, thank you all for the info. I will get OpenXCom to work and study the code base.
Then look for a development target.

Offline panther

  • Sergeant
  • **
  • Posts: 42
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #6 on: December 15, 2010, 12:13:55 am »
Well, thank you marabus! Following your instructions I was able to build OpenXCom on my Mac!  8)

I already started browsing the source and gathering information on Ufopedia, so I would be glad to join the team and implement Ufopedia as michal suggested.
If this is ok, I would start a new thread here to post about progress, etc.

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #7 on: December 15, 2010, 01:32:58 pm »
If this is ok, I would start a new thread here to post about progress, etc.

Please do it :)

Offline luciderous

  • Colonel
  • ****
  • Posts: 108
  • There is no spoon...
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #8 on: January 06, 2011, 04:46:10 pm »
Updated the template to include new dependency - YAML.

ailas

  • Guest
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #9 on: July 22, 2011, 11:35:15 am »
Hi, I was trying to compile openxcom on Mac OSX 10.6.8 with Xcode 3.2.6 (x86_64 arch) according your information from first post, but it failed with some "BeginDoc" and "Binary" errors (it says it's not part of YAML). You can see more on this screen shot https://dl.dropbox.com/u/3321305/Screen%20shot%202011-07-22%20at%209.49.16%20AM.png So i tried compile yaml-ppc 0.2.6 (I found there is BeginDoc in header files) myself with cmake etc.. but don't know how to add it in project/your template as a framework. I also found https://github.com/mirek/YAML.framework but there is no "BeginDoc" in header files also.  Can you please help me with that?

Offline luciderous

  • Colonel
  • ****
  • Posts: 108
  • There is no spoon...
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #10 on: July 22, 2011, 10:31:39 pm »
I'm ashamed to admit, but I've been somehow neglecting my duties on this thread for the last several months due to real life reasons. Thus, I'll have to catch up with the latest developments myself first. Please, bear with me on this one, I hope to give it a try during the next week. Of course, I'll post the results ASAP.

Offline grrussel

  • Captain
  • ***
  • Posts: 72
    • View Profile
Re: Compiling on Mac OS X Snow Leopard with Xcode template
« Reply #11 on: September 02, 2011, 11:18:41 pm »
Hi, is there any further progress on the Xcode template dependencies - specifically, yaml? I'd like to get Xcode style OSX builds automated and nightly, like my nightly OSX builds (https://bitbucket.org/grrussel/openxcomosx) + which are more Unix/Linux in style.

Offline luciderous

  • Colonel
  • ****
  • Posts: 108
  • There is no spoon...
    • View Profile
Re: Compiling on Mac OS X Lion with Xcode 4 template
« Reply #12 on: September 03, 2011, 10:19:01 pm »
Project template & dependent frameworks updated for Lion and Xcode 4.
And the latest 0.3 binary is there as well  :D

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Compiling on Mac OS X Lion with Xcode 4 template
« Reply #13 on: September 04, 2011, 06:06:44 am »
Thanks, I've put it up on the site. :) Btw you forgot the OpenXcom Data files so I added them myself.

Offline luciderous

  • Colonel
  • ****
  • Posts: 108
  • There is no spoon...
    • View Profile
Re: Compiling on Mac OS X Lion with Xcode 4 template
« Reply #14 on: September 04, 2011, 11:33:01 am »
Oh, you mean in the app bundle? Dammit  :-[
Thanks, anyway! I'll update my download link on the forum as well.