Spring 0.94 and Debian Sid

Spring 0.94 and Debian Sid

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

Moderator: Moderators

Post Reply
daufinsyd
Posts: 6
Joined: 02 Jul 2013, 14:54

Spring 0.94 and Debian Sid

Post by daufinsyd »

Hello,

i can't build spring 0.94 under Debian sid.
i clone the repository with
git clone git://github.com/spring/spring.git -b master
cmake . return:

Code: Select all

-- Found ld.gold, compressing debugsymbols
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   thread
--   regex
--   program_options
--   system
--   signals
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   chrono
-- Building Spring for 64bit environment
-- using mtune=generic (unsure if it will sync in online gaming)
-- Building Assimp with flags             -fopenmp -mtune=generic -msse -mfpmath=sse -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-avx -mno-fma -mno-fma4 -mno-xop -mno-lwp -mno-avx2 -frounding-math -mieee-fp -pipe -fno-strict-aliasing  -fvisibility=hidden  -fvisibility-inlines-hidden -pthread
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Found AI Interface: C-AIInterface 0.1
-- Found AI Interface: Java-AIInterface 0.1
-- Maven version: Apache Maven 3.0.4
-- Found AI Wrapper: JavaOO
-- Found vecmath.jar: /home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Wrappers/JavaOO/jlib/vecmath.jar
-- Maven version: Apache Maven 3.0.4
-- Found AI Wrapper: LegacyCpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-Creg-AIWrapper
-- Found AI Wrapper: Cpp-AIWrapper
-- Maven version: Apache Maven 3.0.4
-- Found Skirmish AI: NullJavaAI 0.1 (config: default)
-- Found Skirmish AI: RAI 0.601
-- Found Skirmish AI: NullAI 0.1
-- Found Skirmish AI: KAIK 0.13
-- Found Skirmish AI: E323AI 3.25.0
-- Found Skirmish AI: CppTestAI 0.1
-- Found Skirmish AI: Shard dev
-- Found Skirmish AI: AAI 0.9
-- Found Skirmish AI: HughAI 0.1
-- Maven version: Apache Maven 3.0.4
-- Found Skirmish AI: NullOOJavaAI 0.1 (config: default)
-- Python unitsync wrapper will be created
-- Command "/usr/bin/git;describe;--tags;--candidates;999;--match;*" in directory /home/sydney/Programmes/Jeux/SPRING/spring_94.1/tools/pr-downloader/src failed with output:
"fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."
-- Version tarball
-- Could NOT find MINIZIP (missing:  MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR) 
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   unit_test_framework
-- MAN pages will be installed to {INSTALL_PREFIX}/share/man/man6
-- user-docs (plain/text) will be installed to {INSTALL_PREFIX}/share/doc/spring-VERSION/engine
-- WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sydney/Programmes/Jeux/SPRING/spring_94.1
nevertheless i installed all zip packages available from debian repo (but it still return

Code: Select all

 Could NOT find MINIZIP (missing:  MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR) 
and i don't understand this line:

Code: Select all

-- Command "/usr/bin/git;describe;--tags;--candidates;999;--match;*" in directory /home/sydney/Programmes/Jeux/SPRING/spring_94.1/tools/pr-downloader/src failed with output:
"fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."
do you have any idea ?
Thank you,
daufinsyd
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Spring 0.94 and Debian Sid

Post by abma »

for some reason /home/sydney/Programmes/Jeux/SPRING/spring_94.1/tools/pr-downloader/src isn't a git repository...

whats the output of

Code: Select all

cd /home/sydney/Programmes/Jeux/SPRING/spring_94.1/tools/pr-downloader/src && git status
?
daufinsyd
Posts: 6
Joined: 02 Jul 2013, 14:54

Re: Spring 0.94 and Debian Sid

Post by daufinsyd »

Sorry i sit for an exam ( "secondary school final examination")
it returns:

Code: Select all

$ cd /home/sydney/Programmes/Jeux/SPRING/spring_94.1/tools/pr-downloader/src && git status
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Spring 0.94 and Debian Sid

Post by abma »

either delete /tools/pr-downloader/ in the spring source dir & run cmake again, or:

if git is not installed:

Code: Select all

sudo apt-get install git-core 

"fix" the error:

Code: Select all

cd /home/sydney/Programmes/Jeux/SPRING/spring_94.1/tools
rm -rf pr-downloader
git clone git://github.com/spring/pr-downloader.git
pr-downloader is only used to download games & maps, but not needed.

did you try the static build of spring?

also you did clone the spring repo, but the error message says you didn't clone it?!
daufinsyd
Posts: 6
Joined: 02 Jul 2013, 14:54

Re: Spring 0.94 and Debian Sid

Post by daufinsyd »

git-core wasn't installed.

now it return:


Code: Select all

Note: The following function is intentionally not wrapped: Engine_handleCommand
[  4%] [  4%]   Cpp-AIWrapper: Generating C++ Callback wrapper sources
Building CXX object AI/Wrappers/LegacyCpp/CMakeFiles/LegacyCpp-AIWrapper.dir/CommandQueue.cpp.o
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of Version
caution: possible problem with indices args of OrderPreview
caution: possible problem with indices args of OrderPreview
caution: possible problem with indices args of OrderPreview
caution: possible problem with indices args of OrderPreview
caution: possible problem with indices args of OrderPreview
caution: possible problem with indices args of GraphDrawer
caution: possible problem with indices args of GraphDrawer
caution: possible problem with indices args of GraphDrawer
note: ignoring meta comment: REF:receivingTeamId->Team
note: ignoring meta comment: REF:receivingTeamId->Team
note: ignoring meta comment: REF:ret_pathId->Path
note: ignoring meta comment: REF:pathId->Path
note: ignoring meta comment: REF:pathId->Path
[  4%] Building CXX object AI/Wrappers/LegacyCpp/CMakeFiles/LegacyCpp-AIWrapper.dir/DamageArray.cpp.o
note: ignoring meta comment: REF:figureGroupId->FigureGroup
note: ignoring meta comment: REF:ret_newFigureGroupId->FigureGroup
note: ignoring meta comment: REF:figureGroupId->FigureGroup
note: ignoring meta comment: REF:ret_newFigureGroupId->FigureGroup
note: ignoring meta comment: REF:figureGroupId->FigureGroup
note: ignoring meta comment: REF:figureGroupId->FigureGroup

Code: Select all

[  7%] /home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/KAIK/PathFinder.cpp: In member function ‘void* CPathFinder::XY2Node(int, int)’:
/home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/KAIK/PathFinder.cpp:244:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  return (void*) (y * PathMapXSize + x);
                                      ^
/home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/KAIK/PathFinder.cpp: In member function ‘void* CPathFinder::Pos2Node(float3)’:
/home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/KAIK/PathFinder.cpp:264:111: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  return ((void*) (int(pos.z / SQUARE_SIZE / THREATRES) * PathMapXSize + int((pos.x / SQUARE_SIZE / THREATRES))));
                                                                                                               ^

Code: Select all

[ 16%] Building CXX object rts/lib/assimp/code/CMakeFiles/assimp.dir/OptimizeMeshes.cpp.o
In file included from /usr/include/pthread.h:24:0,
                 from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr.h:148,
                 from /usr/include/c++/4.8/ext/atomicity.h:33,
                 from /usr/include/c++/4.8/bits/basic_string.h:39,
                 from /usr/include/c++/4.8/string:52,
                 from /home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Wrappers/LegacyCpp/UnitDef.h:6,
                 from /home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/E323AI/headers/HEngine.h:5,
                 from /home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/E323AI/CE323AI.h:4,
                 from /home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/E323AI/CE323AI.cpp:1:
/home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/E323AI/CScopedTimer.h: In static member function ‘static unsigned int CScopedTimer::GetEngineRuntimeMSec()’:
/home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/E323AI/CScopedTimer.h:18:41: error: expected unqualified-id before numeric constant
  #define boost_TIME_UTC_override boost::TIME_UTC
                                         ^
/home/sydney/Programmes/Jeux/SPRING/spring_94.1/AI/Skirmish/E323AI/CScopedTimer.h:45:24: note: in expansion of macro ‘boost_TIME_UTC_override’
   boost::xtime_get(&t, boost_TIME_UTC_override);
                        ^
[ 16%] Building CXX object AI/Skirmish/AAI/CMakeFiles/AAI.dir/AAIMap.cpp.o
make[2]: *** [AI/Skirmish/E323AI/CMakeFiles/E323AI.dir/CE323AI.cpp.o] Erreur 1
make[1]: *** [AI/Skirmish/E323AI/CMakeFiles/E323AI.dir/all] Erreur 2
make[1]: *** Attente des tâches non terminées....

Code: Select all

[20%] make: *** [all] Erreur 2
Static build works fine, but when i change path to its (from springlobby) it doesn't works (it return bad version (91 instead of 94 ...)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring 0.94 and Debian Sid

Post by hoijui »

always give the whole log, and attach it as a file, not in the post as text (or code tag).
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Spring 0.94 and Debian Sid

Post by abma »

Static build works fine, but when i change path to its (from springlobby) it doesn't works (it return bad version (91 instead of 94 ...)
when self-compiled it will return the wrong version, too. you've to disable the version-check, but be aware that you have to check yourself if you are using the correct version of spring when you join a battle.

In springlobby.conf set

Code: Select all

DisableVersionCheck=1
daufinsyd
Posts: 6
Joined: 02 Jul 2013, 14:54

Re: Spring 0.94 and Debian Sid

Post by daufinsyd »

Okay, now springlobby doesn't work.
I have some problems with debian sid.
I'm fixing it.
Attachments
build.txt
(55.8 KiB) Downloaded 19 times
daufinsyd
Posts: 6
Joined: 02 Jul 2013, 14:54

Re: Spring 0.94 and Debian Sid

Post by daufinsyd »

thank you very much abma !!!!
I set DisableVersionCheck to 1

Nevertheless do you know why the build failed ? (I hope i could make debian packages :) )
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Spring 0.94 and Debian Sid

Post by abma »

daufinsyd wrote:Nevertheless do you know why the build failed ? (I hope i could make debian packages :) )
spring 94.1 doesn't work with boost 1.50.

https://github.com/Error323/E323AI/comm ... ee1425e83e

some other fixes are needed as well, but this one can be fixed by updating E323AI.
daufinsyd
Posts: 6
Joined: 02 Jul 2013, 14:54

Re: Spring 0.94 and Debian Sid

Post by daufinsyd »

okay, thank you ! :)
Post Reply

Return to “Linux”