![]() |
Trouble compiling on Windows - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5) +--- Thread: Trouble compiling on Windows (/showthread.php?tid=1229) |
Trouble compiling on Windows - MirceaKitsune - 02-02-2010 I took another shot at compiling VDrift on Windows using the tutorial here http://wiki.vdrift.net/Compiling#Windows I followed all the steps (except for install locations since I keep my compiling tools in their own folder) but building fails with the message "sh: scons: command not found". I installed all applications listed on that page. mSYS found my MinGW install and linked with it, while scons found my Python install and linked with it too. Does anyone know what could be causing this issue in that case? - NaN - 02-02-2010 I wrote a batch script some time ago. build_vdrift.bat: Code: @echo off And run from vdrift directory. I am going to add it to the Wiki. - MirceaKitsune - 02-02-2010 Thanks... that will make compiling easier than using the mingw console each time. It still doesn't fix my issue however. Now the error is " 'scons' is not recognized as an internal or external command, operable program or batch file." I wonder if it might be scons not being detected by mingw, although it linked correctly with python. Is there anything that hasn't been mentioned in the wiki on how scons must be linked with mingw? Scons seems to install itself in the Python folder, which is next to the Mingw and msys folders. - NaN - 02-02-2010 Please check your PATH Environment Variable: http://www.computerhope.com/issues/ch000549.htm It should contain the python and python scripts path: C:\Python26;C:\Python26\Scripts; - MirceaKitsune - 02-02-2010 Thanks, that fixed this issue. Should add the steps to the wiki, if it doesn't require more registration to edit it. I'm having another issue when attempting to compile now. It keeps failing with this message: Code: Taoki@TAOKI-PC /d/VDrift/VDrift_engine_SVN - NaN - 02-03-2010 Scons can't find the gcc compiler and is using msvc instead. Add the path of your mingw installation to your PATH environment variable: C:\MinGW\bin; - MirceaKitsune - 02-03-2010 NaN Wrote:Scons can't find the gcc compiler and is using msvc instead. Add the path of your mingw installation to your PATH environment variable: C:\MinGW\bin; Done that, but I still get the same issue ![]() - NaN - 02-03-2010 Are you able to run gcc in command prompt? Open a new CMD prompt by choosing START, RUN, cmd, OK. Enter: Code: g++ -v - MirceaKitsune - 02-03-2010 Yeah, that does appear to work. Code: D:\VDrift\VDrift_engine_SVN>g++ -v - NaN - 02-03-2010 Looks like scons is ignoring mingw if there is a msvc compiler installed. :? I committed my project file \tools\win\vdrift.cbp. Get a Code::Blocks nightly: http://forums.codeblocks.org/index.php/board,20.0.html Compile from codeblocks. - MirceaKitsune - 02-03-2010 Thanks! Codeblocks finally compiles it ![]() Code: ...... - NaN - 02-03-2010 Sorry, forgot about this one. Will update vdrift.cbp asap. You can create it manually and put it into include folder. It has to look like this: Code: #ifndef _DEFINITIONS_H - MirceaKitsune - 02-03-2010 Yep... it compiles all the way now. I'll try to see if I can understand and contribute to the code next. Should also add this info to the wiki page, so other people won't go through trouble getting it working. I also have an off-topic question. Since I'm not seeing any other important file being generated by the compiler (except the dlls), does vdrift.exe also contain the gamecode, alongside the engine? - NaN - 02-04-2010 Yes, vdrift.exe contains all the game code. The only dlls you need are the ones in \tools\win\dll. So if you want to test your fresh compiled exe, simply put it in the game folder. |