UPDATE: If you are planning to build VCMI under Linux based on the information in this thread, check the README in the link below first. Some of the instructions in the original post here are outdated.
Now you will wait for some time ;). After compiling is finished we have 2 files: vcmiclient and vcmiserver. Library is set to static so wee don’t need libvcmi.
II. AI
I just don’t know, how to make nice makefile.am for AI so you have to build it manualy Maybe someone else?
skoruppa, thank you very much for the description!
I prefer collecting all instructions in one place (forum) rather then shattering them among several apps. Especially when we have only one instruction.
i totally agree - this is why i proposed a wiki as a central place, as it is easier to handle such instructions collaboratively with inputs by many users.
with a forum approach everybody has to either post their experiences in a lengthy forum thread on page XY or has to tell skoruppa about them so that he edits his post with new info.
it is harder to get specific information, there are a lot of topics about similar issues and one has to crawl through lot of pages in the worst case.
i find it much easier to have a set of wiki pages that contain up to date information in one ordered and clearly structured way.
you mention only having one instruction but there will be many instructions when people start building on different operating systems with different building environments. only having a forum lets every user who has a problem open a thread about a possibly already solved issue and other users will have to point them at some other thread at page Z where they find part of their solution but not all. then they will append posts to this thread and things get even messier…
i think a wiki can solve this issues - what do you think?
thanks for the info - i was totally wondering why the commits at assembla stopped at 728
Can someone give me a little bit more detailed guide on how to run VCMI on linux. I’ve compiled it successfully and copied vcmiserver and vcmiclient to heroes folder, where I had a windows version installed already. I had some smaller problems with folder names (linux case sensitivity), but when I fixed it, it ran correctly. However, it won’t start any map, so I can go as far as all the pregame menus. When I start it, it exits with a segfault.
Silly me, forgot to change settings.txt. Now it works, thanks for help. Although when I try to exit to desktop from within a loaded game, the game exits in a segfault, but it’s not that big a problem.
One more thing: when loading, the game says: ‘missing file: config/heroes_sec_skills.txt’, but I checked the case and wether it exists and it shouldn’t happen.
g++: unrecognized option '-share’
In file included from DLLMain.cpp:6:
CGeniusAI.h:146: error: extra qualification ‘GeniusAI::CBattleLogic::’ on member ‘PrintBattleAction’
In file included from CGeniusAI.cpp:1:
CGeniusAI.h:146: error: extra qualification ‘GeniusAI::CBattleLogic::’ on member ‘PrintBattleAction’
There are several people with admin/moderator privileges who can update instruction when new information or suggestions show up. Keeping the post up to date isn’t a problem.
But we have only one topic on that issue which counts 12 posts by now. I’m going to write a topic with building instructions for MSVC and link to both build threads on the main page.
It should be enough to easily find them. Forum is also much more convenient if one needs further help.
I see your point but I think it’s still too early for moving build instructions to the new web application, I fear it would cause more trouble than it’s worth. I’d rather wait until we really need it (and I have more time so I could try integrate that wiki with forum at least to avoid multiple account registration).
[Sorry for replying so late, I was sick.]
Check also for config/obstacles.txt, loading it has accidentally same error message if failed to open.
Well, it’s always good to know more
But it’ll be best if you provide backtrace using gdb.
Not only slow, but also very buggy. I’ve managed to build it using code::blocks, and optimize it and minimize it to about 2MB (vcmi_client), but I still can’t manage the code (as I am a C++ beginner and it’s all a bit confusing to me). It segfaults all too often and it prints some nonsences (I tend to believe it is linux case-sensitivity related, although it doesn’t explain the slowness). It would be nice to have the linux version as stable as win one, although I wouldn’t set it to be a priority just yet (perhaps when it’s entirely playable).
The error says nothing, I guess there was supposed to be sth mentioned between ‘against’ and ‘!’. Maybe it’s sth with x86_64, did anybody manage to build it in 64bit linux system?
It could be the problem. I haven’t heard that somebody built 64 bit version of VCMI, so probabyl all builds are 32 bit. Are you sure you have 64 bit versions of all libraries VCMI uses?