Spring on OpenSuse 11.1 64bit

Spring on OpenSuse 11.1 64bit

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

Moderator: Moderators

Pink
Posts: 28
Joined: 10 Jun 2009, 21:33

Spring on OpenSuse 11.1 64bit

Post by Pink »

YMMV...

OVERVIEW
Just a few quick notes of my experience installing on Linux. Particularly in respect of OpenSuse 11.1 64bit.

I use Smart as my package manager with occasional fallback to Yast.

Firstly there is a copy of spring in the Packman repo and the Suse strategy:games repo, but it is out of date and contains no AI. I'd avoid these.

There is also a very up to date accAgon's repository on the OpenSuse build system.

For 11.1 this is the repo link.
http://download.opensuse.org/repositori ... cAgon.repo

In Smart you just need to add a new channel through the GUI, select get details from URL and give it this URL.

For Yast I imagine it's much the same process but don't quote me on that.

I have only just found the Spring page on the official WIKI.
http://en.opensuse.org/Spring
and
http://en.opensuse.org/SpringLobby
These include links to the top level of the suitable repositories and from there you can find your suitable version if you are not on 11.1.

After installing the meta package spring-complete from accAgon's repo and downloading a map and mod from http://spring.jobjol.nl/subcategory.php?id=1 to put in my ~/.spring/maps..mods directories, Spring would fire up but would not find AI. I tried running springlobby and configuring both spring and springlobby but still no AI came up.

SORTING IT OUT
I finally found/worked out I needed to do a few things, the first of which was create a .spring/ directory in my home directory or run spring at least once (and immediately quit) to create the .spring/ directory in my home.

Once the ~/.spring directory was there I needed to set up a link to the AI folder that had been installed. I had a hunch from various posts I'd read that the issue was a pathing one and one post on the official spring WIKI indicated that the AI paths had changed recently and a suitable path for my 0.79.1 version was /home/<loginname>/.spring/AI/Skirmish/
/home/<loginname>/.spring/AI/Interface/


As I already knew there was such a directory structure in place in /usr/lib64/spring/AI/ I simply symlinked to that folder with

Code: Select all

ln -s /usr/lib64/spring/AI /home/<loginname>/.spring/AI
The AI was now recognised by spring lobby but every time I started a single player game with an AI it would get to the point where the AI was loading in and then crash out with no log and nothing even with debug turned on at the command line that I could see as to why.

I left it like this for a few days and played around with some of the test scripts, some of which worked and some of which didn't. I also did a lot of fiddling with the spring install to see if I could work out what was wrong with the AI. I read a fair amount, mostly posts on the WIKI or forums here, but nothing really answered my queries, though I retrieved many clues and a lot more knowledge about Spring.

In the meantime I'd been playing with Spring on my work laptop (Vista x64.....arggggh), and after a few initial issues with that as well I found it worked fine there and so used the opportunity of having a working copy to find out what was different. Nothing really, but I did get to see what logs got generated and why they got generated in a generally working system.

I then had a bit of an idea and wondered if this was a permissions based issue. So I uninstalled everything spring related on my Linux box, then manually cleaned up the directories and config files, both in the system and my home directory. I wanted to try and achieve a clean base to start from and was more than happy digging around in the config files and even reading bits of the source code in the svn repositories by now, so didn't want to keep anything of my original install.

I re-installed spring-complete from the accAgon repo and set up the ./AI symlink again.

I checked I was in the games system group, which I was, by running.

Code: Select all

less /etc/group
...
floppy:x:19:
ftp:x:49:
games:x:40:pink
gdm:!:109:
haldaemon:!:102:
...
I then set the ownership on the /usr/lib64/spring/AI/ directory to be root:games with

Code: Select all

sudo chown -R root:games /usr/lib64/spring/AI
I then made sure all the directories I wanted to be read/writable by the games group were such with

Code: Select all

