Hi Bryan,<br><br>I did not read your code but I am not sure that you are taking a good path to do that.<br>For me It looks like you are trying to link your apps against a wrong version of the desired object,<br>like note compiled with the same compiler and/or with missing/wrong flag during the builing process of marble itself.<br>

<br>Christophe do you still have your  snippet of code to do what he want ?<br><br>Good luck.<br><br>Sylvain<br><br><div class="gmail_quote">2010/7/23 Bryan Greenway <span dir="ltr">&lt;<a href="mailto:rbgreenway@gmail.com">rbgreenway@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">Hello,</p>

<p class="MsoNormal"> </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:</p>

<p class="MsoNormal"> </p>

<p><span>1.<span style="font: 7pt &quot;Times New Roman&quot;;">      
</span></span>Followed instructions for downloading and compiling
Marble on Windows.  That seemed to go fine.</p>

<p class="MsoNormal"> </p>

<p><span>2.<span style="font: 7pt &quot;Times New Roman&quot;;">      
</span></span>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.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">////////////////////////////////</p>

<p class="MsoNormal">// dialog.h</p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">#ifndef</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">DIALOG_H</span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">#define</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">DIALOG_H</span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">#include</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">&lt;QDialog&gt;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">#include</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">&quot;ControlView.h&quot;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">namespace</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Ui<span style="color: silver;"> </span><span style="color: black;">{</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">class</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Dialog<span style="color: black;">;</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">}</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">namespace</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Marble<span style="color: black;">{</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">class</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">MarbleWidget<span style="color: black;">;</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">class</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">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></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">{</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">Q_OBJECT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">public</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">:</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">explicit</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">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;">&amp;</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></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">~</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Dialog<span style="color: black;">();</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">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></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">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;">-&gt;</span>marbleWidget<span style="color: black;">();}</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">private</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">:</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Ui<span style="color: black;">::</span>Dialog<span style="color: silver;"> </span><span style="color: black;">*</span>ui<span style="color: black;">;</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">ControlView<span style="color: silver;"> </span><span style="color: black;">*</span>m_controlView<span style="color: black;">;</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">private</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">slots</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">:</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">void</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">on_QuitPB_clicked<span style="color: black;">();</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">};</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">}</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">//</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">namespace</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">Marble</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: navy;">#endif // </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">DIALOG_H</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: green;"></span></p>



<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: green;"> </span></p>

<p class="MsoNormal">////////////////////////////////</p>

<p class="MsoNormal">// dialog.cpp</p>

<pre><span style="color: navy;">#include</span><span style="color: silver;"> </span><span style="color: green;">&quot;dialog.h&quot;</span></pre><pre><span style="color: navy;">#include</span><span style="color: silver;"> </span><span style="color: green;">&quot;ui_dialog.h&quot;</span></pre>

<pre><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></pre><pre>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;">&amp;</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></pre>

<pre><span style="color: silver;">    </span><span style="color: purple;">QDialog</span><span style="color: black;">(</span>parent<span style="color: black;">),</span></pre><pre><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></pre>

<pre><span style="color: black;">{</span></pre><pre><span style="color: silver;">    </span>ui<span style="color: black;">-&gt;</span>setupUi<span style="color: black;">(</span><span style="color: olive;">this</span><span style="color: black;">);</span></pre>

<pre><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></pre>

<pre><span style="color: silver;">    </span>setWindowTitle<span style="color: black;">(</span><span style="color: green;">&quot;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&quot;</span><span style="color: black;">);</span></pre>

<pre><span style="color: black;">}</span></pre><pre>Dialog<span style="color: black;">::~</span>Dialog<span style="color: black;">()</span></pre><pre><span style="color: black;">{</span></pre><pre><span style="color: silver;">    </span><span style="color: olive;">delete</span><span style="color: silver;"> </span>ui<span style="color: black;">;</span></pre>

<pre><span style="color: black;">}</span></pre><pre><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></pre>

<pre><span style="color: black;">{</span></pre><pre><span style="color: silver;">    </span>exit<span style="color: black;">(</span><span style="color: navy;">0</span><span style="color: black;">);</span></pre><pre><span style="color: black;">}</span></pre>



<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">////////////////////////////////</p>

