Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update README or add wiki page for Mac users #11

Open
jovezhong opened this issue Jan 20, 2014 · 1 comment
Open

Please update README or add wiki page for Mac users #11

jovezhong opened this issue Jan 20, 2014 · 1 comment

Comments

@jovezhong
Copy link

First of all, thanks for the great work.

It took me 2 hours to figure out how to run it on Mac. Sorry I am not familiar with C++ or wx framework.

It will be cool if you can update the README.md or add a new wiki page to list the steps of running it on Mac.

Here is a few step I did tonight:

  • git clone the code on Mac, open the project in Xcode
  • use home-brew to install wx: brew install wxmac
  • run the project in Xcode. there should be no compiling error but you won't get anything log, since your account cannot capture the network traffic
  • build&archive the project. In organizer, click 'Distribute..'-> Export as Application. Save the 'Hearth Log.app' to somewhere and copy it to /Application
  • register an account on http://www.hearthlog.com/, copy the Upload Key
  • create a file with 1 line content: UploadKey=, save it to ~/Library/Application Support/Hearth Log/config.ini
  • sudo /Applications/Hearth\ Log.app/Contents/MacOS/Hearth\ Log
  • Then start the game and play with others. After you quit the game, the log will be saved and uploaded to website. You can check the log at ~/Library/Application Support/Hearth Log/log.txt

Hope it helps.

@postcasio
Copy link
Contributor

Just a note, the version of wx installed by homebrew is now 3.0.0.0.

The xcodeproj needs to be updated to replace /usr/local/Cellar/wxmac/2.9.5.0/ with /usr/local/Cellar/wxmac/3.0.0.0/ and -lwx_osx_cocoau-2.9 with -lwx_osx_cocoau-3.0 to build.

It seems to work fine with the new version. I'll submit a patch later on today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants