It is not, I think it must be some issue with gcc.
With MSVC it takes 10-12 secs to compile CGameState.cpp in debug mode or 7 secs in release mode. Rebuild solution in debug mode takes one minute. I have Intel i7 860 CPU which surely helps a lot but even on slow CPUs single file absolutely shouldn’t take 3 minutes!
Hello everybody, I’m new on this forums. Yesterday I tried compiling the VCMI source code like it’s written here, but it didn’t compile.
The first problem I enountered was that a file named CMapInfo.h was missing (CGameState.cpp was trying to include it).
I was using windows XP SP3 and Visual C++ 2010 Express edition, I included the boost libraries afaik, and downloaded the sources with tortoisesvn (else I couldn’t have compiled:) )
I hope someone can help.
ps.: I tried to register yesterday, but the CAPTCHA is not showing up.
As to missing files, solutions may be outdated. Just add/ remove files to projects, following recent revision and compilation errors. With MSV it should be relatively easy.
I can’t see CMapInfo in repository anymore, possibly it was removed / renamed.
Thanks for the link, but I managed to find the post a bit after my last message.
So, after several hours of trying, I managed to compile and link VCMI_lib and genius, but not the client and server. I had to change back to revision 1817, because in revisions 1818 and 1819 CMapInfo.h is included in CGameState.cpp, which I still don’t have.
There was a problem with my boost install, but managed to solve it (the multithread debugger version was requied of the libraries).
I’ll try to compile revision 1817, then change to newer versions.
Thanks, both of you it’s almost working now! I managed to compile all 4 projects (revision 1822), and link each except for the client. As far as I can tell, it misses the files of CMapHandler.
I managed to start the server, so I think it’s the only thing left before I can ask: “How can I help?”
I managed to find it, it’s just called maphandler.cpp, the client is built succesfully.
The client is working, I managed to run 2 instances and start up a MP lobby
Little question. As I’m currently peeking at code in various locations and I found many commented out lines, are patches cleaning up those and improving readability accepted? I think it would help other people that will join project. Well, I can improve documentation, too.
Most commented-out parts indicate that some part of code was rewritted / improved. It’s not necessary to remove them as long as they may be helpful if new code is wrong. These are usually removed by devs after few months, if they are sure this code won’t be needed anymore.
I’m not sure if code clearing will help anyone join the project (it looks clear enough now IMO), but documentation certainly can. We have entire Wiki to be filled with technical details. Also, player’s manual, entires and especially general info about the project are areas for improvement.
Comment just above or just below is much easier to notice and to handle. SVN is really poor at browsing the history of changes of a function. If I had super-fast blame tool integrated with IDE with a sider for selecting last revision to take into account, then version control would be better than those comments indeed.
No, I think they are better than centralized systems in principle. I’d really like to have a well-implemented distributed version system. Let me just write my recent experience with bazaar. I’ve cloned VCMI repository (without any problems) and ran blame tool on one of files (to be precise, not the command line tool but a graphical interface for it). It worked almost perfectly, was very fast and did everything that I wanted (including selection of last revision to be shown). There was just one small glitch: after selecting last revision some revision numbers were truncated to last three digits.
I don’t write it as a complain nor bug report. I just want to point that DVCSes seem to be quite stable now but they still have some minor problems. Bazaar seems to be the best for my taste (non-hash revision numbering, good tools for Windows) and I can use it even without any changes in our main repository. It seems to be worth a try (I just need more time for VCMI).
VCS in command line? Most Windows users are too afraid to use command line for tasks it suits better but some Linux users seem to go too far in the opposite direction.
I think that comments are not worth removing. What bad could happen if it stays there? And they may be helpful for those who don’t browse the history of changes all the time.