1 /****************************************************************************
3 ** Copyright (C) 2015 The Qt Company Ltd.
4 ** Contact: http://www.qt.io/licensing/
6 ** This file is part of the documentation of the Qt Toolkit.
8 ** $QT_BEGIN_LICENSE:BSD$
9 ** You may use this file under the terms of the BSD license as follows:
11 ** "Redistribution and use in source and binary forms, with or without
12 ** modification, are permitted provided that the following conditions are
14 ** * Redistributions of source code must retain the above copyright
15 ** notice, this list of conditions and the following disclaimer.
16 ** * Redistributions in binary form must reproduce the above copyright
17 ** notice, this list of conditions and the following disclaimer in
18 ** the documentation and/or other materials provided with the
20 ** * Neither the name of The Qt Company Ltd nor the names of its
21 ** contributors may be used to endorse or promote products derived
22 ** from this software without specific prior written permission.
25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
39 ****************************************************************************/
43 ./configure -static -prefix /path/to/Qt <other parameters>
49 cd /path/to/Qt/examples/tools/plugandpaint
55 PATH=/path/to/Qt/bin:$PATH
68 cd /path/to/Qt/examples/tools/plugandpaint
80 cd ../plugandpaintplugins
89 appname=`basename $0 | sed s,\.sh$,,`
94 if [ "${dirname%$tmp}" != "/" ]; then
97 LD_LIBRARY_PATH=$dirname
98 export LD_LIBRARY_PATH
99 $dirname/$appname "$@"
110 configure -static <any other options you need>
120 cd examples\tools\plugandpaint
126 qmake -config release
132 cd examples\tools\plugandpaint
138 qmake -config release
144 cd ..\plugandpaintplugins
146 qmake -config release
152 plugins\pnp_basictools.dll
153 plugins\pnp_extrafilters.dll
164 CONFIG += embed_manifest_exe
169 <Visual Studio Install Path>\VC\redist\<Architecture>\Microsoft.VC80.CRT
174 CONFIG-=embed_manifest_dll
179 depends <application executable>
184 C:<path to Qt>\plugins
195 ./configure -static <other parameters>
201 cd /path/to/Qt/examples/tools/plugandpaint
207 qmake -config release
213 otool -L plugandpaint.app/Contents/MacOs/plugandpaint
218 plugandpaint.app/Contents/MacOS/plugandpaint:
219 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
220 (compatibility version 2.0.0, current version 128.0.0)
221 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
222 (compatibility version 1.0.0, current version 10.0.0)
223 /usr/lib/libz.1.dylib
224 (compatibility version 1.0.0, current version 1.2.3)
225 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
226 (compatibility version 1.0.0, current version 22.0.0)
227 /usr/lib/libstdc++.6.dylib
228 (compatibility version 7.0.0, current version 7.3.0)
229 /usr/lib/libgcc_s.1.dylib
230 (compatibility version 1.0.0, current version 1.0.0)
231 /usr/lib/libmx.A.dylib
232 (compatibility version 1.0.0, current version 92.0.0)
233 /usr/lib/libSystem.B.dylib
234 (compatibility version 1.0.0, current version 88.0.0)
244 /where/static/qt/lib/is/libQtGui.a
249 cd /path/to/Qt/examples/tools/plugandpaint
255 qmake -config release
261 cd ../plugandpaintplugins
263 qmake -config release
269 otool -L QtGui.framework/QtGui
274 QtGui.framework/QtGui:
275 /path/to/Qt/lib/QtGui.framework/Versions/4.0/QtGui
276 (compatibility version 4.0.0, current version 4.0.1)
277 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
278 (compatibility version 2.0.0, current version 128.0.0)
279 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
280 (compatibility version 1.0.0, current version 10.0.0)
281 /path/to/Qt/QtCore.framework/Versions/4.0/QtCore
282 (compatibility version 4.0.0, current version 4.0.1)
283 /usr/lib/libz.1.dylib
284 (compatibility version 1.0.0, current version 1.2.3)
285 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
286 (compatibility version 1.0.0, current version 22.0.0)
287 /usr/lib/libstdc++.6.dylib
288 (compatibility version 7.0.0, current version 7.3.0)
289 /usr/lib/libgcc_s.1.dylib
290 (compatibility version 1.0.0, current version 1.0.0)
291 /usr/lib/libmx.A.dylib
292 (compatibility version 1.0.0, current version 92.0.0)
293 /usr/lib/libSystem.B.dylib
294 (compatibility version 1.0.0, current version 88.0.0)
299 mkdir plugandpaint.app/Contents/Frameworks
300 cp -R /path/to/Qt/lib/QtCore.framework
301 plugandpaint.app/Contents/Frameworks
302 cp -R /path/to/Qt/lib/QtGui.framework
303 plugandpaint.app/Contents/Frameworks
308 install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
309 plugandpaint.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore
310 install_name_tool -id @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui
311 plugandpaint.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui
316 install_name_tool -change path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
317 @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
318 plugandpaint.app/Contents/MacOs/plugandpaint
319 install_name_tool -change path/to/qt/lib/QtGui.framework/Versions/4.0/QtGui
320 @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui
321 plugandpaint.app/Contents/MacOs/plugandpaint
326 install_name_tool -change path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
327 @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
328 plugandpaint.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui
333 mv plugins plugandpaint.app/Contents
338 libpnp_basictools.dylib:
339 libpnp_basictools.dylib
340 (compatibility version 0.0.0, current version 0.0.0)
341 /path/to/Qt/lib/QtGui.framework/Versions/4.0/QtGui
342 (compatibility version 4.0.0, current version 4.0.1)
343 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
344 (compatibility version 2.0.0, current version 128.0.0)
345 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
346 (compatibility version 1.0.0, current version 10.0.0)
347 /path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
348 (compatibility version 4.0.0, current version 4.0.1)
349 /usr/lib/libz.1.dylib
350 (compatibility version 1.0.0, current version 1.2.3)
351 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
352 (compatibility version 1.0.0, current version 22.0.0)
353 /usr/lib/libstdc++.6.dylib
354 (compatibility version 7.0.0, current version 7.3.0)
355 /usr/lib/libgcc_s.1.dylib
356 (compatibility version 1.0.0, current version 1.0.0)
357 /usr/lib/libmx.A.dylib
358 (compatibility version 1.0.0, current version 92.0.0)
359 /usr/lib/libSystem.B.dylib
360 (compatibility version 1.0.0, current version 88.0.0)
365 install_name_tool -change /path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
366 @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
367 plugandpaint.app/Contents/plugins/libpnp_basictools.dylib
368 install_name_tool -change /path/to/Qt/lib/QtGui.framework/Versions/4.0/QtGui
369 @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui
370 plugandpaint.app/Contents/plugins/libpnp_basictools.dylib
375 #elif defined(Q_OS_MAC)
376 if (pluginsDir.dirName() == "MacOS") {
384 cp -R /path/to/Qt/plugins/imageformats
385 pluginandpaint.app/Contents/plugins
390 install_name_tool -change /path/to/Qt/lib/QtGui.framework/Versions/4.0/QtGui
391 @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui
392 plugandpaint.app/Contents/plugins/imageformats/libqjpeg.dylib
393 install_name_tool -change /path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
394 @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
395 plugandpaint.app/Contents/plugins/imageformats/libqjpeg.dylib
400 otool -L MyApp.app/Contents/MacOS/MyApp
405 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3
409 install_name_tool -change /System/Library/Frameworks/CoreVideo.framework/
410 Versions/A/CoreVideo /System/Library/Frameworks/QuartzCore.framework/
411 Versions/A/QuartzCore libphonon_qt7.dylib
415 ./CONFIGURE - SDK MacOSX10.4u.sdk
419 ./configure (other arguments) -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk
424 QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
430 qApp->addLibraryPath("C:/customPath/plugins");
434 cd examples\widgets\wiggly
439 "%{\"Example Localized Vendor\"}" \
440 ":\"Example Vendor\""
442 my_deployment.pkg_prerules = vendorinfo
443 DEPLOYMENT += my_deployment
447 supported_platforms = \
448 "; This demo only supports S60 5.0" \
449 "[0x1028315F],0,0,0,{\"S60ProductID\"}"
451 default_deployment.pkg_prerules -= pkg_platform_dependencies
452 my_deployment.pkg_prerules += supported_platforms
453 DEPLOYMENT += my_deployment