Author Topic: installing LaserBoy on OSX 10.8  (Read 35100 times)

0 Members and 1 Guest are viewing this topic.

meeble

  • Guest
installing LaserBoy on OSX 10.8
« on: February 12, 2013, 04:53:57 pm »
Hello,

With a little bit of work, I was able to install LaserBoy on my Mac running 10.8.2.  I told James that I would post my step by step process here in case anyone else may find it helpful.

1.  Installl XCode:
https://developer.apple.com/xcode/

2.  Once XCode is installed, open XCode, go to Preferences, go to the Downloads tab, then install Command Line Tools.

3.  Download and install the MacPorts package installer for Mountain Lion:
http://www.macports.org/install.php

4.  Open up a Terminal window and install SDL with this command:
sudo port install libsdl

5.  Install boost:
sudo port install boost

6.  Not sure if this is necessary, but while installing boost, it may ask you to run this command:
sudo port select --set python python27

7.  I had to modify the Makefile.osx to compile correctly.  Make sure line 8 looks like this:
LIBS     = -L/opt/local/lib -lSDL -lSDLMain -lboost_system-mt -lboost_filesystem-mt -pg -g3 -framework Cocoa

8.  Go to the LaserBoy src directory and issue this command:
make -f Makefile.osx

9.  After compiling, go to the LaserBoy directory, and run the app from the command line with:
./LaserBoy 1024 768

(the numbers represent the window size that you want LB to open into)
« Last Edit: February 13, 2013, 09:58:04 am by meeble »

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: installing LaserBoy on OSX 10.8
« Reply #1 on: February 12, 2013, 09:38:43 pm »
Hello meeble!

Welcome to The LaserBoy Forum! :)

It was really nice chatting with you today.

Thank you for doing all that in such short order and posting about it here.

That really made my day!

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

meeble

  • Guest
Re: installing LaserBoy on OSX 10.8
« Reply #2 on: February 13, 2013, 09:45:43 am »
no problem, James.  Thanks for helping me out.  I'm sure you'll be hearing a lot from me over the next couple weeks.  :)

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: installing LaserBoy on OSX 10.8
« Reply #3 on: February 13, 2013, 01:13:35 pm »
It looks like you found and installed the multi-threading version of boost, hence the difference:

-lboost_system-mt -lboost_filesystem-mt

If it works for you it works for me! :)

James.   :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: installing LaserBoy on OSX 10.8
« Reply #4 on: January 16, 2019, 04:47:45 pm »
I had to remove the -pg lines to get it to compile and open, however now it opens a blank screen. Still working on that

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal