Skip to content

Commit 4933f55

Browse files
committed
Fix bug GH-5: Building agains ImageMagick-6.9.2-5
1 parent 2a50c94 commit 4933f55

File tree

3 files changed

+36
-38
lines changed

3 files changed

+36
-38
lines changed

README

-37
This file was deleted.

README.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
Read the following for a better understanding on how to generate a release of EZWebGallery.
3+
4+
## UBUNTU or DEBIAN:
5+
6+
install the required packages:
7+
```bash
8+
sudo apt-get install libmagick++-6-headers libmagick++-6.q16-dev qtbase5-dev libqt5opengl5-dev libqt5webkit5-dev
9+
```
10+
build the sources then install ezwebgallery:
11+
```bash
12+
sudo qmake && make install
13+
```
14+
15+
AFTERWARDS, you can build a functional DEBUG ezwebgallery.
16+
17+
## WINDOWS:
18+
19+
Python3 and Java are required!
20+
*QTDIR* and *MAGICK_HOME* environment variable set to Qt and ImageMagick directories. You may have to build ImageMagick from sources.<br/>
21+
The latets release links against *ImageMagick-6.9.2-5* and *Qt-5.9.9*
22+
23+
1. Build a release target using the Visual Studio project located in src.
24+
2. Run prepare_release.bat from the "script" subfolder.<br/>
25+
A proper build of EZWebGallery will be generated in ../distribution/windows
26+
3. Optionnaly you can build a full installer, based on [NSIS](https://nsis.sourceforge.io/Download), with deployment/windows/Setup_EZWebGallery.nsi
27+
28+
29+
### IMPORTANT NOTE
30+
In order to run EZWebGallery, the directories "data" and "skins"
31+
have to be placed alongside the binary. Thus, if you want to debug a binary,
32+
YOU HAVE TO manually copy them into the debug directory.
33+
34+
35+

scripts/prepare_release.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ REM --- COPYING DLL TO TEMP DIR
5656
%QTDIR%\bin\windeployqt.exe --release --dir %TEMPDIR% --no-compiler-runtime %2\EZWebGallery.exe
5757

5858
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_bzlib_.dll %TEMPDIR%
59-
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_freetype_.dll %TEMPDIR%
6059
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_glib_.dll %TEMPDIR%
6160
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_jpeg_.dll %TEMPDIR%
6261
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_lcms_.dll %TEMPDIR%
@@ -66,6 +65,7 @@ copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_magick_.dll %TEMPDIR%
6665
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_Magick"++"_.dll %TEMPDIR%
6766
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_png_.dll %TEMPDIR%
6867
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_tiff_.dll %TEMPDIR%
68+
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_ttf_.dll %TEMPDIR%
6969
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_wand_.dll %TEMPDIR%
7070
copy %MAGICK_HOME%\VisualMagick\bin\CORE_RL_zlib_.dll %TEMPDIR%
7171
copy %MAGICK_HOME%\VisualMagick\bin\IM_MOD_RL_jpeg_.dll %TEMPDIR%

0 commit comments

Comments
 (0)