Development > Newbie Coding
Trouble compiling - preprocessing failed
micmad830:
Hello folks
First of all I would like to congratulate everyone involved in running this site and those who worked on the game, you guys did very well.
I downloaded the 2008 version and was hooked, until I encountered a nasty bug that wiped all the scientists from main base after a research was completed during June.
So I decided to find out how to debug this myself rather than rely on a fix. I know I can download the newer version, but I want to make other changes and tinker with stuff.
I am mainly a Visual Studio user, but I have experience in Unix builds.
I have followed all the directions in the pages "Getting the Source", "Compiling the Source->Windows".
Running Code::Blocks and opening the workspace, I did a complete rebuild after making changes in the "settings->compiler and debugger" menu. I thoroughly checked that I complied to web page instructions.
I have downloaded source using Tortoise SVN into "D:\UFO-AI". I have installed the prepackaged zip into "D:\UFOAI BUILD". I have made all path changes to the environment variable PATH.
I am running Windows XP SP2.
I ended up getting these errors:
....
Target is up to date.
Running target pre-build steps
..\..\contrib\scripts\codeblocks_check.bat "D:\UFOAI Build\codeblocks\MinGW\"
D:\UFOAI Build\codeblocks\MinGW\
D:\UFOAIB~1\CODEBL~1\MinGW\
"unable to find D:\UFOAIB~1\CODEBL~1\MinGW\bin\WINenvVER"
-------------- Build: windows in ufo_ded ---------------
Compiling: ..\..\src\ports\windows\ufo.rc
gcc: Build\codeblocks\MinGW\include: No such file or directory
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings
Can anyone please tell me why I am getting these errors? What have I missed? I could not find "WinenvVer" anywhere.
Thank you heaps!
Mattn:
that is only a warning - but "Build\codeblocks\MinGW\include: No such file or directory" <--- this is the error - are you sure you really set up the include and lib paths correctly?
Muton:
I dont understand why people use spaces in files or folders ??? ( no offense )
D:\UFOAI BUILD
that is your problem
btw: Better use this mingw build
UfoAI_win32_build_environment_0.2.0.exe
micmad830:
No offense taken.
Why do I sloppily put spaces in my directory names? The same reason I sometimes don't give a toss about capitalisation - Windows made me do it! Windows is so relaxed in this area that I have become sloppy.
During my Unix days I know you will be crucified if you typed Ufo when you meant UFO, and shot if you created a directory like c:\Ufo Build 4503 June 12, 2010.
Renamed directory d:\UFO_Build. Changed all the search directories as well.
It worked!!!
It was all my fault. Thanks guys.
Now for the tough stuff of actually coding and adding stuff like maps and other assets....
Mattn:
--- Quote from: micmad830 on June 13, 2010, 12:15:31 am ---Now for the tough stuff of actually coding and adding stuff like maps and other assets....
--- End quote ---
great to hear that - we we more mappers
Navigation
[0] Message Index
[#] Next page
Go to full version