Building instructions (Windows, VS2015)
Open, Needs TriagePublic

Description

Prerequisites:

  • Install CMake
  • Install Qt 5.6
  • Install VS2015 Community

CMake:

  • Open CMake GUI
  • Select OC root folder for source code location and some folder for build output
  • Click "Configure"
  • Dialog opens which will ask for which compiler it should configure the project, select VS2015 (x86 or x64)
  • If CMake complains about not being able to find Qt5 modules then point it to the right module folder, see the screenshot for examples
  • Click "Generate"
  • CMake generates VS solution for OC in build output folder

VS2015:

  • Open VS
  • Install Qt5Package extension from Tools -> Extensions menu
  • Restart VS
  • Open Qt5 -> Qt Options
  • Select the folder which contains MSVC version of Qt
  • Open VS solution which was generated by Qt
  • Build
  • To be able to start OC modules correctly change working dir for debugging in the required project settings (shift+select/ctrl+select mutliple projects to set them at once) to build output folder, e.g. ${ProjectDir} to ${TargetDir}
  • Do the previous setting for all used modules, otherwise there would be a mixup while debugging or running in release mode which crashes for no obvious reason at first sight

Notes:

  • Possibly that VS2015 will show an error about missing Qt DLLs, to fix this windeployqt should be run from Qt bin folder, as parameter full path to the project exe should be supplied, e.g. windeployqt C:\Build\OC_VS2015_build\bin\OCBackup.exe
BAndiT1983 updated the task description. (Show Details)
BAndiT1983 raised the priority of this task from to Needs Triage.
BAndiT1983 added a project: Open Cine.
BAndiT1983 moved this task to Documentation on the Open Cine board.
BAndiT1983 added a subscriber: BAndiT1983.
BAndiT1983 updated the task description. (Show Details)Mar 26 2016, 12:37 AM
BAndiT1983 updated the task description. (Show Details)
BAndiT1983 updated the task description. (Show Details)May 18 2016, 11:06 PM
nikmads removed a subscriber: nikmads.
BAndiT1983 updated the task description. (Show Details)Dec 11 2016, 8:39 PM