You either look for it in env["PLATFORM"] or use python's sys.platform. On Mac env["PLATFORM"] will be 'darwin' AFAIK.tzlaine wrote:I really don't know of another way to get SCons to tell me the platform, so if you find a better way, let me know.
Search found 219 matches
- Sat May 23, 2009 3:35 pm
- Forum: Programming
- Topic: MacOsX Version issues
- Replies: 189
- Views: 45157
Re: MacOsX Version issues
- Sun Mar 22, 2009 1:17 pm
- Forum: Compile
- Topic: SCons doesn't like op.environ on windows system.
- Replies: 13
- Views: 5072
Re: SCons doesn't like op.environ on windows system.
Interesting.. There's no cl in PATH while in your previous config.log cl was found..MathGeek wrote:Code: Select all
cl /Fo.sconf_temp\conftest_1.obj /c .sconf_temp\conftest_1.cpp /TP /nologo /ID:\FreeOrion_SDK\Boost\include\boost-1_36 'cl' is not recognized as an internal or external command, operable program or batch file.
- Tue Mar 17, 2009 10:49 am
- Forum: Compile
- Topic: SCons doesn't like op.environ on windows system.
- Replies: 13
- Views: 5072
Re: SCons doesn't like op.environ on windows system.
scons : Reading Sconscript files ... KeyError: 'LIB': File "D:\FreeOrion_SDK\FreeOrion\GG\SConstruct", line 11: 'LIB' : os.environ['LIB'], File "D:\Python25\lib\os.py", line 433: return self.data[key.upper()] Try replacing os.environ['LIB'] with os.environ.get('LIB') on line 11 ...
- Fri Feb 13, 2009 12:38 am
- Forum: Compile
- Topic: ogre problem when building
- Replies: 48
- Views: 13034
Re: ogre problem when building
I was getting a segfault at startup which was fixed by upgrading to boost 1.38 You probably need to copy the Ogre .so's listed in ogre_plugins.cfg from /usr/local/lib/OGRE to your working dir. You probably need to read Ogre plugin dir with "pkg-config OGRE --variable=plugindir" when genera...
- Thu Feb 12, 2009 3:12 pm
- Forum: Compile
- Topic: ogre problem when building
- Replies: 48
- Views: 13034
Re: ogre problem when building
Failures in the pkg-config checks are possibly due to recent versions of scons not propagating the environment when running commands in TryAction, ParseConfig, etc. PKG_CONFIG_PATH must be propagated for some of them to work: Index: SConstruct ========================================================...
- Thu Jan 01, 2009 9:31 am
- Forum: Compile
- Topic: Scons can't find boost serialization
- Replies: 81
- Views: 20819
Re: Scons can't find boost serialization
There's also a possibility that there's no execute access to /usr/local/lib for everyone.. What is the output of "ls -ald /usr/local/lib"?
- Wed Dec 31, 2008 10:43 pm
- Forum: Compile
- Topic: Scons can't find boost serialization
- Replies: 81
- Views: 20819
Re: Scons can't find boost serialization
Perhaps it's permission problem? What's the output of "ls -al /usr/local/lib/libGiGi*.so*" when GG is installed?
- Wed Dec 24, 2008 9:23 am
- Forum: Compile
- Topic: Scons can't find boost serialization
- Replies: 81
- Views: 20819
Re: Scons can't find boost serialization
SCons doesn't search for the library. It tries to build a test program that uses it using the same machinery as for building freeorion itself, e.g. scanning for implicit dependencies. Based on LIBPATH and LIBS it thinks that the test program depends on /usr/local/lib/libGiGi.so, most likely because ...
- Tue Dec 23, 2008 7:57 pm
- Forum: Compile
- Topic: Scons can't find boost serialization
- Replies: 81
- Views: 20819
Re: Scons can't find boost serialization
g++ -o .sconf_temp/conftest_5.o -c -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/python2.5 -I/usr/local/include -I/usr/include/SDL -I/usr/include/boost .sconf_temp/conftest_5.cpp close failed: [Errno 9] Bad file descriptor scons: Configure: Caught exception while building ".sconf_temp/c...
- Tue Dec 23, 2008 5:09 pm
- Forum: Compile
- Topic: Scons can't find boost serialization
- Replies: 81
- Views: 20819
Re: Scons can't find boost serialization
Package of your videocard's driver, e.g. nvidia-glx-dev for nvidia.yoshi wrote:ok which package has gl?
- Mon Dec 22, 2008 3:23 pm
- Forum: Compile
- Topic: Scons can't find boost serialization
- Replies: 81
- Views: 20819
Re: Scons can't find boost serialization
scons boost_lib_suffix=-gcc41-mt-1_37
Substitute suffix as appropriate for your boost libs. E.g. -gcc43-mt-1_37
Substitute suffix as appropriate for your boost libs. E.g. -gcc43-mt-1_37
- Mon Dec 22, 2008 12:17 pm
- Forum: Compile
- Topic: Scons can't find boost serialization
- Replies: 81
- Views: 20819
Re: Scons can't find boost serialization
All: you have to find out which version of boost you have(if is multithreaded) and to fix scons script. But how to fix scons script is another case. I have no idea. Yet. There's no need to fix scons script. It already has an option to specify suffix of the library. E.g. boost_lib_suffix=-gcc41-mt-1...
- Mon Dec 22, 2008 11:43 am
- Forum: Compile
- Topic: GG: scons trying to install files during build process
- Replies: 5
- Views: 1845
Re: GG: scons trying to install files during build process
It happens because GG's scons script now builds tutorials too. Based on LIBS and LIBPATH scons figures out that tutorial binaries depend on GG libs located in install target dir and tries to build them. Solution: prepend "." to LIBPATH so it'll depend on libs in GG's compile dir. Index: SC...
- Mon Dec 22, 2008 11:25 am
- Forum: Compile
- Topic: GG: scons trying to install files during build process
- Replies: 5
- Views: 1845
Re: GG: scons trying to install files during build process
I confirm this issue.
- Tue Nov 18, 2008 10:28 am
- Forum: Compile
- Topic: GG Compile
- Replies: 6
- Views: 1996
Re: GG Compile
My point was there's no way anyone could help you unless you'll post really useful error messages. "Too many errors" only tells us that MSVC sucks at error reporting.