Import / applications / Photoframe /
@John Ryland John Ryland authored on 11 Jan 2021
..
config bulk import from macbookpro checkouts 5 years ago
docs bulk import from macbookpro checkouts 5 years ago
flickcurl bulk import from macbookpro checkouts 5 years ago
fonts bulk import from macbookpro checkouts 5 years ago
i18n fadein and fadeout the stages. output the binaries to an install directory structure, and switch to using the windeployqt tool for getting the deps 5 years ago
icons bulk import from macbookpro checkouts 5 years ago
libexif shadow builds tidy up 5 years ago
photos/ Internal bulk import from macbookpro checkouts 5 years ago
pics add blurred reflection. improved background images. make image preview work a bit better 5 years ago
sounds bulk import from macbookpro checkouts 5 years ago
src save wip 5 years ago
.gitignore shadow builds tidy up 5 years ago
Photoframe.pro fadein and fadeout the stages. output the binaries to an install directory structure, and switch to using the windeployqt tool for getting the deps 5 years ago
README.md make it able to be opened and run from VS 5 years ago
_env.bat move to using the shell scripts 5 years ago
_env.cmd move to using the shell scripts 5 years ago
_env.sh move to using the shell scripts 5 years ago
build-all.sh make it able to be opened and run from VS 5 years ago
build-libexif.sh fadein and fadeout the stages. output the binaries to an install directory structure, and switch to using the windeployqt tool for getting the deps 5 years ago
clean.sh shadow builds 5 years ago
dpf.ini save wip 5 years ago
idea.txt bulk import from macbookpro checkouts 5 years ago
refresh-translations.sh make it possible to run the same unix scripts from windows cmd too 5 years ago
run.bat shadow builds tidy up 5 years ago
run.cmd move to using the shell scripts 5 years ago
run.sh move to using the shell scripts 5 years ago
sh.bat shadow builds 5 years ago
README.md

General

If there are .bat,.cmd and .sh versions of scripts, that means to use the one that corresponds to the platform you are on. For windows this is .bat, for macOS it is .cmd, and for UNIX it is .sh.

Building

First run the _env script. Adjust as appropriate. You could add conditional expressions based on hostname to customize it if different for your machine. The _env script is expected to set QTDIR to where it is installed on your machine and set PATH to contain qmake. Also MAKE is expected to be set to the command to be used to run make (for example it could be set to nmake).

To build, from the provided prompt, then run "sh build-all.sh". This should work even from windows.

To clean, run "sh clean.sh"

Building on Windows

New instructions:

The UNIX shell scripts are able to be run from a DOS cmd prompt by running them with the sh.bat script. For example:

sh build-all.sh

This will use the sh.bat script to interpret and translate the unix commands in to equivalent windows DOS commands. The shell scripts are therefore obviously restricted to the subset of supported commands that can be translated to. Environment variables must be surrounded with braces, eg "${VAR}". Common commands like cp, echo, mkdir, cd are supported and will translate unix slashes to DOS slashes for all the arguments. Also the make command is translated to %MAKE%, so it can be set up to build with VisualStudio by setting MAKE to nmake etc.

Recent versions of Windows 10 now have curl and tar commands so these can be used too. With tar you can even use it to zip and unzip files using the appropriate options instead of specifically using the zip, gzip etc commands which aren't currently explicitly available yet in Windows 10.

Old instructions:

First install Qt + MingW compiler Add both Qt and MingW bin directories to your PATH Verify they work by opening a command prompt and typing "make -v" and "qmake -v" and make sure those commands are found.

A) Using QDevelop

1) First run the "build-libexif.bat" script
2) Now open Photoframe.pro with QDevelop, click build
3) Use the "refresh-translations.bat" for deployment
4) Use "clean.bat" before making a dist package

B) Using command line only

1) "build-all.bat" will do everything
2) "run.bat" to run it
3) "clean.bat" to remove everything built