<p class="MsoNormal">// main.cpp</p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">#include</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">&lt;QtGui/QApplication&gt;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">#include</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">&quot;dialog.h&quot;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">#include</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">&quot;MarbleDebug.h&quot;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: navy;">#include</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">&quot;MarbleDirs.h&quot;</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">using</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">namespace</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">Marble<span style="color: black;">;</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">int</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">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></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">{</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">QApplication</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">a<span style="color: black;">(</span>argc<span style="color: black;">,</span><span style="color: silver;"> </span>argv<span style="color: black;">);</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">QString</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">marbleDataPath<span style="color: silver;"> </span><span style="color: black;">=</span><span style="color: silver;"> </span><span style="color: green;">&quot;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&quot;</span><span style="color: black;">;</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">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></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">mp_dialog<span style="color: black;">-&gt;</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></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">mp_dialog<span style="color: black;">-&gt;</span>show<span style="color: black;">();</span></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;">    </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: olive;">return</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: silver;"> </span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">a<span style="color: black;">.</span>exec<span style="color: black;">();</span></span></p>



<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: black;">}</span></p>

<p class="MsoNormal">////////////////////////////////</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">// .pro file</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">#-------------------------------------------------</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">#</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;"># Project created by QtCreator 2010-07-21T16:14:07</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">#</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: green;">#-------------------------------------------------</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">QT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">      
+= core gui</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">TARGET</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">
= cotm_map</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">TEMPLATE</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">
= app</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">SOURCES</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">
+= main.cpp\</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">       
dialog.cpp \</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
ControlView.cpp</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">HEADERS</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> 
+= dialog.h \</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
ControlView.h</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: purple;">FORMS</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
+= dialog.ui</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">win32
{</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
<span style="color: purple;">INCLUDEPATH</span> += C:/marble/src/lib\</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">               
C:/marble/src/lib/geodata/data\</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">               
C:/marble/src/lib/geodata\</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">               
C:/marble/src/lib/graphicsview\</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">               
C:/marble-build/src/lib\</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">               
C:/marble-build/src</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
<span style="color: purple;">LIBS</span> += -L&quot;c:\marble-build\src\lib\&quot;
&quot;libmarblewidget.dll&quot;</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">}</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">unix
{</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
<span style="color: purple;">LIBS</span> += -L/usr/local/lib \</span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   
-lmarblewidget</span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">}</span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"> </span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">//////////////////////////////////////////////////////////////</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">// Compile Output</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Running
build steps for project cotm_map...</span></b><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: blue;">Configuration unchanged, skipping qmake step.</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: blue;">Starting: &quot;C:/Qt/2010.04/mingw/bin/mingw32-make.exe&quot; -w</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"> </span></p>



<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">mingw32-make:
Entering directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop&#39; </span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">C:/Qt/2010.04/mingw/bin/mingw32-make
-f Makefile.Release </span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">mingw32-make[1]:
Entering directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop&#39; </span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">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&quot;c:\Qt\2010.04\qt\include\QtCore&quot;
-I&quot;c:\Qt\2010.04\qt\include\QtGui&quot;
-I&quot;c:\Qt\2010.04\qt\include&quot; -I&quot;c:\marble\src\lib&quot;
-I&quot;c:\marble\src\lib\geodata\data&quot; -I&quot;c:\marble\src\lib\geodata&quot;
-I&quot;c:\marble\src\lib\graphicsview&quot; -I&quot;c:\marble-build\src\lib&quot;
-I&quot;c:\marble-build\src&quot;
-I&quot;c:\Qt\2010.04\qt\include\ActiveQt&quot; -I&quot;release&quot;
-I&quot;.&quot; -I&quot;..\cotm_map&quot; -I&quot;.&quot;
-I&quot;c:\Qt\2010.04\qt\mkspecs\win32-g++&quot; -o release\dialog.o ..\cotm_map\dialog.cpp
</span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">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&quot;c:\Qt\2010.04\qt\lib&quot; -lmingw32 -lqtmain
&quot;-Lc:\marble-build\src\lib -lmarblewidget.dll&quot; -lQtGui4 -lQtCore4 </span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x93): undefined
reference to `_imp___ZN6Marble16MarbleControlBox19setFileViewTabShownEb&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0xb3): undefined
reference to `_imp___ZN6Marble16MarbleControlBox26setCurrentLocationTabShownEb&#39;
</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0xd3): undefined
reference to `_imp___ZN6Marble16MarbleControlBox18setMapViewTabShownEb&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0xf3): undefined
reference to `_imp___ZN6Marble16MarbleControlBox17setLegendTabShownEb&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x113): undefined
reference to `_imp___ZN6Marble16MarbleControlBox21setNavigationTabShownEb&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x12c): undefined
reference to `_imp___ZN6Marble12MarbleWidget8moveDownEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x144): undefined
reference to `_imp___ZN6Marble12MarbleWidget6moveUpEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x15c): undefined
reference to `_imp___ZN6Marble12MarbleWidget9moveRightEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x174): undefined
reference to `_imp___ZN6Marble12MarbleWidget8moveLeftEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x18c): undefined
reference to `_imp___ZN6Marble12MarbleWidget7zoomOutEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x1a4): undefined
reference to `_imp___ZN6Marble12MarbleWidget6zoomInEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x3cc): undefined
reference to `_imp___ZN6Marble16MarbleControlBoxC1EP7QWidget&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x430): undefined
reference to `_imp___ZN6Marble12MarbleWidgetC1EP7QWidget&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x5a4): undefined
reference to `_imp___ZN6Marble16MarbleControlBox15addMarbleWidgetEPNS_12MarbleWidgetE&#39;
</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x5c3): undefined
reference to `_imp___ZN6Marble15MapThemeManagerC1EP7QObject&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x5cf): undefined reference
to `_imp___ZN6Marble15MapThemeManager13mapThemeModelEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x5df): undefined
reference to
`_imp___ZN6Marble16MarbleControlBox16setMapThemeModelEP18QStandardItemModel&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x5eb): undefined
reference to `_imp___ZN6Marble16MarbleControlBox18updateMapThemeViewEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x7d8): undefined
reference to `_imp___ZN6Marble16MarbleControlBoxC1EP7QWidget&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x83c): undefined
reference to `_imp___ZN6Marble12MarbleWidgetC1EP7QWidget&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x9b0): undefined
reference to
`_imp___ZN6Marble16MarbleControlBox15addMarbleWidgetEPNS_12MarbleWidgetE&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">mingw32-make[1]:
Leaving directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop&#39; </span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">mingw32-make:
Leaving directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop&#39; </span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x9cf): undefined
reference to `_imp___ZN6Marble15MapThemeManagerC1EP7QObject&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x9db): undefined
reference to `_imp___ZN6Marble15MapThemeManager13mapThemeModelEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x9eb): undefined
reference to
`_imp___ZN6Marble16MarbleControlBox16setMapThemeModelEP18QStandardItemModel&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">release/ControlView.o:ControlView.cpp:(.text+0x9f7): undefined
reference to `_imp___ZN6Marble16MarbleControlBox18updateMapThemeViewEv&#39; </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">collect2: ld returned 1 exit status </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">mingw32-make[1]: *** [release\cotm_map.exe] Error 1 </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">mingw32-make: *** [release] Error 2 </span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>



<p class="MsoNormal"><b><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">The process &quot;C:/Qt/2010.04/mingw/bin/mingw32-make.exe&quot;
exited with code %2.</span></b><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>

<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">Error while building project cotm_map (target: Desktop)</span><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"></span></p>



<p class="MsoNormal"><span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: red;">When executing build step &#39;Make&#39;</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">////////////////////////////////////////////////////////////////</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">My observations:</p>

<p class="MsoNormal"> </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\&quot; directory.  And the
makefile has the line:</p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">LIBS       
=        -L&quot;c:\Qt\2010.04\qt\lib&quot;
-lmingw32 -lqtmain &quot;-Lc:\marble-build\src\lib -lmarblewidget.dll&quot;
-lQtGui4 -lQtCore4</span></p>

<p class="MsoNormal"> </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.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Any help/suggestions would be greatly appreciated.  I
apologize for the long email.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks very much!!</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Bryan</p>

<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
Marble-devel mailing list<br>
<a href="mailto:Marble-devel@kde.org">Marble-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/listinfo/marble-devel</a><br>
<br></blockquote></div><br>