1. Use the VCProps I posted in the Windows build issues (got rid of all "s). Otherwise you'll get a lot of errors when you attempt to build from command-line
2. modify build-luxrender-x64.bat to this:
- Code: Select all
@Echo off
echo.
echo **************************************************************************
echo * Startup *
echo **************************************************************************
echo.
echo This script will use 3 pre-built binaries to help build LuxRender:
echo 1: GNU flex.exe from http://gnuwin32.sourceforge.net/packages/flex.htm
echo 2: GNU bison.exe from http://gnuwin32.sourceforge.net/packages/bison.htm
echo 3: GNU patch.exe from http://gnuwin32.sourceforge.net/packages/patch.htm
echo.
echo If you do not wish to execute these binaries for any reason, PRESS CTRL-C NOW
echo Otherwise,
pause
echo.
echo **************************************************************************
echo * Checking environment *
echo **************************************************************************
IF EXIST build-vars.bat (
call build-vars.bat
)
IF NOT EXIST %LUX_X64_PYTHON2_ROOT% (
echo.
echo %%LUX_X64_PYTHON2_ROOT%% not valid! Aborting.
exit /b -1
)
IF NOT EXIST %LUX_X64_PYTHON3_ROOT% (
echo.
echo %%LUX_X64_PYTHON3_ROOT%% not valid! Aborting.
exit /b -1
)
IF NOT EXIST %LUX_X64_BOOST_ROOT% (
echo.
echo %%LUX_X64_BOOST_ROOT%% not valid! Aborting.
exit /b -1
)
IF NOT EXIST %LUX_X64_QT_ROOT% (
echo.
echo %%LUX_X64_QT_ROOT%% not valid! Aborting.
exit /b -1
)
IF NOT EXIST %LUX_X64_FREEIMAGE_ROOT% (
echo.
echo %%LUX_X64_FREEIMAGE_ROOT%% not valid! Aborting.
exit /b -1
)
IF NOT EXIST %LUX_X64_ZLIB_ROOT% (
echo.
echo %%LUX_X64_ZLIB_ROOT%% not valid! Aborting.
exit /b -1
)
msbuild /? > nul
if NOT ERRORLEVEL 0 (
echo.
echo Cannot execute the 'msbuild' command. Please run
echo this script from the Visual Studio 2008 Command Prompt.
exit /b -1
)
echo Environment OK.
echo.
echo **************************************************************************
echo **************************************************************************
echo * *
echo * Building For x64 *
echo * *
echo **************************************************************************
echo **************************************************************************
:DebugChoice
echo Build Debug binaries ?
echo 0: No (default)
echo 1: Yes
set BUILD_DEBUG=0
set /P BUILD_DEBUG="Selection? "
IF %BUILD_DEBUG% EQU 0 ( GOTO LuxRender )
IF %BUILD_DEBUG% EQU 1 ( GOTO LuxRender )
echo Invalid choice
GOTO DebugChoice
:: ****************************************************************************
:: ******************************* LuxRender **********************************
:: ****************************************************************************
:LuxRender
echo.
echo **************************************************************************
echo * Building LuxRender *
echo **************************************************************************
cd /d %LUX_WINDOWS_BUILD_ROOT%
IF %BUILD_DEBUG% EQU 1 (
msbuild /property:Configuration=Release;Platform=x64;useenv=true /target:rebuild lux.sln
)
msbuild /property:Configuration=Release;Platform=x64;useenv=true /target:rebuild lux.sln
:: ****************************************************************************
:: *********************************** Install ********************************
:: ****************************************************************************
cd /d %LUX_WINDOWS_BUILD_ROOT%
IF EXIST ./install-x64.bat (
call install-x64.bat
)
:postLuxRender
:: ****************************************************************************
:: *********************************** Finished *******************************
:: ****************************************************************************
cd /d %LUX_WINDOWS_BUILD_ROOT%
echo.
echo **************************************************************************
echo **************************************************************************
echo * *
echo * Building Completed *
echo * *
echo **************************************************************************
echo **************************************************************************
What has (and hasn't) been tested:
1. 64-bit release building on command-line completes successfully, appears to runs and render fine
2. 64-bit release building from VS2008 gui appears to work (builds fine, runs and renders fine)
3. 64-bit debug builds have not been tested (either from command-line or from the VS gui)
4. 32-bit builds (any) have not been tested
If this works, I'll post the diffs as a patch (or someone else can generate them)
edit:
You will also need to check the boost dependency directory to make sure that python3 boost libs built successfully and are in the correct directory (/stage/python3/lib/). See the same post with the VCProps for details on this.
link to post with VCProps and python3 boost lib fixes
