Failling to build Invalid version format

Failling to build Invalid version format

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
bioinfornatics
Posts: 13
Joined: 11 Oct 2014, 13:13

Failling to build Invalid version format

Post by bioinfornatics »

Dear,

I try to make a bot for fun, but I got a build error:

Code: Select all

CMake Error at /run/media/jmercier/data/projects/spring/rts/build/cmake/UtilVersion.cmake:196 (Message):
  Invalid version format: 98.0-2-g23e0325 dai
Call Stack (most recent call first):
  /run/media/jmercier/data/projects/spring/rts/build/cmake/ConfigureVersion.cmake:28 (FetchSpringVersion)
My github fork: https://github.com/bioinfornatics/spring

I created a branch named dai (the name of my bot)

I think is something with git and cmake (one of your checker)

Code: Select all

$ git describe --tags
98.0-2-g23e0325

$ git for-each-ref refs/tags --sort=-taggerdate --format='%(refname)' --count=1
refs/tags/98.0.1

$ git describe --tags `git rev-list --tags --max-count=1`
98.0

I do not understand what I should to do.

Thanks for any helps
lamer
Posts: 153
Joined: 08 Mar 2014, 23:13

Re: Failling to build Invalid version format

Post by lamer »

To make bot you don't have to fork whole spring, only clone it
https://springrts.com/wiki/AI:Development:Lang:Cpp
https://springrts.com/wiki/AI:Development:Lang:Java

Side note.
rts/build/cmake/UtilVersion.cmake:196
rts/build/cmake/ConfigureVersion.cmake:28
should reveal what buildsystem actually expects
bioinfornatics
Posts: 13
Joined: 11 Oct 2014, 13:13

Re: Failling to build Invalid version format

Post by bioinfornatics »

Thanks I done a newly github project to host only bot https://github.com/bioinfornatics/DAI

Code: Select all

$ git clone https://github.com/bioinfornatics/DAI
$ git clone https://github.com/spring/spring.git
$ cd spring
$ pushd /AI/Skirmish/
$ ln -s ../../../DAI DAI
$ popd
$ mkdir build && pushd build &&cmake .. && make
that works :-)

now I need to wait next week end to work again on :-)

Note: can we to use gradle with cmake ? ( run a command: gradle build )
to manage dependencies instead to grab all deps and put them into the libs dir
Post Reply

Return to “AI”