compile fail- windows/environment variables problem

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
hacked
Space Krill
Posts: 3
Joined: Tue Dec 08, 2009 9:40 am

compile fail- windows/environment variables problem

#1 Post by hacked »

hi, i was trying to compile everything for the first time
installed svn, python26, scons
and of course i dlled the orion sdk

i had pretty much all the problems this guy had here
viewtopic.php?f=24&t=2520
the environment variables problem i couldnt seem to get rid of, so i hardcoded the strings

anyways, i compiled all the way through the configure, install, configure, install routine
and theres no executable
both config.log's have missing cl and pkg-config

FreeOrion\config.log

Code: Select all

file Z:\Programs\FreeOrion_SDK\FreeOrion\SConstruct,line 191:
	Configure(confdir = .sconf_temp)
scons: Configure: Checking for pkg-config... 
pkg-config --atleast-pkgconfig-version 0.15.0
scons: Configure: no

scons: Configure: Checking for C++ header file boost/shared_ptr.hpp... 
.sconf_temp\conftest_1.cpp <-
  |
  |#include "boost/shared_ptr.hpp"
  |
  |
cl /Fo.sconf_temp\conftest_1.obj /c .sconf_temp\conftest_1.cpp /nologo /TP /nologo /IC:\Python25\include /IZ:\Programs\FreeOrion_SDK\Boost\include\boost-1_36
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: Configure: no

scons: Configure: Boost configuration... 
scons: Configure: (cached) no
FreeOrion\GG\config.log

Code: Select all

file Z:\Programs\FreeOrion_SDK\FreeOrion\GG\SConstruct,line 296:
	Configure(confdir = .sconf_temp)
scons: Configure: Checking for pkg-config... 
pkg-config --atleast-pkgconfig-version 0.15.0
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
scons: Configure: no

scons: Configure: Checking for C++ header file boost/shared_ptr.hpp... 
.sconf_temp\conftest_1.cpp <-
  |
  |#include "boost/shared_ptr.hpp"
  |
  |
cl /Fo.sconf_temp\conftest_1.obj /c .sconf_temp\conftest_1.cpp /nologo /TP /nologo /IZ:\Programs\FreeOrion_SDK\Boost\include\boost-1_36
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: Configure: no

scons: Configure: Boost configuration... 
scons: Configure: (cached) no
i searched with google for "pkg-config" and found the binary along with a huge number of files, but if thats what i need, i dont know where it goes
i searched for "cl" but that didnt get me anywhere


any pointers?

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

Re: compile fail- windows/environment variables problem

#2 Post by Geoff the Medio »

What version of Visual Studio are you trying to build with?

Regardless, it's probably a lot easier to build within the Visual Studio IDE. I suggest trying that.

hacked
Space Krill
Posts: 3
Joined: Tue Dec 08, 2009 9:40 am

Re: compile fail- windows/environment variables problem

#3 Post by hacked »

before i tried compiling with scons
after i wrote the above post, i went into the msvsc and compiled it from there
im using vs2008 professional
it took about half an hour to compile the first time lol

i also got a runtime error

Code: Select all

main() caught exception(std::runtime_error): Failed to find an Ogre GL render sy
stem.
do i need to install the ogre3d sdk or something?

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

Re: compile fail- windows/environment variables problem

#4 Post by Geoff the Medio »

hacked wrote:

Code: Select all

main() caught exception(std::runtime_error): Failed to find an Ogre GL render system.
do i need to install the ogre3d sdk or something?
The OGRE SDK is not needed separately from what's included in the FreeOrion SDK.

Are you running from within the IDE? If so, make sure the working directory is the same directory as where the executables are located. Alternatively, run "freeorion" from the command prompt (cmd.exe) in the directory where the executables are located.

If that still crashes, please post the .log files in the directory discussed here.

hacked
Space Krill
Posts: 3
Joined: Tue Dec 08, 2009 9:40 am

Re: compile fail- windows/environment variables problem

#5 Post by hacked »

ahh thanks,
the exe was created in the correct folder
but i was trying to run it in the ide
much easier than using scons imo

Post Reply