Steps i have attempted to get the svn to compile on Kubuntu linux.
sudo apt-get install subversion build-essential libsdl1.2-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libpng12-dev tofrodos
(used sudo -i to become root so all the following commands where ran as root)
cd /usr/src/
svn checkout
https://supermariowar.googlecode.com/svn/trunk/cd trunk/
chmod +x configure
(at this point i tried to run ./configure got a error. google searched it and found it to be a problem with the way linux sees
the return char so i ran)
fromdos configure
./configure
(Attempted to run make here but got a error (_src/FileList.cpp:57: error: ‘transform’ is not a member of ‘std’)
A little bit of google told me that this is due to a missing include so i)
nano _src/FileList.h
(below the #include <srting> line added #include <algorithm>)
make
(got another error _src/map.cpp:631: error: invalid conversion from ‘const char*’ to ‘char*’)
(after some more Google found that i needed to add const to this line)
nano _src/map.cpp
(added const to beginning of line 631)
make
(yet another error _src/path.cpp:99: error: ‘strcpy’ was not declared in this scope
_src/path.cpp:107: error: ‘strcat’ was not declared in this scope)
(more google found this to be another missing include)
nano _src/path.cpp
(added #include <cstring>)
make
(ok one step closer i think but yet another error
_src/ai.cpp:348: error: no match for ‘operator=’ in ‘itr = ((CPlayerAI*)this)->CPlayerAI::attentionObjects.std::map<_Key, _Tp, _Compare, _Alloc>::erase [with _Key = int, _Tp = AttentionObject*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, AttentionObject*> >](itr)’
/usr/include/c++/4.4/bits/stl_tree.h:154: note: candidates are: std::_Rb_tree_iterator<std::pair<const int, AttentionObject*> >& std::_Rb_tree_iterator<std::pair<const int, AttentionObject*> >::operator=(const std::_Rb_tree_iterator<std::pair<const int, AttentionObject*> >&)
so i look at the code at this line and i am not understanding this error.
line 338: //Expire attention objects
line 339: std::map<int, AttentionObject*>::iterator itr = attentionObjects.begin(), lim = attentionObjects.end();
line 340: while(itr != lim)
line 341: {
line 342: if(itr->second->iTimer > 0)
line 343: {
line 344: if(--(itr->second->iTimer) == 0)
line 345: {
line 346: delete itr->second;
line 347:
line 348: itr = attentionObjects.erase(itr);
line 349: lim = attentionObjects.end();
line 350: }
line 351: }
line 352:root#
line 353: ++itr;
line 354: }
This looks to be a just a simple loop calling the function attentionObjects.erase and passing the value of the iterations of the loop but it has been a while since i have programmed in C so i am not sure what is going on with this section or why i am getting this error when i try to compile.
Any help with this would be appreciated
Thanks.