project-navigation
Personal tools

Author Topic: Trouble compiling - preprocessing failed  (Read 7320 times)

Offline micmad830

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Trouble compiling - preprocessing failed
« on: June 12, 2010, 01:32:21 pm »
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!

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Trouble compiling - preprocessing failed
« Reply #1 on: June 12, 2010, 02:23:35 pm »
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?

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: Trouble compiling - preprocessing failed
« Reply #2 on: June 12, 2010, 07:13:34 pm »
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


Offline micmad830

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Trouble compiling - preprocessing failed
« Reply #3 on: June 13, 2010, 12:15:31 am »
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....

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Trouble compiling - preprocessing failed
« Reply #4 on: June 13, 2010, 09:37:02 am »
Now for the tough stuff of actually coding and adding stuff like maps and other assets....

great to hear that - we we more mappers

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: Trouble compiling - preprocessing failed
« Reply #5 on: June 24, 2010, 12:38:33 pm »
Quote
I dont understand why people use spaces in files or folders
Space is allowed. Then tools must support it. I dont see the problem.

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: Trouble compiling - preprocessing failed
« Reply #6 on: June 24, 2010, 01:22:11 pm »
Why not? If system allows paths with spaces, or national symbols, why should I give up from this? Or «All_programmers_do_not_use_spaces»? Or may be «ALLPRO~1»?