<?xml version="1.0" encoding="iso-8859-1"?>
<!-- name="generator" content="pyblosxom/1.3.2 2/13/2006" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
<channel>
<title>Diane's World 13 Feb 2006</title>
<link>http://woldlab.caltech.edu/~diane/index.cgi</link>
<description>I take the 5th</description>
<language>en</language>
<item>
  <title>Qt Mac</title>
  <link>http://woldlab.caltech.edu/~diane/index.cgi/work/qt-mac-2006-02-13-20-00.html</link>
  <description><![CDATA[

<div class="document">
<blockquote>
<p>I wanted to make sure that I can build Qt apps on os x, the documentation is
a little bit weak, especially with respect to explaing how to get qmake
to automatically shove the right framework components into the .app bundle.</p>
<p>However the following steps were able to build an appropriate bundle.</p>
<p>export QTDIR=/usr/local/Trolltech/Qt-4.1.0
export APP=hello
mkdir ${APP}/Contents/Frameworks
rsync -av --exclude &quot;<em>_debug</em>&quot; --exclude &quot;Headers&quot; ${QTDIR}/lib/QtCore.framework ${APP}.app/Contents/Frameworks
rsync -av --exclude &quot;<em>_debug</em>&quot; --exclude &quot;Headers&quot; ${QTDIR}/lib/QtGui.framework ${APP}.app/Contents/Frameworks
rsync -av --exclude &quot;<em>_debug</em>&quot; --exclude &quot;Headers&quot; ${QTDIR}/lib/QtOpenGL.framework ${APP}.app/Contents/Frameworks</p>
<p>install_name_tool -id &#64;executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore ${APP}.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore
install_name_tool -id &#64;executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui ${APP}.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui
install_name_tool -id &#64;executable_path/../Frameworks/QtOpenGL.framework/Versions/4.0/QtOpenGL ${APP}.app/Contents/Frameworks/QtOpenGL.framework/Versions/4.0/QtOpenGL</p>
<p>install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtCore &#64;executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore ${APP}.app/Contents/MacOS/${APP}
install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtGui &#64;executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui ${APP}.app/Contents/MacOS/${APP}
install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtOpenGL &#64;executable_path/../Frameworks/QtOpenGL.framework/Versions/4.0/QtOpenGL ${APP}.app/Contents/MacOS/${APP}</p>
<p>install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtCore &#64;executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore ${APP}.app/Contents/Frameworks/QtGui.framework/Versions/4.0/QtGui
install_name_tool -change ${QTDIR}/lib/QtCore.framework/Versions/4.0/QtCore &#64;executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore ${APP}.app/Contents/Frameworks/QtOpenGL.framework/Versions/4.0/QtOpenGL</p>
<p>There's probably some way of emedding that in a .pro file, but I don't know it
yet. Also the cp -R really should be modified to not copy the header and debug
parts of the framework if one wants a reasonable download size.</p>
</blockquote>
</div>

]]></description>
</item>

</channel>
</rss>
