User Tools

Site Tools


compiling_on_windows

(If you're looking to make an installable release, go to this page.)

Build 32bit version of Mixxx

Programs to install

Prepare build environment

Add to or create the following system environment variables (HowTo,) adjusting the paths to match where you actually installed the above.

PATH = ;C:\Python27;C:\Python27\Scripts # append to the existing variable

Download mixxx dependencies

  1. Clone the Mixxx buildserver repository and checkout the windows_environment branch. Remember the folder to which the repository was saved. We will refer to that folder as WINLIB_PATH later.
  1. Download the Qt Sources. Unpack the sources to WINLIB_PATH\build
  1. Download the ASIO SDK. You need a steinberge development account, it is free of charge. Copy the content as ASIOSDK to WINLIB_PATH\build\pa_stable_v19_20140130\src\hostapi\asio\.

Build dependencies

Start the Windows SDK command prompt (E.g. Start Menu\Microsoft Windows SDK v.7.0\CMD Shell) and change into the WINLIB_PATH directory. Type:

build_environment x86 Release

This step may take a while depending on your computer.

Download mixxx-sources

  1. Clone the Mixxx repository. Remember the folder to which the repository was saved. We will refer to that folder as MIXXX_REPO later.
  2. Start the Windows SDK command prompt (E.g. Start Menu\Microsoft Windows SDK v.7.0\CMD Shell) and change into the MIXXX_REPO directory.
  3. create a file called build.bat with the following content:
REM Clean up after old builds.
del /q /f *.exe
rmdir /s /q dist32
rmdir /s /q dist64

REM XP Compatibility requires the v7.1A SDK
set MSSDK_DIR="c:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A"

REM this can be either release or debug. For development you want to use debug
set BUILD_TYPE=release

REM This determines if you build a 32bit or 64bit version of mixxx. 
REM 32bit = i386, 64bit = amd64
set ARCHITECTURE=i386

REM set this to the folder where you build the dependencies
set WINLIB_PATH= **Enter Path to WINLIB_PATH**

if "%ARCHITECTURE%" == "i386" (
  set TARGET_MACHINE=x86
  set VCVARS_ARCH=x86
) else ( 
  set TARGET_MACHINE=amd64
  set VCVARS_ARCH=x86_amd64
)

call "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %VCVARS_ARCH%

scons winlib=%WINLIB_PATH% qtdir=%WINLIB_PATH%\build\qt-everywhere-opensource-src-4.8.6 hss1394=1 mediafoundation=1 opus=0 build=%BUILD_TYPE% machine=%TARGET_MACHINE% toolchain=msvs virtualize=0 test=1 sqlitedll=0 mssdk_dir=%MSSDK_DIR% force32=1

This script will setup the build environment and call scons with the appropriate flags. You have to edit the WINLIB_PATH variable and set it to the absolute path of the folder where you compiled the dependencies for mixxx. Then type:

build.bat

Build 64bit version of Mixxx

You have to follow the above guide with two changes.

  1. Build the dependencies with:
    build_environment x64 Release
  2. Use set ARCHITECTURE=amd64 and force32=0 in build.bat

Build debug version of Mixxx

You have to follow the above guide with two changes.

  1. Build the dependencies with:
    build_environment xxx Debug
  2. Use set BUILD_TYPE=debug in build.bat
compiling_on_windows.txt · Last modified: 2014/10/13 04:05 by kain88