<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3138193607203513203</id><updated>2024-09-04T23:41:31.641-07:00</updated><title type='text'>Neo.tw</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://neotw.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3138193607203513203/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://neotw.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>rhdai.tw</name><uri>http://www.blogger.com/profile/09920794500382442402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3138193607203513203.post-790151822078110384</id><published>2012-10-22T16:44:00.003-07:00</published><updated>2012-10-28T18:26:41.045-07:00</updated><title type='text'>Qt Deployment on Windows</title><content type='html'>在 Windows 上 deploy Qt 程式也很簡單&lt;br /&gt;
&lt;div&gt;
只要把引用的相關 share library 放在程式的同一個目錄底下, 就完成了&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Qt 引用的 library 有哪些呢？&lt;/div&gt;
&lt;div&gt;
有 1. Qt library 2. compiler specific library&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
compiler specific share library 就看你使用的 compiler 是哪一種, 就把對應的 library copy 到目錄底下&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;table style=&quot;-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-color: #f6f6f6; border-bottom-color: rgb(230, 230, 230); border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(230, 230, 230); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(230, 230, 230); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(230, 230, 230); border-top-left-radius: 7px; border-top-right-radius: 7px; border-top-style: solid; border-top-width: 1px; color: #363534; font-family: Verdana; font-size: 11px; margin-bottom: 25px; width: 100%px;&quot;&gt;&lt;thead style=&quot;font-family: Arial; font-weight: 600; line-height: 1.2; margin-top: 5px;&quot;&gt;
&lt;tr&gt;&lt;th style=&quot;background-color: #e1e1e1; border-left-color: rgb(230, 230, 230); border-left-style: solid; border-left-width: 1px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 10px; padding-right: 15px; padding-top: 5px; text-align: left;&quot;&gt;Qt&lt;/th&gt;&lt;th style=&quot;background-color: #e1e1e1; border-left-color: rgb(230, 230, 230); border-left-style: solid; border-left-width: 1px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 10px; padding-right: 15px; padding-top: 5px; text-align: left;&quot;&gt;VC++ 6.0&lt;/th&gt;&lt;th style=&quot;background-color: #e1e1e1; border-left-color: rgb(230, 230, 230); border-left-style: solid; border-left-width: 1px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 10px; padding-right: 15px; padding-top: 5px; text-align: left;&quot;&gt;VC++ 7.1 (2003)&lt;/th&gt;&lt;th style=&quot;background-color: #e1e1e1; border-left-color: rgb(230, 230, 230); border-left-style: solid; border-left-width: 1px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 10px; padding-right: 15px; padding-top: 5px; text-align: left;&quot;&gt;VC++ 8.0 (2005)&lt;/th&gt;&lt;th style=&quot;background-color: #e1e1e1; border-left-color: rgb(230, 230, 230); border-left-style: solid; border-left-width: 1px; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 10px; padding-right: 15px; padding-top: 5px; text-align: left;&quot;&gt;MinGW&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr style=&quot;border-left-color: rgb(230, 230, 230); border-left-style: solid; border-left-width: 1px; color: #66666e;&quot; valign=&quot;top&quot;&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 10px; padding-right: 15px; padding-top: 3px;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; padding-top: 10px;&quot;&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;QTCORE4.DLL - The&amp;nbsp;&lt;a href=&quot;http://doc.qt.digia.com/4.7-snapshot/qtcore.html&quot; style=&quot;color: #4c0033; font-family: Arial; font-size: 12px; font-weight: bold; line-height: 1.2; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;QtCore&lt;/a&gt;runtime&lt;/li&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;QTGUI4.DLL - The&amp;nbsp;&lt;a href=&quot;http://doc.qt.digia.com/4.7-snapshot/qtgui.html&quot; style=&quot;color: #4c0033; font-family: Arial; font-size: 12px; font-weight: bold; line-height: 1.2; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;QtGui&lt;/a&gt;runtime&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 10px; padding-right: 15px; padding-top: 3px;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; padding-top: 10px;&quot;&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;MSVCRT.DLL - The C runtime&lt;/li&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;MSVCP60.DLL - The C++ runtime (only when STL is installed)&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 10px; padding-right: 15px; padding-top: 3px;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; padding-top: 10px;&quot;&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;MSVCR71.DLL - The C runtime&lt;/li&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;MSVCP71.DLL - The C++ runtime (only when STL is installed)&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 10px; padding-right: 15px; padding-top: 3px;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; padding-top: 10px;&quot;&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;MSVCR80.DLL - The C runtime&lt;/li&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;MSVCP80.DLL - The C++ runtime (only when STL is installed)&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 3px; padding-left: 10px; padding-right: 15px; padding-top: 3px;&quot;&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; padding-top: 10px;&quot;&gt;
&lt;li style=&quot;background-image: url(https://mail.google.com/mail/u/1/); background-repeat: no-repeat no-repeat; font-size: 10pt; line-height: 1.2; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 12px; padding-right: 0px; padding-top: 0px;&quot;&gt;MINGWM10.DLL - The MinGW run-time&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div&gt;
那要怎樣才知道引用哪些 Qt library 呢？&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
可以用 Dependency Walker 來查詢&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;a href=&quot;http://www.dependencywalker.com/&quot; style=&quot;background-color: transparent; color: #1155cc;&quot; target=&quot;_blank&quot;&gt;http://www.dependencywalker.&lt;wbr&gt;&lt;/wbr&gt;com/&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oa-xXfNrOPUnsQ8SkYjw6FbeLLRI-B24f3DTm_o28BIK9JTuiRYIPOCP4-VTA-EBERWQl4IqX8YRNhG0HMPUmu9Hx1nVRcM6wmFcd4I-eX-zrSVvD5QIy2i9xQxmcR7oxeBJ-NQEodE/s1600/Image.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oa-xXfNrOPUnsQ8SkYjw6FbeLLRI-B24f3DTm_o28BIK9JTuiRYIPOCP4-VTA-EBERWQl4IqX8YRNhG0HMPUmu9Hx1nVRcM6wmFcd4I-eX-zrSVvD5QIy2i9xQxmcR7oxeBJ-NQEodE/s640/Image.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://neotw.blogspot.com/feeds/790151822078110384/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://neotw.blogspot.com/2012/10/qt-deployment-on-windows.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3138193607203513203/posts/default/790151822078110384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3138193607203513203/posts/default/790151822078110384'/><link rel='alternate' type='text/html' href='http://neotw.blogspot.com/2012/10/qt-deployment-on-windows.html' title='Qt Deployment on Windows'/><author><name>rhdai.tw</name><uri>http://www.blogger.com/profile/09920794500382442402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0oa-xXfNrOPUnsQ8SkYjw6FbeLLRI-B24f3DTm_o28BIK9JTuiRYIPOCP4-VTA-EBERWQl4IqX8YRNhG0HMPUmu9Hx1nVRcM6wmFcd4I-eX-zrSVvD5QIy2i9xQxmcR7oxeBJ-NQEodE/s72-c/Image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3138193607203513203.post-2378253357186416835</id><published>2012-10-16T07:22:00.001-07:00</published><updated>2012-10-16T07:34:48.953-07:00</updated><title type='text'>Qt deployment on Mac</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
在 Mac 上 deploy Qt 程式很簡單&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;只要使用 Qt SDK 所提供的&lt;/span&gt; macdeployqt &lt;span style=&quot;color: #262626;&quot;&gt;指令就可以完成 deployment&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
macdeployqt 會將程式引用的相關 Qt library 打包, 並且改變引用路徑&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;以下以 &lt;/span&gt;MyApp.app&lt;span style=&quot;color: #262626;&quot;&gt;&amp;nbsp;做為範例：&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
mac 提供一個 otool 指令可以查看程式引用的 share library&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #262626; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;$&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;otool -L&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;MyApp.app/Conten&lt;span style=&quot;color: #262626;&quot;&gt;ts/MacOS/MyApp&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;&quot;&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
MyApp.app/Contents/MacOS/&lt;wbr&gt;&lt;/wbr&gt;MyApp:&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
/System/Library/Frameworks/&lt;wbr&gt;&lt;/wbr&gt;IOKit.framework/Versions/A/&lt;wbr&gt;&lt;/wbr&gt;IOKit (compatibility version 1.0.0, current version 275.0.0)&lt;br /&gt;
/System/Library/Frameworks/&lt;wbr&gt;&lt;/wbr&gt;CoreFoundation.framework/&lt;wbr&gt;&lt;/wbr&gt;Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.21.0)&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;/Users/OOO/QtSDK/Desktop/Qt/4.&lt;wbr&gt;&lt;/wbr&gt;8.0/gcc/lib/QtWebKit.&lt;wbr&gt;&lt;/wbr&gt;framework/Versions/4/QtWebKit (compatibility version 4.8.0, current version 4.8.0)&lt;br clear=&quot;none&quot; /&gt;/Users/OOO/QtSDK/Desktop/Qt/4.&lt;wbr&gt;&lt;/wbr&gt;8.0/gcc/lib/QtGui.framework/&lt;wbr&gt;&lt;/wbr&gt;Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.0)&lt;br clear=&quot;none&quot; /&gt;/Users/OOO/QtSDK/Desktop/Qt/4.&lt;wbr&gt;&lt;/wbr&gt;8.0/gcc/lib/QtNetwork.&lt;wbr&gt;&lt;/wbr&gt;framework/Versions/4/QtNetwork (compatibility version 4.8.0, current version 4.8.0)&lt;br clear=&quot;none&quot; /&gt;/Users/OOO/QtSDK/Desktop/Qt/4.&lt;wbr&gt;&lt;/wbr&gt;8.0/gcc/lib/QtCore.framework/&lt;wbr&gt;&lt;/wbr&gt;Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.0)&lt;/span&gt;&lt;br /&gt;
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)&lt;br /&gt;
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1094.0.0)&lt;br /&gt;
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
以上紅色的字就是 MyApp.app 引用的相關 Qt &amp;nbsp;share library, 注意這裡是絕對路徑&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
使用 macdeployqt 指令, 來 deploy Qt 程式&lt;br /&gt;
macdeployqt 在 Qt SDK 安裝目錄底下可以找到, 要稍微找一下&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;$&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;macdeployqt&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #262626;&quot;&gt;&amp;nbsp;&lt;/span&gt;MyApp.app&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
&lt;br clear=&quot;none&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
接下來再用一次 otool&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;$ &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;otool -L&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #262626;&quot;&gt; MyApp.app/Contents/MacOS/MyApp&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;MyApp.app/Contents/MacOS/&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;color: #262626;&quot;&gt;MyApp:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;/System/Library/Frameworks/&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;color: #262626;&quot;&gt;IOKit.framework/Versions/A/&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;color: #262626;&quot;&gt;IOKit (compatibility version 1.0.0, current version 275.0.0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;/System/Library/Frameworks/&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;color: #262626;&quot;&gt;CoreFoundation.framework/&lt;/span&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;span style=&quot;color: #262626;&quot;&gt;Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.21.0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;@executable_path/../&lt;wbr&gt;&lt;/wbr&gt;Frameworks/QtWebKit.framework/&lt;wbr&gt;&lt;/wbr&gt;Versions/4/QtWebKit (compatibility version 4.8.0, current version 4.8.0)&lt;br clear=&quot;none&quot; /&gt;@executable_path/../&lt;wbr&gt;&lt;/wbr&gt;Frameworks/QtGui.framework/&lt;wbr&gt;&lt;/wbr&gt;Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.0)&lt;br clear=&quot;none&quot; /&gt;@executable_path/../&lt;wbr&gt;&lt;/wbr&gt;Frameworks/QtNetwork.&lt;wbr&gt;&lt;/wbr&gt;framework/Versions/4/QtNetwork (compatibility version 4.8.0, current version 4.8.0)&lt;br clear=&quot;none&quot; /&gt;@executable_path/../&lt;wbr&gt;&lt;/wbr&gt;Frameworks/QtCore.framework/&lt;wbr&gt;&lt;/wbr&gt;Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1094.0.0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #262626;&quot;&gt;/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
有沒有發現, macdeployqt 指令已經將相關 Qt share library 打包, 並且將絕對路徑改成相對路徑&lt;/div&gt;
&lt;div style=&quot;color: #262626;&quot;&gt;
這樣有沒有很簡單?&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://neotw.blogspot.com/feeds/2378253357186416835/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://neotw.blogspot.com/2012/10/qt-deployment-on-mac.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3138193607203513203/posts/default/2378253357186416835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3138193607203513203/posts/default/2378253357186416835'/><link rel='alternate' type='text/html' href='http://neotw.blogspot.com/2012/10/qt-deployment-on-mac.html' title='Qt deployment on Mac'/><author><name>rhdai.tw</name><uri>http://www.blogger.com/profile/09920794500382442402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>