Author Topic: Linux port for glest tools  (Read 12667 times)

atd

  • Guest
Linux port for glest tools
« on: 18 April 2006, 15:20:02 »
Is there a linux port available for the glest tools?
« Last Edit: 1 January 1970, 00:00:00 by atd »

Speedator

  • Guest
(No subject)
« Reply #1 on: 18 April 2006, 16:11:20 »
Nope it isn't.
Heard about a wxWidget-port, but nothing concrete
« Last Edit: 1 January 1970, 00:00:00 by Speedator »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #2 on: 18 April 2006, 17:52:39 »
There is not really, but if you want to download the versions on the CVS and tell me what does prevent them to work on Linux I'll try to fix it...
« Last Edit: 1 January 1970, 00:00:00 by martiño »

gborzi

  • Guest
(No subject)
« Reply #3 on: 20 April 2006, 12:42:58 »
Quote from: "martinho"
There is not really, but if you want to download the versions on the CVS and tell me what does prevent them to work on Linux I'll try to fix it...

I have downloaded glest_map_editor sources from CVS, and tried to compile them. There is some problem with the strict type checking of the most recent C++ compilers. For example, the call of pow with two ints is ambiguous to g++ 4.0.1, but this is easily solved by casting of the first argument to double, i.e.
pow( static_cast<double>(i+1), i-j ) // if I remember well.
There is however a major issue in ubuntu because the libwxgtk 2.6.1 is compiled with unicode. So I had to modify unicode=no to unicode=yes in configure.ac to successfully configure the package, but after this there are a lot of problems in converting string to/from wxString.
I'm trying to solve these problems, but I have never used wxgtk. However it is possible to use the glest_map_editor executable for windows with wine.
« Last Edit: 1 January 1970, 00:00:00 by gborzi »

gborzi

  • Guest
(No subject)
« Reply #4 on: 20 April 2006, 18:39:43 »
I managed to fix the problems that prevented the compilation of glest_map_editor in GNU/Linux (ubuntu 5.10) here is the patch:
I'm going to send the patch to contact 'at' glest.org .
Please note that this is a not so quick and very dirt hack. I'm sending it in the hope the Glest developers will find it useful.
« Last Edit: 1 January 1970, 00:00:00 by gborzi »

zero0w

  • Guest
(No subject)
« Reply #5 on: 20 April 2006, 23:30:26 »
Thanks for your hard work gborzi.
« Last Edit: 1 January 1970, 00:00:00 by zero0w »

Hoshpak

  • Guest
(No subject)
« Reply #6 on: 21 April 2006, 10:53:19 »
Quote from: "gborzi"
I managed to fix the problems that prevented the compilation of glest_map_editor in GNU/Linux (ubuntu 5.10) here is the patch:
I'm going to send the patch to contact 'at' glest.org .
Please note that this is a not so quick and very dirt hack. I'm sending it in the hope the Glest developers will find it useful.


Thank you very much for your work, but does that mean that the editor will work on GNU/Linux? Or is still something missing?

Could you please post this patch or send it to me, i would like to test it myself.
« Last Edit: 1 January 1970, 00:00:00 by Hoshpak »

gborzi

  • Guest
(No subject)
« Reply #7 on: 21 April 2006, 16:49:58 »
Yes, the editor compiles, links and works. I have opened some map and changed  it randomly. One minor issue I noticed is a strange delay in closing the menus, but I noticed this behaviour in the windows glest_map_editor run under wine. I have not a windows box to check, so I don't know if this is a problem (well, a really minor one) of the program or is a GNU/Linux curse.
I have sent the patch to your email address, it's too large to be posted here.
« Last Edit: 1 January 1970, 00:00:00 by gborzi »

Hoshpak

  • Guest
(No subject)
« Reply #8 on: 21 April 2006, 17:02:00 »
I got the mail, thank you very much, I will try it as soon as I get acces to the cvs again.

EDIT: It works, great! I just forgott that my wxwidgets were compiled without opengl.
« Last Edit: 1 January 1970, 00:00:00 by Hoshpak »

mattions

  • Guest
(No subject)
« Reply #9 on: 30 April 2006, 14:16:02 »
Could you upload the patch somewhere so we can just download and try ?

And if the patch doesn't broke the windows tools why it can't go directly into CVS?

 :)
« Last Edit: 1 January 1970, 00:00:00 by mattions »

gborzi

  • Guest
(No subject)
« Reply #10 on: 30 April 2006, 22:21:00 »
The patch is available here
http://www.webalice.it/gborzi1/glest_ma ... .patch.bz2 .

Regards.
« Last Edit: 1 January 1970, 00:00:00 by gborzi »

tux-gamer

  • Guest
(No subject)
« Reply #11 on: 17 October 2006, 14:01:30 »
I try use your patch, but i still can't compile it, i have patch the main.cpp and map.cpp.

Please,Can you upload the linux binary too.
i want to make some maps.

thanks before.
« Last Edit: 1 January 1970, 00:00:00 by tux-gamer »

pseudonym404

  • Guest
(No subject)
« Reply #12 on: 24 November 2006, 18:28:50 »
Just thought I'd mention, I solved this a while ago (not sure if the tools code in cvs has changed too much since then though).

viewtopic.php?t=1069

edit: looks like the forum mangles pasted patches, I reapplied it manually, it's now available here: http://bradshaw.ath.cx/glest-tools.patch (seems to still be working fine against current cvs)

edit: should probably add -fno-strict-aliasing to CPPFLAGS if you're using gcc 4.1.x too (wx issue, not glest)
« Last Edit: 1 January 1970, 00:00:00 by pseudonym404 »

ElGranPepe

  • Guest
-
« Reply #13 on: 29 November 2006, 15:14:39 »
Is there a linux port available for the glest tools? :roll:  :roll:  :P  :P  :roll:  ::)
« Last Edit: 19 June 2016, 06:53:24 by filux »