-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME_NMake_Windows.txt
More file actions
executable file
·194 lines (150 loc) · 8.3 KB
/
README_NMake_Windows.txt
File metadata and controls
executable file
·194 lines (150 loc) · 8.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
Building qStopMotion using MS Windows SDK
Last Change: 2016-05-10
1. Preparation of the development environment
================================================================================
1.1 Install the Visual Studio 2013
--------------------------------------------------------------------------------
* Download the "Visual Studio 2013 Community Edition"
* This package including the Visual Studio 2010 command line tools.
* Install in the default installation directory
(C:\Program Files\Microsoft Visual Studio 12.0).
- Switch off all optional features
- Start the IDE and search for updates
* Add the binary directory to the path variable
(C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\).
1.2 Install the Windows SDK
--------------------------------------------------------------------------------
* Download the "Windows Software Development Kit for Windows 8.1"
* This package including the debugging tools for windows.
* Install in the default installation directory
(C:\Program Files\Windows Kits\v8.1).
1.3 Qt5 for Windows and Visual Studio
--------------------------------------------------------------------------------
* Download Qt runtime 5.5.x for Windows 64-bit (VS 2013) from qt-project.com/downloads
* Install in the Directory C:\Tools\Qt\...
* Qt need write permissions to this directory during compilation and linking.
* Add the binary directory to the path variable (e.g. C:\Tools\Qt\Qt5.5.1\bin\).
* Set the environment variable 'Qt5_DIR' to 'C:\Tools\Qt\Qt5.5.1\5.5\msvc2013_64\'
1.4 CMake
--------------------------------------------------------------------------------
* Download CMake >= 3.3.2 (32bit) from "http://www.cmake.org/cmake/resources/software.html"
* Install in the default installation directory.
* Add CMake to the system PATH for all users.
* Create a start script for CMake (C:\Tools\cmakestart.bat)
rem Set the Visual Studion 10 environment variables
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
rem Start CMake
"C:\Program Files (x86)\CMake 2.8\bin\cmake-gui.exe"
* Create a shortcut to the start script.
1.5 Mercurial SCM (Developers only)
--------------------------------------------------------------------------------
* Download Mercurial or TortoiseHG with Mercurial from "http://mercurial.selenic.com/downloads"
* Install in the default installation directory.
1.6 NSIS 2.46
--------------------------------------------------------------------------------
* Download NSIS from "http://nsis.sourceforge.net/Main_Page"
* Install in the default installation directory.
2. Access to the sources of qStopMotion
================================================================================
2.1 Download the sources (last release of qStopMotion)
--------------------------------------------------------------------------------
* Downoad qstopmotion-<version>-Source.zip or qstopmotion-<version>-Source.tar.Z
from http://sourceforge.net/projects/qstopmotion/files/
2.2 Anonymous read only access to the repository (latest developer version)
--------------------------------------------------------------------------------
* hg clone http://hg.code.sf.net/p/qstopmotion/code qstopmotion
2.3 Developer access to the repository (read and write access)
--------------------------------------------------------------------------------
2.3.1 Create a Source Forge account
* Create a Source Forge account on https://sourceforge.net/user/registration
* Add your account to the qStopMotion developers on http://sourceforge.net/projects/qstopmotion
2.3.2 Create a .hgrc file
* Create a .hgrc file in your home directory
* Content of the file:
[ui]
username = Your Name <your eMail address>
[auth]
qstopmotion.prefix = https://hg.code.sf.net/p/qstopmotion/code
qstopmotion.username = <your Source Forge user name>
qstopmotion.password = <your Source Forge password>
2.3.3 Create a local repository
* hg clone https://hg.code.sf.net/p/qstopmotion/code qstopmotion
3. Building qStopMotion
================================================================================
3.1 Add the ffmpeg encoder to the sources directory
--------------------------------------------------------------------------------
* Download the latest static version from http://ffmpeg.zeranoe.com/builds/
* Unpack the 7z file to the qstopmotion directory
* Rename the ffmpeg directory to 'ffmpeg'
3.2 Add the qtruntime to the sources directory
--------------------------------------------------------------------------------
* Create a new directory qtruntime in the source directory
* Copy QtCore4.dll, QtGui4.dll and QtXml.dll from Qt installation bin directory
to the new qtruntime directory
* Copy QtCored4.dll, QtGuid4.dll and QtXmld.dll from Qt installation bin directory
to the new qtruntime directory
* Copy the directory imageformats from Qt installation plugins directory
to the new qtruntime directory
3.3 Create the NMake makefile
--------------------------------------------------------------------------------
* Create a build directory
* Start the CMake GUI using the shortcut to the start script.
- Select the directory with the cmakelist.txt file as the source code directory.
- Select a separate directory as the destination directory.
- Set the 'Grouped' and 'Advanced' checkboxes.
- To build the release version add a new string entry with the name
'CMAKE_BUILD_TYPE' and the value 'Release'. The default build type is 'Debug'.
- Press the configure button.
- Select the generator "NMake Makefiles".
- Select the entry CPACK - CPACK_BINARY_NSIS.
- Select the entry CPACK - CPACK_BINARY_ZIP.
- Select the entry CPACK - CPACK_SOURCE_ZIP.
- Press the configure button again.
- Press the generate button.
or
* Start the "Visua Studio 2013 - Visual Studio Tools - VS2013 x64 Native Tools Command Prompt"
- move to the build directory
- cmake -G „NMake Makefiles“ -D CMAKE_BUILD_TYPE:STRING=Release -D CPACK_BINARY_NSIS:BOOL=ON -D CPACK_BINARY_ZIP:BOOL=ON ../qstopmotion
3.4 Build the application
--------------------------------------------------------------------------------
* Start the "Visua Studio 2013 - Visual Studio Tools - VS2013 x64 Native Tools Command Prompt"
* Move to the build directory.
* Call "nmake".
* Locking for error and warning messages.
4. Installation
================================================================================
* Start the "Visua Studio 2013 - Visual Studio Tools - VS2013 x64 Native Tools Command Prompt"
* call "nmake install".
5. Starting qStopMotion
================================================================================
* Select the video source.
* Have fun.
6. Creating packages for Windows
================================================================================
6.1 Create the installer for qStopMotion
--------------------------------------------------------------------------------
* Start the "Visua Studio 2013 - Visual Studio Tools - VS2013 x64 Native Tools Command Prompt"
* Move to the new created destination directory.
* Call "nmake package".
* The Windows installer with the name 'qstopmotion-x.y.z-win64.exe' will be
created in the destination directory.
* The portable application with the name 'qstopmotion-x.y.z-win64.zip' will be
created in the destination directory.
6.2 Test the installer
--------------------------------------------------------------------------------
* Copy the new installer to a temporary directory.
* Start the installer.
* Select the installation directory.
* Start qStopMotion in the Windows 'Start' menu.
6.3 Test the portable application
--------------------------------------------------------------------------------
* Unpack the zip file of the portable application to a temporary directory.
* Move to the new directory and go to the 'bin' subdirectory.
* Start the file 'qstopmotion.exe'.
6.4 Create the source package
--------------------------------------------------------------------------------
* Start the "Visua Studio 2013 - Visual Studio Tools - VS2013 x64 Native Tools Command Prompt"
* Move to the new created destination directory.
* Call "nmake package_source"
* A new zip package with the name 'qstopmotion-x.y.z-Source.zip' will be created
in the destination directory