Upspring Linux link?

Upspring Linux link?

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
User avatar
PTSnoop
Posts: 97
Joined: 09 Sep 2009, 19:05

Upspring Linux link?

Post by PTSnoop »

Is there a Linux version of Upspring available anywhere? IÔÇÖve been looking around, but the link at http://springrts.com/phpbb/viewtopic.ph ... &start=420 takes me to a ÔÇ£You need a SSL client certificate that the Web server will recognizeÔÇØ page, and the version at http://github.com/Kloot/upspring wonÔÇÖt compile for some reason (IÔÇÖm using Ubuntu Jaunty, for the record). And IÔÇÖm on an ATI graphics card so it wonÔÇÖt work in Wine.

Also, is there a Linux version of Scriptor anywhere, or will I have to get it working in Wine? (This hasnÔÇÖt worked either so far, but I reckon the problemÔÇÖs more likely to be at my end... IÔÇÖll start tweaking settings and see what happens.) Or is there another BOS/COB compiler that works fine on Linux? (I remember hearing something about Brain or Cobbler, but both linked to dead fileuniverse.com links..)
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Upspring Linux link?

Post by Tobi »

I suppose you're talking about the post quoted below. Here I have updated the links tho.
Tobi wrote:Source: http://springrts.com/svn/spring/trunk/tools/Upspring/
Patch to make it compile on Linux: http://springrts.com/mantis/view.php?id=516

(It's written in C++, using FLTK toolkit.)
As for scriptor; you could try out Lua unit scripts if you use a recent development build of Spring. Then you don't need any compiling at all.
User avatar
PTSnoop
Posts: 97
Joined: 09 Sep 2009, 19:05

Re: Upspring Linux link?

Post by PTSnoop »

Okay, thanks. I now have all the Upspring files downloaded and sitting in ~/Programs/Upspring .

Next question: how do I install them? I can't see a makefile or anything like that. Is there some SVN-ish way of installing? (I've never really used SVN before...)
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Upspring Linux link?

Post by Kloot »

PTSnoop wrote:the version at http://github.com/Kloot/upspring wonÔÇÖt compile for some reason
Where does it fail? The sources in that repository are slightly more up to data than those from Tobi's SVN link, and should be easier to compile. (Still not point 'n click though.)
User avatar
maackey
Posts: 490
Joined: 02 Jul 2008, 07:11

Re: Upspring Linux link?

Post by maackey »

upspring also works perfectly fine in wine. might save you some trouble/time.
User avatar
PTSnoop
Posts: 97
Joined: 09 Sep 2009, 19:05

Re: Upspring Linux link?

Post by PTSnoop »

On the github version, in src/fltk2, running './compile' works fine but 'make' gives a long line of compilation followed by

/usr/bin/ar cr ../lib/libfltk2.a ...
/usr/bin/ar: ../lib/libfltk2.a: No such file or directory
make[1]: *** [../lib/libfltk2.a] Error 1
make: *** [all] Error 2

The whole output's at http://pastebin.com/m46ce39d8 , if it helps.

---

maackey: Not for me it doesn't.

Image.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Upspring Linux link?

Post by Kloot »

/usr/bin/ar cr ../lib/libfltk2.a ...
/usr/bin/ar: ../lib/libfltk2.a: No such file or directory
make[1]: *** [../lib/libfltk2.a] Error 1
make: *** [all] Error 2
This means that for some reason make failed to create the proper output directory 'lib/' (under src/fltk2/) on your system. If you do so manually and then re-run it, the build will succeed.
User avatar
PTSnoop
Posts: 97
Joined: 09 Sep 2009, 19:05

Re: Upspring Linux link?

Post by PTSnoop »

Okay, thanks.

*compiles*

Okay, now fltk2, lib3ds and LuaJIT compile fine (or appear to), but Upspring itself gives

Code: Select all