sudo chmod -R g=+rwX /usr/lib64/spring/AI
This then made the AI be recognised by spring lobby and an attempt be made to load it in to spring without the game crashing and a log file be written and a notice about AI initialisation failure in the in game console. The log file indicated that the AI had no config file, so I checked in the directories and found that the AAI AI had config files already set up for the mod I was trying to play, but for an earlier version. In the /usr/lib64/spring/AI/Skirmish/AAI/0.9/cfg/mod/ directory I copied the config file over from BA692.cfg to BA695.cfg as I was running Balanced Annihilation 6.95 and figured that probably not enough had changed for this config to be rejected.

This then worked and I had my first play in a single player AI skirmish game and got my arse whipped. (I never said I was any good at RTS :) )

NOW THAT IT'S WORKING
...can we break it...

I then also decided I might as well symlink in the maps/mods/demos directories as well and make the files/dirs that I'd already found in /usr/share/games/spring/ the location for me to throw anything spring related. I'm the only user on my system so this is not an issue as I'll always be putting the content I download in to /usr/share/games/spring/maps..mods...LuaUI... and figure any auto downloaded items from springlobby or any other launcher client should head that direction as well. To do this I had to move the content I'd placed in maps and mods into the system directories, then remove the maps and mods directories from my ~/.spring directory then set up the symlinks and set permissions to make the appropriate system based directories writable by the games group.

An ls of my ~/.spring/ looks something like this as far as symlinks goes.

Code: Select all

AI -> /usr/lib64/spring/AI
demos -> /usr/share/games/spring/demos
LuaUI -> /usr/share/games/spring/LuaUI
maps -> /usr/share/games/spring/maps
mods -> /usr/share/games/spring/mods
If you do not want this system (as you have more than one user who wants to run different maps/mods/configs collections) then you may just have to manually create the demos, LuaUI, maps and mods directories in your ~/.spring/ directory and then put your game content in them and leave the default system wide directories alone. I'll have to leave that as an exercise for the reader to play with and discover. The configuration I have adopted works for me and leaves the package system free to update spring. It would appear that Spring has a virtual file system and combines user data directories with system data directories with the user content overriding any system content, so anything you put in the system directories content or config wise becomes the default for all users.

If this helps just one other person get a 64-bit version of Spring running on their system then it's worth the time it took to work it out and write this post :). I don't claim any accuracy at all here. This is just my experience and an outline of the things I have tried and appear to be the major factors in getting Spring to work for me.

Positives:
Cheers, great engine, great mods. Keep up the good work all involved.

Criticism:
If there was info in the debug output about permissions issues, I didn't see it, but even so something like that should be caught and output as an error message on the command line really rather than crashing the game engine out. I have no idea if this is the bots fault, the interface code or the game engine itself bugging out and if anyone can tell me how I can help to track down and resolve this issue I'll be glad to spend a little time trying to help look into it.

Thanks for listening.
Last edited by Pink on 16 Jun 2009, 22:30, edited 1 time in total.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring on OpenSuse 11.1 64bit

Post by Auswaschbar »

You know that spring can utilize multiple data directories, and they can be set freely in your config file (in ~/.springrc, set "SpringData=/some/path;/another/path", or for system-wide, put any paths, seperated by newlines, in /etc/spring/datadir).

In other distros (ubuntu, gentoo), datadirs are set up properly so they work out of the box.

IIRC argon is the current maintainer, he should be able to fix this.
Pink
Posts: 28
Joined: 10 Jun 2009, 21:33

Re: Spring on OpenSuse 11.1 64bit

Post by Pink »

That's a good bit of info to add.

I was aware of the VFS and multiple data directories pathing but I couldn't find any solid info on it or examples that didn't just have a single path defined, the output in the console gave me some indication of this ability, hence mentioning it in my post. I don't however feel I can speak about that with any authority, so thanks for adding that to my knowledge.

It would not fix the permission issue that I had as far as I am aware, unless it scans for a writable directory (rather than crashing).

accAgon/Argon is on here I presume (I'll go look him up as I'd like to thank him and ask about the issues post install). I'm very new around here so have little idea of who's who.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring on OpenSuse 11.1 64bit

Post by Auswaschbar »

