Building StereoPhotoView

Dependencies

Linux

Build

cd stereophotoview*
mkdir build
cd build
qmake ../
make

Install

cd stereophotoview*
mkdir build
cd build
qmake [PREFIX=~/.local] [CONFIG+=register-mime-types] [CONFIG+=post-install] ../
[sudo ]make install
  • [PREFIX=] - specify the installation path, than / usr.
  • [CONFIG+=register-mime-types] - to register types of files “mpo” and “jps”, otherwise the stereophotoview attached to the jpeg files.
  • [CONFIG+=post-install] - run update-desktop-database and update-mime-database after installation.

Uninstall

[sudo ]make uninstall

Make portable binaries

/path/to/qmake CONFIG+=deploy ../
make deploy

Make deb and rpm packages

Required fpm

/path/to/qmake CONFIG+=deploy ../
make packages

Windows

  • Download and install Qt
  • Download and extract the dev and shared version of FFMpeg
  • Download and extract OpenCV 2.4.13

Build

  • Open stereophotoview.pro in the Qt creator.
  • Add additional arguments for qmake:
      ffmpeg_dev=<path_to_ffmpeg_dev> ffmpeg_shared=<path_to_ffmpeg_shared> [opencv=<path_to_opencv/build>]
    

    Example:

      ffmpeg_dev=C:\lib\ffmpeg-3.3.3-win64-dev ffmpeg_shared=C:\lib\ffmpeg-3.3.3-win64-shared opencv=C:\lib\opencv\build
    
  • Build the project.

Make installer

  • Install Inno Setup;
  • Add additional arguments for qmake, for example:
      "InnoSetupDir=C:\Program Files (x86)\Inno Setup 5" <build arguments>
    

    Example:

      "InnoSetupDir=C:\Program Files (x86)\Inno Setup 5" ffmpeg_dev=C:\lib\ffmpeg-3.3.3-win64-dev ffmpeg_shared=C:\lib\ffmpeg-3.3.3-win64-shared opencv=C:\lib\opencv\build
    
  • Add build step “Make” with arguments:
      installer
    
  • Build the project