Jump to content

[SOLVED] Can't find Scons.


photo

Recommended Posts

Hi,

When I try to build Unigine dll using build.py script I get the following error messages:

D:\_development_\externalvc10\UNIGINE\UnigineSDK-source-2012-02-26\utils>build.py
[ Engine: release build, 64 bit]
   	building main app...
executing command: scons_x64 dev=0 debug=0 jobs=0 -Q -u .
Can't find SCons.
   	building Network plugin...
executing command: scons_x64 dev=0 debug=0 jobs=0 -Q -u .
Can't find SCons.
   	cleaning sources, keeping binaries...
executing command: D:\_development_\externalvc10\UNIGINE\UnigineSDK-source-2012--26\source/clean.py --quiet --keep_bin 1>nul 2>&1
Errors:
[Errno 2] No such file or directory: 'D:\\_development_\\externalvc10\\UNIGINE\\UnigineSDK-source-2012-02-26\\source\\app\\main\\main.exe'
[Errno 2] No such file or directory: 'D:\\_development_\\externalvc10\\UNIGINE\\UnigineSDK-source-2012-02-26\\source\\plugins\\Network\\lib\\Network_x64.dll'

 

My SO is Windows 7 64 bits, I have Python 2.7 and SCons 2.1.0 installed and, before build script is invoked, I set the PATH environment variable to point C:\Python27 and C:\Python27\Scripts folders.

 

Cheers,

Iván.

 

Note: Visual Studio project file unigine_vc2010 generates a different output file because Target Name is set to '$(ProjectName)' instead of 'Unigine_xXX'. In addition output dir should be changed to %Unigine_Dir%\lib

Link to comment

Set %PYTHON_DIR% environment variable.

 

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
  • 1 month later...
×
×
  • Create New...