[URGENT]64bit unitsync issue

[URGENT]64bit unitsync issue

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Locked
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

[URGENT]64bit unitsync issue

Post by AF »

I have a rather large issue here.

Unitsync is always 32bit under windows

No 64bit library is provided.

So if I or an end user has a 64bit Java they're totally f*cked. Theyd have to install 32bit java runtime at which point the updater sees you have a 64bit OS and installs the correct version of the new java which is as expected 64bit.

We need to sort this out. I suggest a unitsync64.dll to be bundled with spring.

In the mean time if someone can compile a 64bit Unitsync I can use as at the moment I cannot do anything with battlehub regarding spring or battles as a result of this.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: [URGENT]64bit unitsync issue

Post by AF »

BUMP

This is a major roadblock, and something that has been blatantly ignored by spring developers for the last year. 64bit users should not have to manually install 32bit software to use spring to get around installer and updaters which correctly install 64bit Software on 64bit Operating systems. Nor should they have to figure out how to build unitsync in 64bit mode themselves.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: [URGENT]64bit unitsync issue

Post by imbaczek »

ain't gonna be easy. a short googling shows that mingw for x64 exists at https://sourceforge.net/projects/mingw-w64/, but I have no idea if buildbots can be set up to crosscompile to windows 64-bit.
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: [URGENT]64bit unitsync issue

Post by bibim »

You can try to cross-compile Spring with mingw64 ( => experimental gcc 4.4) on buildserv by entering "!rebuild sys=windows64".
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: [URGENT]64bit unitsync issue

Post by imbaczek »

woot! experimental gcc frightens me, though. either way, I don't have an x64-capable box, so can't help much more.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: [URGENT]64bit unitsync issue

Post by AF »

you dont need a 64bit OS to build 64bit binaries, only to execute them.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: [URGENT]64bit unitsync issue

Post by imbaczek »

exactly, if I can't execute them, I can't test or debug them. getting a new box soon, hopefully next week, so maybe I'll put a 64bit Windows on it and play with stuff.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: [URGENT]64bit unitsync issue

Post by Licho »

I dont understand what the actual problem is?
Why does it matter that java is 64bit and unitsync 32bit..
Its the same way with .NET on 64bit systems..
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: [URGENT]64bit unitsync issue

Post by AF »

64bit binaries cannot load 32 bit libraries under windows.

Thus 64bit Virtual machine cannot load 32 bit library. E.g. 64bit Java and 32bit Unitsync. Since the java installer correctly detects 64bit OS and installs 64bit Java and there is no 64bit unitsync, anyone under 64bit windows will have issues with spring if they run a lobby client or tool thats running in or under 64bit.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Re: [URGENT]64bit unitsync issue

Post by LordMatt »

Am I correct in assuming this is only a problem for AF's lobby?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: [URGENT]64bit unitsync issue

Post by AF »

As far as I am aware yes, it would also be an issue for any 64bit spring lobby. Either way it is preventing me from continuing development.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: [URGENT]64bit unitsync issue

Post by submarine »

I'm using win xp 64 as well, although I havent encountered any problems yet I support AF's request of x64 compatible binaries
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: [URGENT]64bit unitsync issue

Post by Licho »

Ah yeah, you are right..

I have flags set inside .exe so that springie and downloader run in 32bit mode and not 64bit because of that.
Locked

Return to “Engine”