Pink wrote:It would not fix the permission issue that I had as far as I am aware, unless it scans for a writable directory (rather than crashing).
Yes, it scans all given directories for write access, and only crash when none is writable. But this should never happen, because $HOME/.spring should always be.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring on OpenSuse 11.1 64bit

Post by hoijui »

possibly, the symlink is a problem, as /usr/games/spring is owned by root, and when you symlink it, or part of it to ~/.spring/, the engine tries to write there and fails. just an idea though.

i guess the version in the opensuse repo is not the latest, as Agon is away from civilization for a month, since a bit more then a week, and as the last release was this weekend...

so he wont be available for help with spring on opensuse for approximately an other 3 weeks.

(btw, i did nto read all your post, am too tired, sorry)
Pink
Posts: 28
Joined: 10 Jun 2009, 21:33

Re: Spring on OpenSuse 11.1 64bit

Post by Pink »

Auswaschbar wrote:You know that spring can utilize multiple data directories, and they can be set freely in your config file (in ~/.springrc, set "SpringData=/some/path;/another/path", or for system-wide, put any paths, seperated by newlines, in /etc/spring/datadir).

In other distros (ubuntu, gentoo), datadirs are set up properly so they work out of the box.

IIRC argon is the current maintainer, he should be able to fix this.
I removed all my symlinks and did as you suggest with...

SpringData=/home/pink/.spring;/usr/share/games/spring;/usr/lib64/spring

I then get the message once again that no AIs were found on my system.

I tried then setting up an AI directory in ~/.spring/ and still the same message.

Have I got the path separator wrong?

why does it now not find the AI directory in
:~> ls -las /usr/lib64/spring/AI/
total 16
4 drwxr-xr-x 4 pink games 4096 2009-07-01 12:32 .
4 drwxr-xr-x 3 root root 4096 2009-07-01 12:32 ..
4 drwxr-xr-x 3 pink games 4096 2009-07-01 12:32 Interfaces
4 drwxr-xr-x 8 pink games 4096 2009-07-01 12:32 Skirmish

As you can see I even gave myself ownership of it :)

From the output of spring lobby it seems to be treating the entire string as a single path.

Code: Select all

Scanning: /home/pink/.spring;/usr/share/games/spring;/usr/lib64/spring/maps
Scanning: /home/pink/.spring;/usr/share/games/spring;/usr/lib64/spring/base
Scanning: /home/pink/.spring;/usr/share/games/spring;/usr/lib64/spring/mods
Scanning: /home/pink/.spring;/usr/share/games/spring;/usr/lib64/spring/packages
So I used spring lobby to set the data dir to /home/pink/.spring/ which ended up in .springrc as...
SpringData=/home/pink/.spring

Also if I try to use ~/.spring in SpringData then spring lobby complains about needing full paths. "Init: specify data directories using absolute paths please" (nice that it's polite)

Nothing I've tried other than my symlink way has worked to get me AI yet.

I guess I'll try the /etc/spring/datadir option and see if that works.

accAgon has updated spring in the opensuse repos to 0.79.1.2 since I started this and I have updated to it.

Addendum:
I went to create the datadir file in /etc/spring and found that now one exists (since I did the update, I believe)

Code: Select all

# ls -las /etc/spring/
total 20
 4 drwxr-xr-x   2 root root  4096 2009-06-09 23:14 .
12 drwxr-xr-x 117 root root 12288 2009-07-02 07:21 ..
 4 -rw-r--r--   1 root root   228 2009-06-09 23:14 datadir
and it contains

Code: Select all

/usr/lib64/spring/AI/Skirmish/AAI/
/usr/lib64/spring/AI/Skirmish/NTai/
/usr/lib64/spring/AI/Skirmish/NullLegacyCppAI/
/usr/lib64/spring/AI/Skirmish/KAIK/
/usr/lib64/spring/AI/Skirmish/NullAI/
/usr/lib64/spring/AI/Skirmish/RAI/
So this was set when I was doing all the above tests.

I'm guessing this would then not find the interface directory as this is not listed in those paths.

So I added in
/usr/share/games/spring/
/usr/lib64/spring/
/usr/lib64/spring/AI/

The first time after that I started spring lobby it still wouldn't find the AI, but second time round it did.

So we're down to less tweaks to get off the ground.

Thanks for all your help and suggestions.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring on OpenSuse 11.1 64bit

Post by hoijui »

glad you made it :-)
yeah.. these paths in /etc/spring make no sense, data dir paths do always have to be to the root of the data dir, eg. the dir containing the dirs AI, mods, maps.
Pink
Posts: 28
Joined: 10 Jun 2009, 21:33

