Topic: Debugging Widelands on Windows
abtools Topic Opener |
Posted at:
2012-06-06, 23:51 UTC+2.0
Hello, I'm not sure if that's the right place for asking a development related question, but I didn't want to add an issue to Launchpad as I'm not sure if I perhaps just have a configuration mistake on my side. To find the reason for a bug I needed to run Widelands in the Visual Studio 2008 debugger. After fighting with some CMake issue I finally got it to work there, but still have one problem: I constantly (especially when clicking on buttons inside the game) get messages that a debug assertion has failed. They're always looking similar to this:
When I click on "Ignore" and go on with debugging this message pops are 5-10 more times with similar text. After all of them are ignored the game goes on just as normal till the next time which is really bothersome. Does anymore has an idea what the problem might be? Best regards and thanks for any tip Andreas ![]() ![]() |
abtools Topic Opener |
Posted at:
2012-06-07, 16:06 UTC+2.0
Hello again, the problem above occurs with Visual Studio 2008. Therefore I thought I give it a try with Visual Studio 2010 now. But here I don't get it to compile at all. I could fix 6 of the compile errors
myself by adding
on the top of the file "filesystem.cs". I guess this was just missing (http://msdn.microsoft.com/en-us/library/bb531344.aspx: "The <iterator> header is no longer included automatically by many other header files. Instead, include that header explicitly if you require support for the standalone iterators defined in the <interator> header."). But I have no idea what's the reason for the remaining 14 compile errors:
It would be great if someone could give me a tip on how to work around them. Or is Visual Studio 2010 not supported yet by the Widelands code at all? Best regards and thanks in advance Andreas ![]() ![]() |
SirVer |
Posted at:
2012-06-08, 10:12 UTC+2.0
Not supported would be a strong statement. Widelands is coded along the C++ standard and therefore should work with all C++ Compilers out there. However, C++ is notably hard to get standard conform, therefore every compiler chokes at one point or another. AFAIK none of the current developers works with Visual Studio, therefore you might be out of luck... ![]() ![]() |
abtools Topic Opener |
Posted at:
2012-06-08, 10:20 UTC+2.0
Hello Holger, so there is no Widelands developer currently working on Windows? Or is there another IDE that is used on the Windows side for Widelands development? Best regards and thanks for your reply Andreas ![]() ![]() |
Nasenbaer![]() |
Posted at:
2012-06-08, 12:01 UTC+2.0
I am not sure whether "no Widelands developer" would be correct, as far as I know some of the patches we get are from Windows users and it is quite likely that I forget about one of the regular developers who use Windows for development... So those either seem to use the old MSVC++ Version or are working with mingw. Later was the only supported build environment for a long time. the MSVC++ support came only with the cmake build. However as Holger stated, it should be compatible to all major compilers, thus it would be good to have those bugs fixed. So if you are brave enough to tackle them down and submit the patches to bzr, this would surely help a bunch of other people. Cheers Peter ![]() ![]() |
abtools Topic Opener |
Posted at:
2012-06-08, 15:06 UTC+2.0
Hello Peter, I've found the reasons of the compile errors now and fixed them in this branch: https://code.launchpad.net/~ab-tools/widelands/msvs2010-compileerrors If there are any questions about them, please let me know. I'll also add some more hints to the http://wl.widelands.org/wiki/BuildingWidelands/ document regarding building on Windows. Best regards Andreas
Edited:
2012-06-08, 15:06 UTC+2.0
![]() ![]() |
jarih |
Posted at:
2012-06-12, 21:12 UTC+2.0
Hi Andreas, good to see visual studio 2010 working. I fixed the cmake boost flags so that correct boost libs are now found. This requires 2.8.3 boost. I'll check how it runs with vs2008. That assertion does not look good. Cheers, Jari ![]() ![]() |
abtools Topic Opener |
Posted at:
2012-06-12, 21:23 UTC+2.0
Hello Jari, thanks for your reply! Yes, I've fixed the assertion problem by using the static boost libs, too. Just didn't know how to tell that CMake directly. I wanted to remove it from the Wiki again right now, but you were faster. I think we can delete it completely again there as I expect every developer to use the most recent version for building. Best regards Andreas
Edited:
2012-06-12, 21:23 UTC+2.0
![]() ![]() |
se5a |
Posted at:
2013-01-22, 11:32 UTC+1.0
Trying to build on windows, but Cmake is refusing to find the boost librarys. I try to set them manualy, but it just resets right back to Boost_SIGNALS_LIBRARY_DEBUG-NOTFOUND don't know what I'm doing wrong here... ![]() ![]() |
abtools Topic Opener |
Posted at:
2013-01-22, 11:36 UTC+1.0
Hello se5a, did you set the "Boost_INCLUDE_DIR" (you can find it in the advanced view only) as decribed here? http://wl.widelands.org/wiki/BuildingWidelands/ After that it should work fine normally. Best regards Andreas ![]() ![]() |