EditorDef.h: At global scope:
EditorDef.h:174: warning: ÔÇÿImageFileExtÔÇÖ defined but not used
make[1]: *** [../obj/CurvedSurface.o] Error 1
make[1]: Leaving directory `/home/andrew/Programs/gitUpspring/Upspring/src/upspring'
make: *** [all] Error 2
Again, the complete output (or as much of it as I can copy from the terminal) is at http://pastebin.com/m29c2156f .
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Upspring Linux link?

Post by Kloot »

I've pushed a few fixes to the repo; please pull them and try again.
User avatar
PTSnoop
Posts: 97
Joined: 09 Sep 2009, 19:05

Re: Upspring Linux link?

Post by PTSnoop »

Which one have you updated? The git one?

I've downloaded and tried both; same problems as before.
User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: Upspring Linux link?

Post by tizbac »

Kloot: on MdlObject::InitAnimationInfo there's a 64 bit compatibility problem
when typecasting pointers use long int instead of int so on 64 bit OS it will be 64 bit and on 32 bit it'll be 32
roxi
Posts: 1
Joined: 21 Mar 2010, 17:38

Re: Upspring Linux link?

Post by roxi »

[quote="PTSnoop"]Best Free Web Hosting
Which one have you updated? The git one?
I've downloaded and tried both; same problems as before.[/quote]

Ya, the same with me :twisted:
Amalrik
Posts: 4
Joined: 04 Apr 2009, 11:37

Re: Upspring Linux link?

Post by Amalrik »

hey !
I tried to compile Upspring on my x64 linux, but I failed. Can someone confirm it s a 64bits pb ?

http://pastebin.org/438577

I took sources from http://github.com/Kloot/upspring btw
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Upspring Linux link?

Post by SpliFF »

Unfortunately Upspring is built against a 32-bit only LuaJIT.

I created a new version with 64-bit Lua support and hundreds of compiler warnings cleaned up. Unfortunately I ran into some problems while rewriting the resource loading code to use a folder instead of data.ups. Then I went to Thailand and I've been catching up on my paid projects ever since.

Anyway the point is if you go to http://github.com/SpliFF/upspring you'll find a version that will compile and run fine under 64-bit linux provided you fix the data loading code I broke. ATM you'll see warnings like unable to load skybox textures and buttons if the resources aren't found.

The problem is pretty trivial for a C++ coder but I just don't time to sit down with it right now. Perhaps kloot could look at merging some of my updates back into his. The only real issue to watch other than the resource loader is I haven't built a SWIG wrapper for the new Lua.

I think stable LuaGIT may support 64-bit by now so perhaps that could be swapped back in to avoid rewritting the SWIG.
HeadHunter
Posts: 53
Joined: 15 May 2007, 12:33

Re: Upspring Linux link?

Post by HeadHunter »

Okay, it really seems to build fine... If i make it work any better I'll send u patches.
HeadHunter
Posts: 53
Joined: 15 May 2007, 12:33

Re: Upspring Linux link?

Post by HeadHunter »

I also have trouble it can not load button icons because they are not in the repo...
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Upspring Linux link?

Post by SpliFF »

they're in a zip file called "data.ups" you need to extract it first. I found the idea of using the zip an unnecessary complication so the plan was to use flat files instead.
HeadHunter
Posts: 53
Joined: 15 May 2007, 12:33

Re: Upspring Linux link?

Post by HeadHunter »

so how do i unpack it exactly?
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Upspring Linux link?

Post by SpliFF »

If I remember correctly it's just a zip file with a silly extension. If not then I must have found or extracted the original files some other way. If you can't unzip data.ups let me know and I'll send you the files.

EDIT: I just checked the git repo and it looks like I have moved/lost some files. I'm about to upload data.ups and the buttons folder to the data folder. You can probably work it out from there.
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Upspring Linux link?

Post by SpliFF »

Resources uploaded. Just be aware they are not necessarily in the places or formats that UpSpring is looking for. I have some other local changes here which relate to changing the search paths and methods but since I know those changes broke some stuff as well I won't upload them unless you really need them. It would probably be better if you make your own choices as to where and how these resources are stored and loaded (or you could choose to revert to the original "data.ups" method (at least give it a zip extension though).
Post Reply

Return to “Linux”