<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:397166566;
        mso-list-type:hybrid;
        mso-list-template-ids:192579562 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoNormal>Hello,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am trying to put the MarbleWidget into a Qt only
application using Qt Creator, and am having some difficulty. Here’s
is what I’ve done thus far:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>Followed instructions for downloading and compiling
Marble on Windows. That seemed to go fine.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]>I looked at the QtMainWindow.cpp as a model for what I
was putting together. I deviated from that approach somewhat as I am
creating a simple Dialog app. On this dialog, I am trying to
instantiate a ControlView (as is done in QtMainWindow) from
ControlView.cpp/.h. See dialog.cpp/.h below.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>////////////////////////////////<o:p></o:p></p>
<p class=MsoNormal>// dialog.h<o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:navy'>#ifndef</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>DIALOG_H<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:navy'>#define</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>DIALOG_H<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:navy'>#include</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'><QDialog></span><span style='font-size:10.0pt;font-family:
"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:navy'>#include</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>"ControlView.h"</span><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>namespace</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>Ui<span
style='color:silver'> </span><span style='color:black'>{</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:olive'>class</span><span style='font-size:10.0pt;
font-family:"Courier New";color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>Dialog<span style='color:black'>;</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>}</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>namespace</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>Marble<span
style='color:black'>{</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>class</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>MarbleWidget<span
style='color:black'>;</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>class</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>Dialog<span
style='color:silver'> </span><span style='color:black'>:</span><span
style='color:silver'> </span><span style='color:olive'>public</span><span
style='color:silver'> </span><span style='color:purple'>QDialog</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>{</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:purple'>Q_OBJECT</span><span style='font-size:
10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>public</span><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>:</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:olive'>explicit</span><span style='font-size:
10.0pt;font-family:"Courier New";color:silver'> </span><span style='font-size:
10.0pt;font-family:"Courier New"'>Dialog<span style='color:black'>(</span><span
style='color:olive'>const</span><span style='color:silver'> </span><span
style='color:purple'>QString</span><span style='color:black'>&</span><span
style='color:silver'> </span>marbleDataPath<span style='color:black'>,</span><span
style='color:purple'>QWidget</span><span style='color:silver'> </span><span
style='color:black'>*</span>parent<span style='color:silver'> </span><span
style='color:black'>=</span><span style='color:silver'> </span><span
style='color:navy'>0</span><span style='color:black'>);</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>~</span><span style='font-size:10.0pt;
font-family:"Courier New"'>Dialog<span style='color:black'>();</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>ControlView<span style='color:black'>*</span><span
style='color:silver'> </span>marbleControl<span style='color:black'>(){</span><span
style='color:olive'>return</span><span style='color:silver'> </span>m_controlView<span
style='color:black'>;}</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>MarbleWidget<span style='color:black'>*</span><span
style='color:silver'> </span>marbleWidget<span style='color:black'>(){</span><span
style='color:olive'>return</span><span style='color:silver'> </span>m_controlView<span
style='color:black'>-></span>marbleWidget<span style='color:black'>();}</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>private</span><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>:</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>Ui<span style='color:black'>::</span>Dialog<span
style='color:silver'> </span><span style='color:black'>*</span>ui<span
style='color:black'>;</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>ControlView<span style='color:silver'> </span><span
style='color:black'>*</span>m_controlView<span style='color:black'>;</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>private</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>slots</span><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>:</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:olive'>void</span><span style='font-size:10.0pt;
font-family:"Courier New";color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>on_QuitPB_clicked<span style='color:black'>();</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>};</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>}</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>//</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>namespace</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>Marble</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:navy'>#endif // </span><span style='font-size:10.0pt;font-family:"Courier New"'>DIALOG_H</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif";color:green'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:green'><o:p> </o:p></span></p>
<p class=MsoNormal>////////////////////////////////<o:p></o:p></p>
<p class=MsoNormal>// dialog.cpp<o:p></o:p></p>
<pre><span style='color:navy'>#include</span><span style='color:silver'> </span><span
style='color:green'>"dialog.h"</span><o:p></o:p></pre><pre
style='-qt-block-indent:0'><span style='color:navy'>#include</span><span
style='color:silver'> </span><span style='color:green'>"ui_dialog.h"</span><o:p></o:p></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><span style='color:olive'>using</span><span
style='color:silver'> </span><span style='color:olive'>namespace</span><span
style='color:silver'> </span>Marble<span style='color:black'>;</span><o:p></o:p></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'>Dialog<span
style='color:black'>::</span>Dialog<span style='color:black'>(</span><span
style='color:olive'>const</span><span style='color:silver'> </span><span
style='color:purple'>QString</span><span style='color:black'>&</span><span
style='color:silver'> </span>marbleDataPath<span style='color:black'>,</span><span
style='color:purple'>QWidget</span><span style='color:silver'> </span><span
style='color:black'>*</span>parent<span style='color:black'>)</span><span
style='color:silver'> </span><span style='color:black'>:</span><o:p></o:p></pre><pre
style='-qt-block-indent:0'><span style='color:silver'> </span><span
style='color:purple'>QDialog</span><span style='color:black'>(</span>parent<span
style='color:black'>),</span><o:p></o:p></pre><pre style='-qt-block-indent:0'><span
style='color:silver'> </span>ui<span style='color:black'>(</span><span
style='color:olive'>new</span><span style='color:silver'> </span>Ui<span
style='color:black'>::</span>Dialog<span style='color:black'>)</span><o:p></o:p></pre><pre
style='-qt-block-indent:0'><span style='color:black'>{</span><o:p></o:p></pre><pre
style='-qt-block-indent:0'><span style='color:silver'> </span>ui<span
style='color:black'>-></span>setupUi<span style='color:black'>(</span><span
style='color:olive'>this</span><span style='color:black'>);</span><o:p></o:p></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><span style='color:silver'> </span>m_controlView<span
style='color:silver'> </span><span style='color:black'>=</span><span
style='color:silver'> </span><span style='color:olive'>new</span><span
style='color:silver'> </span>ControlView<span style='color:black'>(</span><span
style='color:olive'>this</span><span style='color:black'>);</span><o:p></o:p></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><span style='color:silver'> </span>setWindowTitle<span
style='color:black'>(</span><span style='color:green'>"MIT</span><span
style='color:silver'> </span><span style='color:green'>Lincoln</span><span
style='color:silver'> </span><span style='color:green'>Lab</span><span
style='color:silver'> </span><span style='color:green'>-</span><span
style='color:silver'> </span><span style='color:green'>COTM</span><span
style='color:silver'> </span><span style='color:green'>Tracker"</span><span
style='color:black'>);</span><o:p></o:p></pre><pre style='-qt-paragraph-type:empty;
-qt-block-indent:0'><span style='color:black'>}<o:p></o:p></span></pre><pre>Dialog<span
style='color:black'>::~</span>Dialog<span style='color:black'>()</span><o:p></o:p></pre><pre
style='-qt-block-indent:0'><span style='color:black'>{</span><o:p></o:p></pre><pre
style='-qt-block-indent:0'><span style='color:silver'> </span><span
style='color:olive'>delete</span><span style='color:silver'> </span>ui<span
style='color:black'>;</span><o:p></o:p></pre><pre style='-qt-block-indent:0'><span
style='color:black'>}</span><o:p></o:p></pre><pre style='-qt-paragraph-type:empty;
-qt-block-indent:0'><span style='color:olive'>void</span><span
style='color:silver'> </span>Dialog<span style='color:black'>::</span>on_QuitPB_clicked<span
style='color:black'>()</span><o:p></o:p></pre><pre style='-qt-block-indent:0'><span
style='color:black'>{</span><o:p></o:p></pre><pre style='-qt-block-indent:0'><span
style='color:silver'> </span>exit<span style='color:black'>(</span><span
style='color:navy'>0</span><span style='color:black'>);</span><o:p></o:p></pre><pre
style='-qt-block-indent:0'><span style='color:black'>}</span><o:p></o:p></pre>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>////////////////////////////////<o:p></o:p></p>
<p class=MsoNormal>// main.cpp<o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:navy'>#include</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'><QtGui/QApplication></span><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:navy'>#include</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>"dialog.h"</span><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:navy'>#include</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>"MarbleDebug.h"</span><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:navy'>#include</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>"MarbleDirs.h"</span><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>using</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>namespace</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>Marble<span
style='color:black'>;</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:olive'>int</span><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;font-family:"Courier New"'>main<span
style='color:black'>(</span><span style='color:olive'>int</span><span
style='color:silver'> </span>argc<span style='color:black'>,</span><span
style='color:silver'> </span><span style='color:olive'>char</span><span
style='color:silver'> </span><span style='color:black'>*</span>argv<span
style='color:black'>[])</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>{</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:purple'>QApplication</span><span
style='font-size:10.0pt;font-family:"Courier New";color:silver'> </span><span
style='font-size:10.0pt;font-family:"Courier New"'>a<span style='color:black'>(</span>argc<span
style='color:black'>,</span><span style='color:silver'> </span>argv<span
style='color:black'>);</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:purple'>QString</span><span style='font-size:
10.0pt;font-family:"Courier New";color:silver'> </span><span style='font-size:
10.0pt;font-family:"Courier New"'>marbleDataPath<span style='color:silver'> </span><span
style='color:black'>=</span><span style='color:silver'> </span><span
style='color:green'>"C:\\Program</span><span style='color:silver'> </span><span
style='color:green'>Files\\Marble</span><span style='color:silver'> </span><span
style='color:green'>0.8.0\\data"</span><span style='color:black'>;</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>Dialog<span style='color:silver'> </span><span
style='color:black'>*</span>mp_dialog<span style='color:silver'> </span><span
style='color:black'>=</span><span style='color:silver'> </span><span
style='color:olive'>new</span><span style='color:silver'> </span>Dialog<span
style='color:black'>(</span>marbleDataPath<span style='color:black'>);</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>mp_dialog<span style='color:black'>-></span>setAttribute<span
style='color:black'>(</span><span style='color:purple'>Qt</span><span
style='color:black'>::</span>WA_DeleteOnClose<span style='color:black'>,</span><span
style='color:olive'>true</span><span style='color:black'>);</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New"'>mp_dialog<span style='color:black'>-></span>show<span
style='color:black'>();</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:silver'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:olive'>return</span><span style='font-size:
10.0pt;font-family:"Courier New";color:silver'> </span><span style='font-size:
10.0pt;font-family:"Courier New"'>a<span style='color:black'>.</span>exec<span
style='color:black'>();</span><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:black'>}</span><o:p></o:p></p>
<p class=MsoNormal>////////////////////////////////<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>// .pro file<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>#-------------------------------------------------</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>#</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:green'># Project created by QtCreator 2010-07-21T16:14:07</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>#</span><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>#-------------------------------------------------</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:purple'>QT</span><span style='font-size:10.0pt;font-family:"Courier New"'>
+= core gui<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:purple'>TARGET</span><span style='font-size:10.0pt;font-family:"Courier New"'>
= cotm_map<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:purple'>TEMPLATE</span><span style='font-size:10.0pt;font-family:"Courier New"'>
= app<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:purple'>SOURCES</span><span style='font-size:10.0pt;font-family:"Courier New"'>
+= main.cpp\<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
dialog.cpp \<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
ControlView.cpp<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:purple'>HEADERS</span><span style='font-size:10.0pt;font-family:"Courier New"'>
+= dialog.h \<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
ControlView.h<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:purple'>FORMS</span><span style='font-size:10.0pt;font-family:"Courier New"'>
+= dialog.ui<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>win32
{<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
<span style='color:purple'>INCLUDEPATH</span> += C:/marble/src/lib\<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
C:/marble/src/lib/geodata/data\<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
C:/marble/src/lib/geodata\<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
C:/marble/src/lib/graphicsview\<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
C:/marble-build/src/lib\<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
C:/marble-build/src<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
<span style='color:purple'>LIBS</span> +=
-L"c:\marble-build\src\lib\" "libmarblewidget.dll"<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>}<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>unix
{<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
<span style='color:purple'>LIBS</span> += -L/usr/local/lib \<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>
-lmarblewidget<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>}</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>//////////////////////////////////////////////////////////////<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>// Compile Output<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Running
build steps for project cotm_map...</span></b><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:blue'>Configuration unchanged, skipping qmake step.</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:blue'>Starting: "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" -w</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>mingw32-make:
Entering directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop' <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>C:/Qt/2010.04/mingw/bin/mingw32-make
-f Makefile.Release <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>mingw32-make[1]:
Entering directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop' <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>g++
-c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQT_NEEDS_QMAIN -I"c:\Qt\2010.04\qt\include\QtCore"
-I"c:\Qt\2010.04\qt\include\QtGui" -I"c:\Qt\2010.04\qt\include"
-I"c:\marble\src\lib" -I"c:\marble\src\lib\geodata\data"
-I"c:\marble\src\lib\geodata"
-I"c:\marble\src\lib\graphicsview"
-I"c:\marble-build\src\lib" -I"c:\marble-build\src" -I"c:\Qt\2010.04\qt\include\ActiveQt"
-I"release" -I"." -I"..\cotm_map" -I"."
-I"c:\Qt\2010.04\qt\mkspecs\win32-g++" -o release\dialog.o
..\cotm_map\dialog.cpp <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>g++
-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o release\cotm_map.exe
release/main.o release/dialog.o release/ControlView.o release/moc_dialog.o
release/moc_ControlView.o -L"c:\Qt\2010.04\qt\lib" -lmingw32 -lqtmain
"-Lc:\marble-build\src\lib -lmarblewidget.dll" -lQtGui4 -lQtCore4 <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x93): undefined
reference to `_imp___ZN6Marble16MarbleControlBox19setFileViewTabShownEb' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0xb3): undefined
reference to `_imp___ZN6Marble16MarbleControlBox26setCurrentLocationTabShownEb'
</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0xd3): undefined
reference to `_imp___ZN6Marble16MarbleControlBox18setMapViewTabShownEb' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0xf3): undefined
reference to `_imp___ZN6Marble16MarbleControlBox17setLegendTabShownEb' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x113): undefined
reference to `_imp___ZN6Marble16MarbleControlBox21setNavigationTabShownEb' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x12c): undefined
reference to `_imp___ZN6Marble12MarbleWidget8moveDownEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x144): undefined
reference to `_imp___ZN6Marble12MarbleWidget6moveUpEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x15c): undefined
reference to `_imp___ZN6Marble12MarbleWidget9moveRightEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x174): undefined
reference to `_imp___ZN6Marble12MarbleWidget8moveLeftEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x18c): undefined
reference to `_imp___ZN6Marble12MarbleWidget7zoomOutEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x1a4): undefined
reference to `_imp___ZN6Marble12MarbleWidget6zoomInEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x3cc): undefined
reference to `_imp___ZN6Marble16MarbleControlBoxC1EP7QWidget' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x430): undefined
reference to `_imp___ZN6Marble12MarbleWidgetC1EP7QWidget' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x5a4): undefined
reference to
`_imp___ZN6Marble16MarbleControlBox15addMarbleWidgetEPNS_12MarbleWidgetE' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x5c3): undefined
reference to `_imp___ZN6Marble15MapThemeManagerC1EP7QObject' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x5cf): undefined
reference to `_imp___ZN6Marble15MapThemeManager13mapThemeModelEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x5df): undefined
reference to
`_imp___ZN6Marble16MarbleControlBox16setMapThemeModelEP18QStandardItemModel' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x5eb): undefined
reference to `_imp___ZN6Marble16MarbleControlBox18updateMapThemeViewEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x7d8): undefined
reference to `_imp___ZN6Marble16MarbleControlBoxC1EP7QWidget' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x83c): undefined
reference to `_imp___ZN6Marble12MarbleWidgetC1EP7QWidget' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x9b0): undefined
reference to
`_imp___ZN6Marble16MarbleControlBox15addMarbleWidgetEPNS_12MarbleWidgetE' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>mingw32-make[1]:
Leaving directory `C:/Users/Bryan Greenway/Documents/Qt_Projects/cotm_map-build-desktop'
<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>mingw32-make:
Leaving directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop' <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x9cf): undefined
reference to `_imp___ZN6Marble15MapThemeManagerC1EP7QObject' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x9db): undefined
reference to `_imp___ZN6Marble15MapThemeManager13mapThemeModelEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x9eb): undefined
reference to `_imp___ZN6Marble16MarbleControlBox16setMapThemeModelEP18QStandardItemModel'
</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>release/ControlView.o:ControlView.cpp:(.text+0x9f7): undefined
reference to `_imp___ZN6Marble16MarbleControlBox18updateMapThemeViewEv' </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>collect2: ld returned 1 exit status </span><span style='font-size:
12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>mingw32-make[1]: *** [release\cotm_map.exe] Error 1 </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>mingw32-make: *** [release] Error 2 </span><span style='font-size:
12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>The process "C:/Qt/2010.04/mingw/bin/mingw32-make.exe"
exited with code %2.</span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>Error while building project cotm_map (target: Desktop)</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:red'>When executing build step 'Make'</span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>////////////////////////////////////////////////////////////////<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>My observations:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>It appears to me that I’m not getting my
libmarblewidget library to link. The file: libmarblewidget.dll is
definitely in the c:\marble-build\src\lib\" directory. And the
makefile has the line:<o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>LIBS
= -L"c:\Qt\2010.04\qt\lib"
-lmingw32 -lqtmain "-Lc:\marble-build\src\lib -lmarblewidget.dll"
-lQtGui4 -lQtCore4<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>It also appears to me that I need to link in something for
the MarbleControlBox and MapThemeManager. I’m guessing that these
are not part of the MarbleWidget, so something else will need to be included.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any help/suggestions would be greatly appreciated. I
apologize for the long email.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks very much!!<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Bryan<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>