Skip to content

Windows instructions

Erik Smistad edited this page Jan 5, 2017 · 36 revisions

These instuctions are for building and compiling the project on Windows 10 - Visual Studio 2015 Community Edition - 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 from https://www.qt.io/download-open-source/. Remember to download for your visual studio version and 64 bit. Last tested: Qt 5.7.1 for Windows 64-bit (VS 2015)

GLEW

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

Eigen 3

Download Eigen 3 from http://eigen.tuxfamily.org and extract it.

SWIG (Optional)

If you want to build the Python wrappers, you need to download SWIG and python as well. Download the swigwin version with prebuilt executable for windows from http://swig.org/download.html. Set the CMake flag SWIG_EXECUTABLE to C:/path/to/swig/swig.exe. Also, make sure FAST_MODULE_Python is enabled and that PYTHON_LIBRARY_DEBUG, PYTHON_LIBRARY and PYTHON_INCLUDE_DIR are set correctly. If you get several link errors like: "error LNK2019: unresolved external symbol __imp_PyType_IsSubtype referenced in function ...". Make sure you have downloaded the 64 bit version of python (see https://www.python.org/downloads/windows/).

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
  • EIGEN3_INCLUDE_DIR - path, C:/path/to/eigen3. Example: C:/Users/FAST PC 1/eigen3.2.2
  • 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