Re: Spring on OpenSuse 11.1 64bit

Post by Pink »

Not quite there, but on the way. I have one big issue to deal with yet regarding the AAI AI crashing

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x00007fffeb941819 in ?? () from /usr/lib64/spring/AI/Skirmish/AAI/0.9/libSkirmishAI.so
and none of the other AIs finding configuration files, but that's a separate thread after I've done some more research on the AI side of things and once I can eliminate simple things such as paths and permissions as the cause from the installation of spring.

Unfortunately, it seems there may be several paths in the codebase that lead to dead ends that don't behave elegantly in regard of relatively simple issues. I completely understand why such issues may be there. Most of the time with the correct configuration in place the issues don't exist. I'm also aware that spring is very much under active development and many of these things may well already be on someone's to do list.

Also alternatively, of course, my hardware could be playing fun and games with me and I genuinely have some kind of issue. :)

I'm thinking of building a debug build, so I can maybe get some insight into what's going on in these situations, but I'm aware that building spring from scratch may not be as simple as it may at first appear, and doing that could increase the number of problems I have on my 'Todo' list initially.

Again though that's another thread and before I post anything on any of these issues I need to study the problem and do some research first.
Pink
Posts: 28
Joined: 10 Jun 2009, 21:33

Re: Spring on OpenSuse 11.1 64bit

Post by Pink »

Okay. I found Agon hs very nicely put a debug info build in his repo (thanks again). so from that I was able to get this gdb output.

Program received signal SIGSEGV, Segmentation fault.
0x00007fffeb941906 in AAIMap::UpdateEnemyScoutingData() ()
from /usr/lib64/spring/AI/Skirmish/AAI/0.9/libSkirmishAI.so
(gdb) bt
#0 0x00007fffeb941906 in AAIMap::UpdateEnemyScoutingData() ()
from /usr/lib64/spring/AI/Skirmish/AAI/0.9/libSkirmishAI.so
#1 0x00007fffeb93052b in AAI::Update() ()
from /usr/lib64/spring/AI/Skirmish/AAI/0.9/libSkirmishAI.so
#2 0x00007fffeb95b983 in CAIAI::handleEvent(int, void const*) ()
from /usr/lib64/spring/AI/Skirmish/AAI/0.9/libSkirmishAI.so
#3 0x00007fffeb9391c8 in handleEvent ()
from /usr/lib64/spring/AI/Skirmish/AAI/0.9/libSkirmishAI.so
#4 0x0000000000933be6 in CSkirmishAILibrary::HandleEvent(int, int, void const*) const ()
#5 0x00000000009447e8 in CSkirmishAIWrapper::Update(int) ()
#6 0x000000000093ed1d in CEngineOutHandler::Update() ()
#7 0x00000000004b2590 in CGame::SimFrame() ()
#8 0x00000000004c4d6b in CGame::ClientReadNet() ()
#9 0x00000000004c8728 in CGame::Update() ()
#10 0x00000000008ae42a in SpringApp::Update() ()
#11 0x00000000008b42f1 in SpringApp::Run(int, char**) ()
#12 0x00000000008ab575 in Run(int, char**) ()
#13 0x00007ffff45f5586 in __libc_start_main () from /lib64/libc.so.6
#14 0x000000000044a349 in _start () at ../sysdeps/x86_64/elf/start.S:113

Which seems to indicate the crash fault does indeed lay in the AI.

