no "GetGlobalAiVersion" function exported

no "GetGlobalAiVersion" function exported

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

Moderator: Moderators

Post Reply
Double D
Posts: 3
Joined: 22 Dec 2008, 04:07

no "GetGlobalAiVersion" function exported

Post by Double D »

Ubuntu 8.04 ... 32bit ...
Installed from repo ...

I cannot seem to play any single player games with CA or BA. I cannot add a bot from the lobby or when starting the game directly...with any of the AI's. I keep receiving this error message:

Incorrect GlobalAI library "/home/usrName/AI/Bot-libs/RAIO533.so" (no "GetGlobalAiVersion" function export)

You can substitute any AI for the RAI0533.so part ...

Anyone else seen this? Any help would be appreciated ...
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: no "GetGlobalAiVersion" function exported

Post by hoijui »

on Ubuntu 8.04 32bit, it works fine here.
(i compile with GCC 4.2.3 and CMake)
it should actually be libRAI0.601 by now, not 553 anymore.
i guess something wiht your data-dirs is wrong. maybe spring tries to load AIs from an old installation, or you are starting an old spring (eg, use ./spring instead of spring).
Double D
Posts: 3
Joined: 22 Dec 2008, 04:07

Re: no "GetGlobalAiVersion" function exported

Post by Double D »

Thanks!! That worked!
superslick
Posts: 3
Joined: 09 Jan 2009, 00:42

Re: no "GetGlobalAiVersion" function exported

Post by superslick »

What worked? I am having the same problem in 8.10.
Double D
Posts: 3
Joined: 22 Dec 2008, 04:07

Re: no "GetGlobalAiVersion" function exported

Post by Double D »

For one reason or another I noticed that I had a number of Spring related directories in my home dir (AI, Base, ect...). I simply moved these into my .spring directory and placed the AI file (libRAI-0.601.so) in the /.spring/AI/Bot-libs/ directory.
superslick
Posts: 3
Joined: 09 Jan 2009, 00:42

Re: no "GetGlobalAiVersion" function exported

Post by superslick »

Thanks, but that is already what I am doing. Hoijui, any suggestions?
superslick
Posts: 3
Joined: 09 Jan 2009, 00:42

Re: no "GetGlobalAiVersion" function exported

Post by superslick »

Also, would it work on 64 bit?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: no "GetGlobalAiVersion" function exported

Post by hoijui »

i can not help with 64bit, i have no idea, and dont hae a 64bit system.
it should be something with your data dirs aswell, look at /etc/spring/datadir, ~/.spring, /usr/share/games/spring/
somewhere you will be having old AIs, that get loaded instead of the new ones, remove the old ones or backup them somewhere if you are paranoic.

srry for late answer, i am seldomly in here.
Post Reply

Return to “Linux”