Skip to content

Windows instructions

smistad edited this page Oct 23, 2014 · 36 revisions

These instuctions are for building and compiling the project on Visual Studio 2013 - 64bit; installing for other versions of Visual Studio should be similar.

Install dependencies

CMake

Download CMake from http://www.cmake.org/download/ and install it.

OpenCL

Install OpenCL by downloading the latest display drivers and AMD APP SDK (if you have a AMD GPU) or CUDA Toolkit (if you have an NVIDIA GPU).

Boost C++ Libraries

Download boost from http://boost.teeks99.com/, remember to select your Visual studio version and 64 bit. Extract to some location on your harddrive.

Qt 5

Download Qt 5 WITH OpenGL from http://qt-project.org/downloads. Qt 5 uses some other GL garbage by default now, so make sure you download the ones with OpenGL in the title. Also, the Qt download page lacks some 64 bit versions which you can find here: http://sourceforge.net/projects/qtx64/files/qt-x64/ Remeber to download for your visual studio version.

Then set CMAKE_PREFIX_PATH to where you installed Qt. Example: C:\Qt\qt-5.3.1-x64-msvc2010-opengl\qt-5.3.1-x64-msvc2010-opengl\bin

GLEW

Download GLEW from http://glew.sourceforge.net/ and install it.

Compile

Download the FAST source code. Open the CMake and set the source directory to the C:/path/to/where/you/installed/FAST/source/ directory. Then set the build directory to where you want to create your visual studio project.

Set the following entries by pressing the "Add entry" button:

  • Boost_USE_STATIC_LIBS - Bool, True
  • BOOST_ROOT - path, C:/path/to/where/you/installed/boost/
  • Boost_LIBRARYDIR - path, C:/path/to/where/you/installed/boost/lib64-msvc-12.0
  • OPENCL_LIBRARY - filepath, C:/path/to/OpenCL.lib. Example: C:/Program Files (x86)/AMD APP SDK/2.9-1/lib/x86_64/OpenCL.lib
  • OPENCL_INCLUDE_DIRS - path, C:/path/to/opencl/include. Example: C:/Program Files (x86)/AMD APP SDK/2.9-1/include
  • GLEW_INCLUDE_DIR - path, C:/path/to/glew/include. Example: C:/Users/FAST PC 1/glew-1.11.0/include
  • GLEW_LIBRARY - filepath, C:/path/to/glew/lib/glew32.lib. Example: C:/Users/FAST PC 1/glew-1.11.0/lib/Release/x64/glew32.lib
  • CMAKE_PREFIX_PATH - path, C:/path/to/qt/build/folder. Example: C:/Qt/Qt5.3.2/5.3/msvc2013_64_opengl

You may also need to add the Qt bin folder to the PATH environment variable if this is not already done. Example: C:\Qt\Qt5.3.2\5.3\msvc2013_64_opengl\bin

Finally, press 'Configure' and then 'Generate'. The Visual studio project will be located in the build directory. You can now compile and run the project from inside Visual Studio.

Running the tests

Next, you should run the tests to make sure the framework is working properly on your system. Instructions on how to do this can be found here.

Clone this wiki locally