Can't Compile on Windows Vista

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
oldwindways
Space Krill
Posts: 2
Joined: Fri Apr 18, 2008 4:52 pm
Location: Medford, MA

Can't Compile on Windows Vista

#1 Post by oldwindways »

I seem to have run into the same problem, trying to compile on Windows Vista.

Code: Select all

C:\FreeOrion_SDK\FreeOrion\GG>scons configure
scons: Reading SConscript files ...
Checking for pkg-config... no
Configuring for WIN32 system...
Checking for C++ header file boost/shared_ptr.hpp... no
Boost configuration... (cached) no
C:\FreeOrion_SDK\FreeOrion\GG>scons install
scons: Reading SConscript files ...

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "C:\FreeOrion_SDK\FreeOrion\GG\SConstruct", line 188, in <module>
Checking for pkg-config... no
Configuring for WIN32 system...
Checking for C++ header file boost/shared_ptr.hpp... no
Boost configuration... (cached) no
C:\FreeOrion_SDK\FreeOrion\GG>
I successfully performed an SVN Update immediately before this using TortiseSVN 1.4.8
Any ideas how to get past this? (I had a similar problem when I tried this a few days ago, but though it might have had something to do with file permissions, so now I am using an Admin account and loaded the SDK right to C: instead of burying it in user directories).

P.S. I took reasonably detailed notes on the steps I have taken so far (there were a few minor tweaks needed to get this far in Vista), so if I do get this working properly, I would be glad to share my procedure with anyone else who might want to compile in Vista

nazgor
Space Krill
Posts: 2
Joined: Thu Apr 24, 2008 12:37 am

Re: The compile, it does nothing

#2 Post by nazgor »

Yep I'd like to know. :) I also a Vista setup and have the same problem trying to compile GG. What I did:

- Download and extract the latest FreeOrion_SDK.
- Installed Python 2.5 and SCons 0.98.2.
- Added C:\Python25 and C:\Python25\Scripts (which has scons) to my path.
- Performed an svn update on FreeOrion and GG.

Then I executed scons configure in GG directory and got the same output as you.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: The compile, it does nothing

#3 Post by Geoff the Medio »

For people using Vista, what compiler are you using?

nazgor
Space Krill
Posts: 2
Joined: Thu Apr 24, 2008 12:37 am

Re: The compile, it does nothing

#4 Post by nazgor »

Visual C++ 2008 Express Edition here.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: The compile, it does nothing

#5 Post by Geoff the Medio »

It might help to post your config.log file.

Also, are you running scons from in a visual studio command prompt? With visual studio 2005, there's a special shortcut that runs vcvarsall.bat which sets up all the visual studio environment variables. If these are missing, scons might not be able to find the compiler.

User avatar
oldwindways
Space Krill
Posts: 2
Joined: Fri Apr 18, 2008 4:52 pm
Location: Medford, MA

Re: The compile, it does nothing

#6 Post by oldwindways »

I went back and did a full install of Microsoft Visual C++ 2005 Express Edition, along with the SP1 update and the SP1 Vista update (in that order). Then I ran "scons configure" and "scons install" from the Visual Studio 2005 Command Prompt. This was the result:

Code: Select all

Setting environment for using Microsoft Visual Studio 2005 x86 tools.

