steve3d Posted July 24, 2011 Share Posted July 24, 2011 I'm using python2.7 and scons-2.0.1, when building sdk version 2011-07-21, the build script always showing the following information and nothing was built. D:\Develop\UnigineSDK-source-2011-07-21\utils>build.py [ Unigine build script ] Target platform: windows Bits: 64 Build type: release Component: engine Watermark: no Double precision: False Network plugin: True Stereo app: False 3DVision app: False Demo launchers: False Jobs: 2 Batch mode: False Clean target: False Target directory: D:\Develop\UnigineSDK-source-2011-07-21 [ Engine: release build, 64 bit] scons call: scons dev=0 debug=0 jobs=2 -u . building main app... Can't find SCons. building network plugin... Can't find SCons. cleaning sources, keeping binaries... what's wrong? I have both scons_x64.bat and scons_x86.bat in C:\Python27, invoking scons in source\engine and other directories working fine, but using that way, there are some flags missing, and can't successfully build engine. :blink: Link to comment
steve3d Posted July 25, 2011 Author Share Posted July 25, 2011 under linux, the build.py works fine, seems to be a bug in python 2.7. can't figure out why, python 2.6 still not working, same error. Link to comment
frustum Posted July 25, 2011 Share Posted July 25, 2011 The scons_x86.bat performs scons.bat file searching in the two directories: The first one is %PYTHON_DIR%\Scripts\ The second one is C:\Python26\Scripts\ scons.bat should exists in this directories. %PYTHON_DIR% is environment variable which is set up by instal.py script. set SCONS=%PYTHON_DIR%\Scripts\scons.bat if exist "%SCONS%" goto scons_ok set SCONS=C:\Python26\Scripts\scons.bat if exist "%SCONS%" goto scons_ok echo Can't find SCons. goto done :scons_ok Link to comment
steve3d Posted July 25, 2011 Author Share Posted July 25, 2011 still can't build, I copied scons_x64.bat to C:\Python26 from externs dir, and run SetEnv.bat x64 from externs folder, then run the build.by, same error as before, and I also tried to run install.py, still same error. This never happened before, in earlier version of sdk, I just start Visual Studio Command Prompt then run SetEnv.bat from externs folder, then I can use build.py to build entire engine. Link to comment
steve3d Posted July 25, 2011 Author Share Posted July 25, 2011 :blink: I've found the problem, the problem is my python and scons installation. after I installed python2.7-x86 and install scons with scons-2.0.1.win32.exe, problems are gone. Link to comment
hintuc_de Posted July 25, 2011 Share Posted July 25, 2011 In windows 7 problem may repeat after restart or shutdown operation system. I change scons_x86.bat and scons_x64.bat and add line before checking scons: set PYTHON_DIR=C:\usr\python\ Link to comment
Recommended Posts