1
Newbie Coding / Compile and debug with Eclipse in Windows
« on: July 28, 2012, 11:51:44 pm »
Im not only new to UFOAI, but also to C, so lacking even the most basic sense. What i would like to do is to run the game from Eclipse on my Windows 7 machine and then play the full campaign - I want to play the newest version, but it crashes a lot, and I thought i could maybe work out why if i ran the game in debug..
So, what i have done thus far:
1) Installed TortoiseGit from http://tortoisegit.googlecode.com/files/TortoiseGit-1.7.11.3-32bit.msi
2) With depth specified as 1, cloned git://ufoai.git.sourceforge.net/gitroot/ufoai/ufoai
3) Installed MinGW with the options of C compiler and MSYS from https://sourceforge.net/projects/mingw/files/latest/download?source=files
4) Edited PATH Environment Variable C:\MinGW\msys\1.0\bin;C:\MinGW\bin;
5) Got Eclipse CDT (Juno) from http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/R/eclipse-cpp-juno-win32.zip
Next steps?:
Now i dont know how to compile C code at all, so i have no idea how i should import the ufoai source code into Eclipse workspace as a project that could then be compiled by Eclipse and run in debug mode?
So, what i have done thus far:
1) Installed TortoiseGit from http://tortoisegit.googlecode.com/files/TortoiseGit-1.7.11.3-32bit.msi
2) With depth specified as 1, cloned git://ufoai.git.sourceforge.net/gitroot/ufoai/ufoai
3) Installed MinGW with the options of C compiler and MSYS from https://sourceforge.net/projects/mingw/files/latest/download?source=files
4) Edited PATH Environment Variable C:\MinGW\msys\1.0\bin;C:\MinGW\bin;
5) Got Eclipse CDT (Juno) from http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/R/eclipse-cpp-juno-win32.zip
Next steps?:
Now i dont know how to compile C code at all, so i have no idea how i should import the ufoai source code into Eclipse workspace as a project that could then be compiled by Eclipse and run in debug mode?