View topic - Help Building an AI



All times are UTC + 1 hour


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Help Building an AI
PostPosted: 30 Mar 2009, 17:15 

Joined: 10 Feb 2009, 04:04
I have been cracking my head against walls for a few weeks now trying to understand how in the world to create an AI. I have been to http://spring.clan-sy.com/wiki/Building ... on_Windows already and can't seem to get it to work. Something with a little more clarification would be nice. If my problems have been listed elsewhere in the forums, I apologize for the repeat. Maybe my education just flat out sucks, and this is really simple. But ultimately, my experiences have been minimal and I am totally clueless as to what else to do. I have attached a detailed description as to what I have done and the errors I have encountered. Please a more detailed explanation as to what to do or what I have done wrong would be greatly appreciated. Thanx


Attachments:
File comment: The Details to what I have tried
Tried.txt [7.52 KiB]
Downloaded 168 times
Top
 Offline Profile  
 
 Post subject: Re: Help Building an AI
PostPosted: 30 Mar 2009, 21:36 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
for now, you should compile spring, and not just KAIK. that will make your life easier. for this, just follow the guide to the end.
when this worked, then you can compile only KAIK for a next test.
instead of
Code:
make ...

use:
Code:
make KAIK ...


Top
 Offline Profile  
 
 Post subject: Re: Help Building an AI
PostPosted: 30 Mar 2009, 22:37 

Joined: 10 Feb 2009, 04:04
Okay yes, I figured that out, thanks though. SO...
here I am now.
I have all of the stuff download and installed that http://spring.clan-sy.com/wiki/Building_Spring_on_Windows says to use. In the cmake-gui, for the source code, I have: ../SpringCode/Master/spring
which is everything from the spring/master download, and for the build, I have: ../SpringCode/MySpring

So far so good I think. Next, I press the configure button and again, using the "MinGW Makefiles" and "Use Defaults" selected, I press ok I get the following Errors here http://nopaste.com/p/ahgQxXSdq

Again, it seems as though yargarto tools sh.exe is messing up the path, so I get into the "Environment Variables" to edit the PATH and remove "C:/Program Files/yagarto-tools-20070303/bin/sh.exe", but it's listed only as "C:/Program Files/yagarto-tools-20070303/bin/", so I delete that.
Back in cmake, I delete cache, and try again but still the same error.
But I I press it again I get this now http://nopaste.com/p/aJy7cAjWm, most of which looks good until:
"SDL not found on your system, disabling:
* spring (engine)
* AIs"
and
"CMake Error at rts/build/cmake/FindFreetype.cmake:87 (message):
Could not find FreeType library
Call Stack (most recent call first):
tools/unitsync/CMakeLists.txt:11 (FIND_PACKAGE)"

Okay, so now what?
------------------

NVM, I got all of that stuff down. Apparently I had to manually tell cmake where to find SDL and other various libraries. I am currently in the middle of building the project right now.

Question though!!

When this part is done and I want to only make some modifications to an AI, do I have to go through this process again? Or do I only need to build the AI I am working with?


Top
 Offline Profile  
 
 Post subject: Re: Help Building an AI
PostPosted: 09 Apr 2009, 18:20 

Joined: 10 Feb 2009, 04:04
OK, so the building part didn't go so well in doing
"open a console, cd into your build directory, run 'make' "
It went well until
"Linking CXX shared module C\AIInterface.dll
CMakeFiles\C-AI-Interface.dir\__\Wrappers\CUtils\SimpleLog.c.obj:SimpleLog.c:(.t
ext+0x1bb): undefined reference to `__mingw_vfprintf'
collect2: ld returned 1 exit status
make[2]: *** [AI/Interfaces/C/AIInterface.dll] Error 1
make[1]: *** [AI/Interfaces/CMakeFiles/C-AI-Interface.dir/all] Error 2
make: *** [all] Error 2"
I am not sure what this means. I have not been able to find anything about these issues or these files. I went back to the cmake-gui to investigate. The only potential possibilities that I could find were:
Attachment:
boost.jpg [38.93 KiB]
Downloaded 16 times

shows in cmake the two columns: Name & Value
Name: Boost_REGEX_LIBRARY_DEBUG
Value: Boost_REGEX_LIBRARY_DEBUG-NOTFOUND
&
Name: Boost_THREAD_LIBRARY_DEBUG
Value: Boost_THREAD_LIBRARY_DEBUG-NOTFOUND
Attachment:
glut.jpg [25.35 KiB]
Downloaded 15 times

Name: GLUT_INCLUDE_DIR
Value: GLUT_INCLUDE_DIR-NOTFOUND
&
Name: GLUT_glut_LIBRARY
Value: GLUT_glut_LIBRARY-NOTFOUND

I cannot find these anywhere either. To the best of my ability I think everything else is fine. Anyone know how to fix these issue?


Top
 Offline Profile  
 
 Post subject: Re: Help Building an AI
PostPosted: 09 Apr 2009, 18:37 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
all the things it does not find are in mingwlibs, so make sure you have the latest mingwlibs (http://spring.jobjol.nl/show_file.php?id=1102) and latest spring sources.
if you have these, then it could be something went wrong when configuring cmake, or you have bad cmake cache. delete it (i dont really know what is needed for this, it seems deleting CMakeCache.txtx is not enough, you have to try).
thats all i can think of right now.


Top
 Offline Profile  
 
 Post subject: Re: Help Building an AI
PostPosted: 09 Apr 2009, 20:10 

Joined: 10 Feb 2009, 04:04
Hmm... Well thanx for the quick reply on that one. I do already have the lastest mingwlibs, and at least a very recent spring source. I'll go ahead and try starting over again.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.