Re: [glib Solution] Frozen Bubble Server Windows
Where do we need regex? I don't see this. Kartik Thakore On 2010-07-04, at 6:32 PM, kmx k...@volny.cz wrote: Dne 5.7.2010 0:02, Kartik Thakore napsal(a): Hi kmx, I saw your work in Alien::SDL this morning! MathNerd was able to fix the windows server in a github branch. See http://github.com/kthakore/frozen-bubble/tree/windows_server It compiles now on both linux and windows. However now we have to fix the perl Build for the server on windows. Here is the subroutine I reserved for that. Can you see if it will work with Alien::SDL glib? As for glib I guess that latest github version of Alien::SDL should be good enough so that we do not need to download another glib binaries. However I am not sure about -lregex -- kmx
Re: [glib Solution] Frozen Bubble Server Windows
Dne 3.7.2010 20:41, Kartik Thakore napsal(a): Hi kmx, I remember you saying we had trouble getting glib on windows working. And that this prevent the frozen-bubble server from compiling on windows. No, you do not understand exactly my point (or I failed to explai it :) In fact we already have glib Windows binaries (both 32/64 bit) included in Win binaries installed by Alien::SDL (thanks to pango) - I have just a minute ago fixed one missing header file (no idea why it is missing), so for working glib install latest Alien::SDL from hithub. To use glib from Alien::SDL (!!beware: works only on Windows and is only a side effect!!): my $inc = '-I' . Alien::SDL-config('prefix') . '/include/glib-2.0'; my $lib = '-L' . Alien::SDL-config('prefix') . '/lib'; system('gcc', 'test.c', $inc, $lib, '-lglib-2.0'); In the end do not forget to grab necessary DLLs from: Alien::SDL-config('prefix') . '/bin' My objection against using glib was that it is (incl. all prereqs) quite a massive bundle of *.dll + *.a + *.h which is not easy to build on Windows box. And if you want to make in long term frozen-bubble more multiplatform that it is today my suggestion is get rid of glib. It is not a criticism, I know that FB was originally designed for Linux / UNIX systems and having glib already installed is quite common. From obvious reasons it makes troubles on Windows box (and confider some even more obscure perl platforms in the future e.g. mobile devices/phones). Recently on #sdl we have a volunteer (mathnerd314) who points out that we could just use the binaries provided by gtk. http://www.gtk.org/download-windows.html I know about these but they are only 32bit (AFAIK) whereas we support both 32/64bit Can you provide insight if this would work with our frozen-bubble Build.PL? http://github.com/kthakore/frozen-bubble/blob/master/inc/My/Builder.pm#L90 Technically they are usable, but IIRC there more gotchas with porting fb-server to Windows then just having glib. Instead of putting this in Alien::SDL we can just have a dependency with it for Frozen-Bubble windows. Another alternative is to have mathnerd314 compile this server for us and just package it with FB windows. I have one more option - star a new module Games::FrozenBubble::Server and find a volunteer who implement it as a pure-perl or not-pure-but-easily-portable :) -- kmx
Re: [glib Solution] Frozen Bubble Server Windows
Dne 5.7.2010 0:02, Kartik Thakore napsal(a): Hi kmx, I saw your work in Alien::SDL this morning! MathNerd was able to fix the windows server in a github branch. See http://github.com/kthakore/frozen-bubble/tree/windows_server It compiles now on both linux and windows. However now we have to fix the perl Build for the server on windows. Here is the subroutine I reserved for that. Can you see if it will work with Alien::SDL glib? As for glib I guess that latest github version of Alien::SDL should be good enough so that we do not need to download another glib binaries. However I am not sure about -lregex -- kmx
Re: [glib Solution] Frozen Bubble Server Windows
Mathnerd maybe this is why the name for the windows server is not showing up? Kartik Thakore On 2010-07-06, at 2:44 PM, kmx k...@volny.cz wrote: Dne 5.7.2010 14:27, Kartik Thakore napsal(a): Where do we need regex? I don't see this. frozen-bubble\server\game.c frozen-bubble\server\net.c -- kmx
Re: [glib Solution] Frozen Bubble Server Windows
Hi kmx, I saw your work in Alien::SDL this morning! MathNerd was able to fix the windows server in a github branch. See http://github.com/kthakore/frozen-bubble/tree/windows_server It compiles now on both linux and windows. However now we have to fix the perl Build for the server on windows. Here is the subroutine I reserved for that. Can you see if it will work with Alien::SDL glib? http://github.com/kthakore/frozen-bubble/blob/windows_server/inc/My/Builder.pm#L145 Regards, Kartik On Sat, Jul 3, 2010 at 2:41 PM, Kartik Thakore thakore.kar...@gmail.comwrote: Hi kmx, I remember you saying we had trouble getting glib on windows working. And that this prevent the frozen-bubble server from compiling on windows. Recently on #sdl we have a volunteer (mathnerd314) who points out that we could just use the binaries provided by gtk. http://www.gtk.org/download-windows.html Can you provide insight if this would work with our frozen-bubble Build.PL? http://github.com/kthakore/frozen-bubble/blob/master/inc/My/Builder.pm#L90 Instead of putting this in Alien::SDL we can just have a dependency with it for Frozen-Bubble windows. Another alternative is to have mathnerd314 compile this server for us and just package it with FB windows. Regards, Kartik Thakore
[glib Solution] Frozen Bubble Server Windows
Hi kmx, I remember you saying we had trouble getting glib on windows working. And that this prevent the frozen-bubble server from compiling on windows. Recently on #sdl we have a volunteer (mathnerd314) who points out that we could just use the binaries provided by gtk. http://www.gtk.org/download-windows.html Can you provide insight if this would work with our frozen-bubble Build.PL? http://github.com/kthakore/frozen-bubble/blob/master/inc/My/Builder.pm#L90 Instead of putting this in Alien::SDL we can just have a dependency with it for Frozen-Bubble windows. Another alternative is to have mathnerd314 compile this server for us and just package it with FB windows. Regards, Kartik Thakore