I’ve been using C/C++ for over a year now and would like to have a go at toying with the BGE source, with the view of contributing later down the line. However, I’ve been trying to get Blender to build all day but I’ve had nothing but issues. I’ve been following the instructions on the wiki and have tried several times just to make sure that I’ve got everything right, but each time the results are the same.
I’m using cmake to create the build files (using the default setup as per the building blender guide), which works fine, but I can’t get a working copy of blender to compile. I’m running windows 7 65 bit, and can’t afford a full version of MSVC so all the versions I’ve tried are express.
I’ve used MSVC and 2010, 2011 beta and even minGW (I realise there’s a warning that it doesn’t work, but at this point I’m willing to try everything) but none of them actually produce blender.exe. Instead, the only output I get blender.pdb, makesdna.exe, makesdna.pdb, makesrna.pdb and makesrna.exe. MinGW complains about loads of unused variables so it’s impossible to find any helpful error messages, MSVC 2011 beta keeps saying that it cannot find loads of files with rna in the title. MSVC 2010 gives errors about a previously defined macro all relating to the file mscvprtd.lib.
I did manage to get Blender to build with MSVC 2008. However, the BGE keeps crashing, especially on exit. Furthermore, recast and detour don’t work, which is what I was planning on editing (I’ve not actually made any changes to the source code yet). Whenever I try and create a navmesh I just get errors in the console saying: “Error! Can’t find recast custom data” and “Can’t get vertices and indices from mesh” Does anyone have any ideas why the BGE might not be working and why recast and detour aren’t? According to the build log all the source files for recast and detour have compiled without issue.
I realise that I don’t have much information to give on what’s wrong, I really don’t know what to say, I’ve googled everything I can think of and there’s nothing that jumps out at me as a possible cause. If anyone’s got any requests for more info or error logs please let me know. Any help on resolving this, or guidance on beginning to troubleshoot would be greatly appreciated as I’m really going crazy-stressed over this!
Thanks in advance.
(on a somewhat unrelated note, as versions of MSVC get more recent the program takes longer to load and Blender longer to build!)