Menu Content/Inhalt
Home

Articles

Poker Tips

Login






Lost Password?
No account yet? Register

PokerTH - Forum

homepost replythreaded viewruleshelp
 
<< Start < Prev 1 2 Next > End >>
michelefi
User

Fresh Boarder
Posts: 3
graphgraph
Karma: 0  
Re:v0.6 for Mac? - 2007/12/02 03:32 Hi Lotodore,
for compiling I do this step

1) Modify the .pro file to fix the path where my library are installed and add the QtNetwork that are missing. For the pokerth_game.pro the mac section is this one:

Code:

  mac{ # make it universal CONFIG += x86 CONFIG += ppc QMAKE_MACOSX_DEPLOYMENT_TARGET 10.4 # for universal-compilation on PPC-Mac uncomment the following line # on Intel-Mac you have to comment this line out or build will fail. # QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ # Qt static (path is standard for self-compiling qt) #LIBS += /Library/Frameworks/QtCore.framework/Versions/4/QtCore #LIBS += /usr/local/Trolltech/Qt-4.3.2/lib/QtGui.la # QT dynamic linked framework (see also mac_post_make.sh) LIBS += -framework QtCore LIBS += -framework QtGui LIBS += -framework QtNetwork LIBS += lib/libpokerth_lib.a LIBS += /lib/boost/libboost_filesystem-mt.a LIBS += /lib/boost/libboost_thread.a # SDL and SDL_mixer come as frameworks LIBS += -framework SDL LIBS += -framework SDL_mixer LIBS += /usr/lib/libc.dylib # standard path for darwinports # make sure you have a universal version of boost # libraries installed on every mac LIBS += -lcrypto -lz -framework Carbon # set the application icon RC_FILE pokerth.icns LIBPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/lib LIBPATH += /usr/lib/ INCLUDEPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/include/ INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers INCLUDEPATH += /include/boost-1_34_1 }



2) Raplace MSG_NOSIGNAL with SO_NOSIGPIPE in socket_helper.h

3) In libircclient.c my compiler isn't able to find the gethostbyname_r funcion.I try to set

Code:

  /* Define to 1 if you have the `gethostbyname_r' function. */ #define HAVE_GETHOSTBYNAME_R 0



in config.h but it doesn't work so I comment the code in this way:

Code:

  /*#if defined HAVE_GETHOSTBYNAME_R int tmp_errno; struct hostent tmp_hostent; char buf[2048]; if ( gethostbyname_r (server, &tmp_hostent, buf, sizeof(buf), &hp, &tmp_errno) ) hp = 0; #else*/ hp gethostbyname (server); //#endif // HAVE_GETHOSTBYNAME_R



4) I include the lib with the mac_post_make.sh script but it doesn't include the QtNetwork library so I had it by hand.


I think that's all if I didn't forgot something


For the lib I use the Qt, SDL e SDL_mixer framework.
I found some problem to compile the boost lib in universal binary, so I use the Adobe Open Source Libary that contain the libboost, are easier to compile and still opensource.
In the dmg on my website I include only the SDL and Qt framework.

I think that the version that you compile have problem under Tiger because Leopard have new libiconv, but if you compile under Tiger it works to all.
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:v0.6 for Mac? - 2007/12/02 08:57 Thanks for the description.

QtNetwork is not used at all, as far as I know, so I wonder why it is required on your system?

MSG_NOSIGNAL cannot be replaced by SO_NOSIGPIPE - both constants are for different calls (MSG_NOSIGNAL for send() and SO_NOSIGPIPE is a parameter for setsockopt). This is handled correctly in the current svn revision, however. The fix for libircclient is also included in the current svn revision.

Using the boost build of the Adobe Open Source Libary sounds like a great idea, I still have problems with my universal boost build (concerning exceptions which are not caught). I will try that, thanks for the hint.

I have access to a MacOS Tiger computer, so I might be able to build the full release there. This should solve the libiconv problem.

Thanks again for your help.
--
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
Yamazuya
User

Fresh Boarder
Posts: 2
graphgraph
Karma: 0  
Re:v0.6 for Mac? - 2007/12/14 09:08 Hi, I'm not quite sure if this is the right place to say it but the recent version for Mac doesn't boot for me.

At all. There's no error message no nothing, it jumps into the dock and is gone again.

The package seems complete so I don't know why it won't boot.
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:v0.6 for Mac? - 2007/12/14 10:13 I just noticed the dmg package is broken due to some trouble I've had with the qt plugin libraries. I will fix this. Sorry. --
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:v0.6 for Mac? - 2007/12/14 10:44 I've uploaded a new dmg package, this one should be fine now. The file has the same name
MD5 (PokerTH-0.6.dmg) = 4aa5d1c2634812e23c1c3533f8f2151e

The new package will take some time to spread on the sourceforge mirrors. Please give feedback on whether it runs fine.
--
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
Yamazuya
User

Fresh Boarder
Posts: 2
graphgraph
Karma: 0  
Re:v0.6 for Mac? - 2007/12/14 11:52 Thank you!

It runs and boots absolutely smooth now. Thank you for the quick support. ^^
  The administrator has disabled public write access.
<< Start < Prev 1 2 Next > End >>
designed by www.madeyourweb.com