PokerTH logo
Welcome, Guest
Username: Password: Remember me

TOPIC: Compile pokerth for mac os x

Compile pokerth for mac os x 09 Jun 2013 22:48 #14718

  • justasking
  • justasking's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi

As I play Pokerth on my mac I would like to make some changes to the source code and then compile the pokerth source to be used on a mac (.app). I found the instructions for linux and windows in the source directory but no mac compile instruction.

Does anyone have a instruction on how to compile the source on linux to be used on a mac?

Background:
It isn't possible to change the fn keys for raise, check and bet to other keys which makes playing pokerth a hassle (fn keys on a mac are generally reserved for different built in functions see -> regmedia.co.uk/2011/09/15/apple_macbook_air_11in_mid_2011_7.jpg). So instead of waiting for a release where this feature will be implemented I am just going to change the code snippet by myself and then compile the application again with the new keys. So far the plan.
The administrator has disabled public write access.

Compile pokerth for mac os x 22 Jun 2013 18:21 #14946

  • clix101
  • clix101's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
  • Karma: 0
Still in need of compiling?

I've managed to compile 0.9.5 on 10.8 and am now working on compiling 1.0.1 as well.
It's more or less the same as compiling for linux:
1/ qmake -spec macx-g++ pokerth.pro
2/ make
3/ play

However, the .pro files are out of date (seems like it's been a while since they've been updated..) and there are a few other issues you have to fix along the way.

In 1/ the statement '-spec macx-g++' means qmake will generate a makefile instead of a xcodeproj file. I don't think it's necessary, but I found it easier to do with the makefile.

Overall, what you need to do is go through the .pro files that relate to mac (protocol, db, lib and game) and update references in the mac specific sections of those mac files (e.g. mac { .... } ).

I also had to copy the data folder directly to within the application once compiled as it wasn't done automatically but everything seems to work.

If you want I can upload my .pro files (not perfect i'm sure..).
If you're still interested I can let you know how it goes with 1.0.1 too.
The administrator has disabled public write access.

Compile pokerth for mac os x 22 Jun 2013 19:00 #14947

  • clix101
  • clix101's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
  • Karma: 0
Compiled 1.0.1 with protoc 2.4.1 and using the same fixes as for 0.9.5.
The administrator has disabled public write access.
Time to create page: 0.148 seconds

PokerTH - live

The PokerTH spectator tool.
 advert

Member Login