Topic-icon Compile pokerth for mac os x

More
09 Jun 2013 22:48 #14718

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 -> http://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 following user(s) said Thank You: Ghost__

Please Log in or Create an account to join the conversation.

More
22 Jun 2013 18:21 #14946

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 following user(s) said Thank You: Ghost__

Please Log in or Create an account to join the conversation.

More
22 Jun 2013 19:00 #14947

Compiled 1.0.1 with protoc 2.4.1 and using the same fixes as for 0.9.5.

The following user(s) said Thank You: Ghost__

Please Log in or Create an account to join the conversation.

PokerTH - live

The PokerTH spectator tool.

Member Login

 advert
NOTE! This site uses cookies and similar technologies.
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information

We use cookies to personalize content and ads to offer features for social media and analyze the number of hits on our website. We also provide information about your use of our website to our partner for social media, advertising and analysis on.
http://www.google.com/intl/de/policies/privacy/partners/