I've run this twice now and both times it's been in the same function "UpdateEnemyScoutingData()" that it's segfaulted. It does seem though that this may be a build/system incompatibility issue rather than a code problem. As reading through the main post on the RAI AI someone on ubuntu suffered similar issues and recompiled spring and all the AIs stopped crashing.

So maybe I'm just going to have to bite the bullet and find out what is needed for a compile on opensuse x64.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: Spring on OpenSuse 11.1 64bit

Post by Agon »

I'm back.....

Eh well the /usr/lib(64)/spring/AI folder needs to be symlinked or copied to .spring or any spring datadir.
I think Spring or/and Springlobby does not search for different AI folders....

I copied the complete /usr/share/games/spring and /usr/lib64/spring/AI folders to $HOME/Spring/* and configured SpringLobby to use $HOME/Spring .

Well send me a pm with suggestion for improvement and I will probably implement the suggestion (if I'm not lazy and have time).
Pink
Posts: 28
Joined: 10 Jun 2009, 21:33

Re: Spring on OpenSuse 11.1 64bit

Post by Pink »

Hey, kudos for the build as it is. Thanks.

If I get anything concrete sorted in my head I'll definitely pass it along.
Pink
Posts: 28
Joined: 10 Jun 2009, 21:33

Re: Spring on OpenSuse 11.1 64bit

Post by Pink »

I'd be interested to know if you play against any particular AI in any particular mod and if you have experienced any issues?

I'll try your suggestion of copying everything to ~/Spring and setting springlobby to use that.

I'm not sure how this is going to be different than my current setup of using /etc/spring/datadir to provide the multiple paths to spring/springlobby so that it can locate files. This does indeed cause spring to search all of those locations for AI without symlinking or copying.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring on OpenSuse 11.1 64bit

Post by Auswaschbar »

Agon wrote:I'm back.....

Eh well the /usr/lib(64)/spring/AI folder needs to be symlinked or copied to .spring or any spring datadir.
I think Spring or/and Springlobby does not search for different AI folders....

I copied the complete /usr/share/games/spring and /usr/lib64/spring/AI folders to $HOME/Spring/* and configured SpringLobby to use $HOME/Spring .

Well send me a pm with suggestion for improvement and I will probably implement the suggestion (if I'm not lazy and have time).
fail @ package making
add /usr/lib(64)/spring/ to SPRING_DATADIR [compiler flag| env variable | /etc/spring/datadirs]
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: Spring on OpenSuse 11.1 64bit

Post by Agon »

@Pink:
Most AIs don't work on Linux. In one release they work in the next they don't. Currently I have no AIs.

@Auswaschbar:
fail @ making no documentation
fail @ not including this into cmake
(Yeah, I know I would not want to do this, too)

The build script tells cmake to use /usr/lib(64)/spring for the AIs.
So why does cmake not configure the environment variable or the config file.

I as a packager don't want to insert hackish code lines into the build script to make it more complicated as it is.
This is a job of cmakes installation process.

Oh and how should a normal Linux user know that?
Hint: No documentation.

I'm getting bored of this community and the missing of documentation...why did the CommandEngine (ORTS) project stopped :cry:
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring on OpenSuse 11.1 64bit

Post by Auswaschbar »

First of all, you could just have asked me.

I may be wrong, because I don't have suse, but google says so:
you set CMAKE_INSTALL_PREFIX to "/usr", and AIDIR to "/usr/lib64/spring".
The nonexistent docu, the variable description from CMAKE_ISNTALL_PREFIX, clearly states that CMAKE_INSTALL_PREFIX is prepended onto the install directories, so spring will look in "/usr/usr/lib64/spring". But tbh, I'm surprised cmake will actually install without errors.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: Spring on OpenSuse 11.1 64bit

Post by Agon »

Code: Select all

%ifarch x86_64
cmake -G"Unix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} -DCMAKE_INSTALL_PREFIX=/usr -DDATADIR=%{_datadir}/games/spring -DCUSTOM_COMPILER_DEFINITIONS="$RPM_OPT_FLAGS" -DCMAKE_BUILD_TYPE=RELEASE -DSPRING_DATADIR=%{_datadir}/games/spring -DAIDIR=%{_libdir}/spring
%else
cmake -G"Unix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} -DCMAKE_INSTALL_PREFIX=/usr -DDATADIR=%{_datadir}/games/spring -DCUSTOM_COMPILER_DEFINITIONS="$RPM_OPT_FLAGS" -DCMAKE_BUILD_TYPE=RELEASE -DMARCH_FLAG=i686 -DSPRING_DATADIR=%{_datadir}/games/spring -DAIDIR=%{_libdir}/spring
%endif
-DCMAKE_INSTALL_PREFIX=/usr
-DAIDIR=%{_libdir}/spring
=> /usr/lib64/spring

So AIDIR would be in the end /usr/usr/lib64/spring
but why does it install into /usr/lib64/spring ?
Last edited by Agon on 04 Jul 2009, 18:47, edited 1 time in total.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring on OpenSuse 11.1 64bit

Post by Auswaschbar »

CMAKE_INSTALL_PREFIX is handled by cmake internally. My guess would be that newer version of cmake have integrated check if the install directory of a file is relative or absolute path, and prepend CMAKE_INSTALL_PREFIX or prepend not. My code for automatic datadir detection does not have this, and spring looks in wrong directory.

The same applies for DATADIR btw, butsince you have added this as another datadir in "-DSPRING_DATADIR=%{_datadir}/games/spring", it will still be found (althought /usr/usr/share/games/spring" is checked, too).

Ugly fix:

Code: Select all

"-DSPRING_DATADIR=%{_datadir}/games/spring:%{_libdir}/spring"
Better fix:
strip the "/usr/" from the variables before invoking cmake.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: Spring on OpenSuse 11.1 64bit

Post by Agon »

You mean like this?

Code: Select all

%ifarch x86_64
cmake -G"Unix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DLIBDIR=%{_lib} -DBINDIR=/bin -DCMAKE_INSTALL_PREFIX=/usr -DDATADIR=/share/games/spring -DCUSTOM_COMPILER_DEFINITIONS="$RPM_OPT_FLAGS" -DCMAKE_BUILD_TYPE=RELEASE -DSPRING_DATADIR=/share/games/spring -DAIDIR=%{_lib}/spring
%else
cmake -G"Unix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DLIBDIR=%{_lib} -DBINDIR=/bin -DCMAKE_INSTALL_PREFIX=/usr -DDATADIR=/share/games/spring -DCUSTOM_COMPILER_DEFINITIONS="$RPM_OPT_FLAGS" -DCMAKE_BUILD_TYPE=RELEASE -DMARCH_FLAG=i686 -DSPRING_DATADIR=/share/games/spring -DAIDIR=%{_lib}/spring
%endif
%{_lib} = lib or lib64
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring on OpenSuse 11.1 64bit

Post by Auswaschbar »

Code: Select all

%ifarch x86_64
cmake -G"Unix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DLIBDIR=%{_lib} -DCMAKE_INSTALL_PREFIX=/usr -DCUSTOM_COMPILER_DEFINITIONS="$RPM_OPT_FLAGS" -DCMAKE_BUILD_TYPE=RELEASE -DAIDIR=%{_lib}/spring
%else
cmake -G"Unix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DLIBDIR=%{_lib} -DCMAKE_INSTALL_PREFIX=/usr -DCUSTOM_COMPILER_DEFINITIONS="$RPM_OPT_FLAGS" -DCMAKE_BUILD_TYPE=RELEASE -DAIDIR=%{_lib}/spring
%endif
Like this. Deleted entries which are unnecessary as they only set the default:
BINDIR: bin
DATADIR: share/games/spring

SPRING_DATADIR is not an install directory. It is only for adding additional directories where spring looks for content, and also not affected by CMAKE_INSTALL_PREFIX.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: Spring on OpenSuse 11.1 64bit

Post by Agon »

Code: Select all

-DMARCH_FLAG=i686
Is default, too? Or should it be avoided to use?
Post Reply

Return to “Linux”