C:\FreeOrion_SDK\FreeOrion\GG>scons configure
scons: Reading SConscript files ...
Checking for pkg-config... (cached) no
Configuring for WIN32 system...
Checking for C++ header file boost/shared_ptr.hpp... (cached) yes
Checking Boost version >= 1.34... (cached) yes
Boost configuration... (cached) ok
Checking freetype2 version >= 2.1.2... (cached) yes
Checking for C header file ft2build.h... (cached) yes
Checking DevIL version >= 1.6.1... (cached) yes
Checking for C header file IL/il.h... (cached) yes
Checking for C header file IL/ilu.h... (cached) yes
Configuration successful... (cached) yes
Copy("GG\ltdl.h", "libltdl\ltdl.h")
Copy("GG\ltdl_config.h", "libltdl\config.h")
Configuring GiGiSDL driver...

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method
instead.
File "C:\FreeOrion_SDK\FreeOrion\GG\SConstruct", line 470, in <module>
Checking for sdl-config... (cached) no
Checking for C header file SDL/SDL.h... (cached) yes
Checking SDL version >= 1.2.7... (cached) yes
SDL configuration... (cached) yes
Configuration successful... (cached) yes
Configuring GiGiOgre driver...
Checking for pkg-config... (cached) no
Checking Ogre version >= 1.4.5... (cached) no
Warning: Ogre not configured.  The GiGiOgre library will not be built!
Configuration successful... (cached) no
C:\FreeOrion_SDK\FreeOrion\GG>scons install
scons: Reading SConscript files ...

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method
instead.
File "C:\FreeOrion_SDK\FreeOrion\GG\SConstruct", line 188, in <module>
Warning: You have requested to build Ogre support, but Ogre was not found, and so has been disabled.  To fix this, run scons configure.
scons: done reading SConscript files.
scons: Building targets ...
Install file: "GG\AlignmentFlags.h" as "C:\FreeOrion_SDK\include\GG\AlignmentFlags.h"
Install file: "GG\Base.h" as "C:\FreeOrion_SDK\include\GG\Base.h"
Install file: "GG\BrowseInfoWnd.h" as "C:\FreeOrion_SDK\include\GG\BrowseInfoWnd.h"
Install file: "GG\Button.h" as "C:\FreeOrion_SDK\include\GG\Button.h"
Install file: "GG\Clr.h" as "C:\FreeOrion_SDK\include\GG\Clr.h"
Install file: "GG\Control.h" as "C:\FreeOrion_SDK\include\GG\Control.h"
Install file: "GG\Cursor.h" as "C:\FreeOrion_SDK\include\GG\Cursor.h"
Install file: "GG\DrawUtil.h" as "C:\FreeOrion_SDK\include\GG\DrawUtil.h"
Install file: "GG\DropDownList.h" as "C:\FreeOrion_SDK\include\GG\DropDownList.h"
Install file: "GG\DynamicGraphic.h" as "C:\FreeOrion_SDK\include\GG\DynamicGraphic.h"
Install file: "GG\Edit.h" as "C:\FreeOrion_SDK\include\GG\Edit.h"
Install file: "GG\Enum.h" as "C:\FreeOrion_SDK\include\GG\Enum.h"
Install file: "GG\EventPump.h" as "C:\FreeOrion_SDK\include\GG\EventPump.h"
Install file: "GG\Exception.h" as "C:\FreeOrion_SDK\include\GG\Exception.h"
Install file: "GG\Flags.h" as "C:\FreeOrion_SDK\include\GG\Flags.h"
Install file: "GG\Font.h" as "C:\FreeOrion_SDK\include\GG\Font.h"
Install file: "GG\gen_signals.py" as "C:\FreeOrion_SDK\include\GG\gen_signals.py"
Install file: "GG\glext.h" as "C:\FreeOrion_SDK\include\GG\glext.h"
Install file: "GG\GUI.h" as "C:\FreeOrion_SDK\include\GG\GUI.h"
Install file: "GG\Layout.h" as "C:\FreeOrion_SDK\include\GG\Layout.h"
Install file: "GG\ListBox.h" as "C:\FreeOrion_SDK\include\GG\ListBox.h"
Install file: "GG\ltdl.h" as "C:\FreeOrion_SDK\include\GG\ltdl.h"
Install file: "GG\ltdl_config.h" as "C:\FreeOrion_SDK\include\GG\ltdl_config.h"
Install file: "GG\Menu.h" as "C:\FreeOrion_SDK\include\GG\Menu.h"
Install file: "GG\MultiEdit.h" as "C:\FreeOrion_SDK\include\GG\MultiEdit.h"
Install file: "GG\PluginInterface.h" as "C:\FreeOrion_SDK\include\GG\PluginInterface.h"
Install file: "GG\PtRect.h" as "C:\FreeOrion_SDK\include\GG\PtRect.h"
Install file: "GG\Scroll.h" as "C:\FreeOrion_SDK\include\GG\Scroll.h"
Install file: "GG\Signal0.h" as "C:\FreeOrion_SDK\include\GG\Signal0.h"
Install file: "GG\Signal1.h" as "C:\FreeOrion_SDK\include\GG\Signal1.h"
Install file: "GG\Signal2.h" as "C:\FreeOrion_SDK\include\GG\Signal2.h"
Install file: "GG\Signal3.h" as "C:\FreeOrion_SDK\include\GG\Signal3.h"
Install file: "GG\Signal4.h" as "C:\FreeOrion_SDK\include\GG\Signal4.h"
Install file: "GG\Signal5.h" as "C:\FreeOrion_SDK\include\GG\Signal5.h"
Install file: "GG\Signal6.h" as "C:\FreeOrion_SDK\include\GG\Signal6.h"
Install file: "GG\Signal7.h" as "C:\FreeOrion_SDK\include\GG\Signal7.h"
Install file: "GG\Signal8.h" as "C:\FreeOrion_SDK\include\GG\Signal8.h"
Install file: "GG\SignalsAndSlots.h" as "C:\FreeOrion_SDK\include\GG\SignalsAndSlots.h"
Install file: "GG\SignalTemplate.h" as "C:\FreeOrion_SDK\include\GG\SignalTemplate.h"
Install file: "GG\Slider.h" as "C:\FreeOrion_SDK\include\GG\Slider.h"
Install file: "GG\Spin.h" as "C:\FreeOrion_SDK\include\GG\Spin.h"
Install file: "GG\StaticGraphic.h" as "C:\FreeOrion_SDK\include\GG\StaticGraphic.h"
Install file: "GG\StyleFactory.h" as "C:\FreeOrion_SDK\include\GG\StyleFactory.h"
Install file: "GG\TabWnd.h" as "C:\FreeOrion_SDK\include\GG\TabWnd.h"
Install file: "GG\TextControl.h" as "C:\FreeOrion_SDK\include\GG\TextControl.h"
Install file: "GG\Texture.h" as "C:\FreeOrion_SDK\include\GG\Texture.h"
Install file: "GG\Timer.h" as "C:\FreeOrion_SDK\include\GG\Timer.h"
Install file: "GG\Wnd.h" as "C:\FreeOrion_SDK\include\GG\Wnd.h"
Install file: "GG\WndEditor.h" as "C:\FreeOrion_SDK\include\GG\WndEditor.h"
Install file: "GG\WndEvent.h" as "C:\FreeOrion_SDK\include\GG\WndEvent.h"
Install file: "GG\ZList.h" as "C:\FreeOrion_SDK\include\GG\ZList.h"
Install file: "GG\dialogs\ColorDlg.h" as "C:\FreeOrion_SDK\include\GG\dialogs\ColorDlg.h"
Install file: "GG\dialogs\FileDlg.h" as "C:\FreeOrion_SDK\include\GG\dialogs\FileDlg.h"
Install file: "GG\dialogs\ThreeButtonDlg.h" as "C:\FreeOrion_SDK\include\GG\dialogs\ThreeButtonDlg.h"
Install file: "GG\Ogre\OgreGUI.h" as "C:\FreeOrion_SDK\include\GG\Ogre\OgreGUI.h"
Install file: "GG\SDL\SDLGUI.h" as "C:\FreeOrion_SDK\include\GG\SDL\SDLGUI.h"
cl /nologo /MD /EHsc /W3 /Zc:forScope /GR /Gd /Zi /wd4099 /wd4251 /wd4800 /wd4267 /wd4275 /wd4244 /wd4101 /wd4258 /wd4351 /wd4996 /TP /DNDEBUG /DWIN32 /D_WINDOWS /D_USRDLL /D_WINDLL /DGIGI_EXPORTS /IC:\FreeOrion_SDK\Boost\include\boost-1_34 /IC:\FreeOrion_SDK\include /IC:\FreeOrion_SDK\include /I. /Ilibltdl /c src\AlignmentFlags.cpp /Fosrc\AlignmentFlags.objAlignmentFlags.cpp
C:\FreeOrion_SDK\include\GG/Base.h(34) : fatal error C1083: Cannot open include
file: 'windows.h': No such file or directory
scons: *** [src\AlignmentFlags.obj] Error 2
scons: building terminated because of errors.
C:\FreeOrion_SDK\FreeOrion\GG>
It looks like Ogre is giving it trouble. Is this something easily remedied?

Also, on a side note, do most people programming in Windows use MSVC, or is there a different preferred development environment, and MSVC is just used to compile?

Thanks.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Can't Compile on Windows Vista

#7 Post by Geoff the Medio »

I believe MSVC 2005 Express Edition has some different settings... (registry? environment variables? not sure exactly) that prevent it from working properly with SCons. 2008 Express Edition might work with SCons, but I haven't heard of anyone succeeding or definitively failing with it. I suggest trying the IDE in 2005 EE, or SCons or the IDE in 2008 EE.

When programming in Windows, you can use whatever environment you want to code and whatever you can get working to compile. I use the MSVC 2005 IDE for coding and compiling FreeOrion itself, and use SCons with the 2005 compiler to build GG. SCons is used with MSVC 2005 to build the GG and FreeOrion for the windows relases on sourceforge.

For the Ogre issues when running SCons configure, it might help to point SCons to the ogre include and library directories. Run "scons -h" from within the GG directory for a list of command-line parameters.

Post Reply