-
Notifications
You must be signed in to change notification settings - Fork 26
4. Build instructions
Used frameworks/libs/tools:
- Qt 5.3 (only x64 at the moment)
- CMake 2.8.12 (at least 2.8 is required)
Preliminary notes:
-
All source code should be placed into "Source" folder. Preliminary content (subject to change):
"OpenCine" - project which will contain Qt code for GUI and processing logic "CinemaDNGDecoder" - dummy project at the moment, plugin, will be implemented if no already available solution is found to decode CinemaDNG (e.g. FFmpeg or similar)
-
CMake will be used for most projects to simplify building on different platforms
-
Get Qt (actual version is 5.3, but 5.4 is considered when released) from http://qt-project.org/downloads
-
Get Cmake from http://www.cmake.org/download/ or install it from repository in Linux
-
To resolve CMake errors like
CMake Error at Source/OpenCine/CMakeLists.txt:5 (FIND_PACKAGE): By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Widgets", but CMake did not find one.
please refer to http://stackoverflow.com/questions/22215900/add-the-installation-prefix-of-qt5widgets-to-cmake-prefix-path
Short version (temporarily): Set CMAKE_PREFIX_PATH to the folder of Qt e.g. export CMAKE_PREFIX_PATH=/home//Qt/5.3/gcc_64/ Short version (permanently): Put e.g. export CMAKE_PREFIX_PATH=/home//Qt/5.3/gcc_64/ into .profile in home folder
-
Linux build commands (execute in the root of the OpenCine folder):
mkdir build cd build cmake .. make
If no errors occured then the executable can be found in /build/bin
-
CMakeLists.txt can be opened directly in QtCreator and build as usual (.pro isn't needed now, maybe it should be deleted later)
-
Disadvantage (at least at the moment): Files in QtCreator have to be created manually or with "File/New File or Project" afterwards "Build/Run Cmake" have to be executed to update the project. If problems occur check the CMakeLists.txt for bugs or things like missing directives for processing of required file extensions.
-
Use "-DCMAKE_BUILD_TYPE=Debug" as CMake argument to get debug symbols