2025-07-31 21:08 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002815Spring engineAIpublic2011-12-17 17:01
ReporterAF 
Assigned Tohoijui 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version85.0 
Summary0002815: Missing generated sources when building Cpp-AIWrapper
DescriptionI tried to generate wrappers using the minimum of commands:

git clone git://github.com/spring/spring.git
git pull --rebase
cmake .
make Cpp-AIWrapper

The above ran for a little while, then stopped, citing:

/root/spring/spring/rts/Game/GameVersion.cpp: In function 'bool SpringVersion::I sRelease()':
/root/spring/spring/rts/Game/GameVersion.cpp:179: error: 'SPRING_VERSION_ENGINE_ RELEASE' was not declared in this scope
make[3]: *** [AI/Wrappers/Cpp/CMakeFiles/Cpp-AIWrapper.dir/__/__/__/rts/Game/Gam eVersion.cpp.o] Error 1
make[2]: *** [AI/Wrappers/Cpp/CMakeFiles/Cpp-AIWrapper.dir/all] Error 2
make[1]: *** [AI/Wrappers/Cpp/CMakeFiles/Cpp-AIWrapper.dir/rule] Error 2
make: *** [Cpp-AIWrapper] Error 2
root@vps:~/spring/spring#
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007842

hoijui (reporter)

AF, i am pretty sure you do not want to build latest develop version, which is what you are doing there. to get latest release (84.0 at the moment of writing this), use these:
git clone git://github.com/spring/spring.git
cd spring
git checkout -b master origin/master
cmake .
make Cpp-AIWrapper

this might even have a better chance to work. if it does not (same error), you could try building unitsync before the wrapper, as it would generate the required source file.
btw, i still need feedback for the other report from you:
http://springrts.com/mantis/view.php?id=2747

note to future self:
need to put into cmake each one of these that is not yet there:
* generate VersionGenerated.h for target generate-sources
* use the above target, or a sub-target as dependency for Cpp-AIWrapper (and possibly more stuff that depends on VersionGenerated.h)
* maybe just a file level dependency is missing?

~0007843

AF (reporter)

I think it's just the generate versiongenerated.h bit that needs doing.

I came across this trying to get new wrappers so I could continue with the other ticket you mentioned, once those issues are fixed I'd wait for the next release and build Shard as usual

~0007935

hoijui (reporter)

fixed by:
https://github.com/spring/spring/commit/a1fc628476e8ebc4ec328cbbadb9fc0e891d1854
+Notes

-Issue History
Date Modified Username Field Change
2011-12-06 18:42 AF New Issue
2011-12-07 22:51 hoijui Status new => assigned
2011-12-07 22:51 hoijui Assigned To => hoijui
2011-12-07 22:51 hoijui Project AI => Spring engine
2011-12-07 22:58 hoijui Note Added: 0007842
2011-12-07 23:05 AF Note Added: 0007843
2011-12-17 17:00 hoijui Summary Cpp Wrapper generation => Missing generated sources when building Cpp-AIWrapper
2011-12-17 17:01 hoijui Note Added: 0007935
2011-12-17 17:01 hoijui Status assigned => resolved
2011-12-17 17:01 hoijui Fixed in Version => 85.0
2011-12-17 17:01 hoijui Resolution open => fixed
+Issue History