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"><<a href="mailto:rbgreenway@gmail.com">rbgreenway@gmail.com</a>></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 "Times New Roman";">
</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 "Times New Roman";">
</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: "Courier New"; color: navy;">#ifndef</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">DIALOG_H</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: navy;">#define</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">DIALOG_H</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: navy;">#include</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;"><QDialog></span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: navy;">#include</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;">"ControlView.h"</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">namespace</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">Ui<span style="color: silver;"> </span><span style="color: black;">{</span></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">class</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">Dialog<span style="color: black;">;</span></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">}</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">namespace</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">Marble<span style="color: black;">{</span></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">class</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">MarbleWidget<span style="color: black;">;</span></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">class</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">{</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">Q_OBJECT</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">public</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">:</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">explicit</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">~</span><span style="font-size: 10pt; font-family: "Courier New";">Dialog<span style="color: black;">();</span></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">private</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">:</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">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: "Courier New"; color: olive;">private</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">slots</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">:</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">void</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">on_QuitPB_clicked<span style="color: black;">();</span></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">};</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">}</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;">//</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;">namespace</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;">Marble</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: navy;">#endif // </span><span style="font-size: 10pt; font-family: "Courier New";">DIALOG_H</span><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: green;"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; 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;">"dialog.h"</span></pre><pre><span style="color: navy;">#include</span><span style="color: silver;"> </span><span style="color: green;">"ui_dialog.h"</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;">&</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;">-></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;">"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></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: "Courier New"; color: navy;">#include</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;"><QtGui/QApplication></span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: navy;">#include</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;">"dialog.h"</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: navy;">#include</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;">"MarbleDebug.h"</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: navy;">#include</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: green;">"MarbleDirs.h"</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">using</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">namespace</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">Marble<span style="color: black;">;</span></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">int</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">{</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">QApplication</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">QString</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; 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></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">mp_dialog<span style="color: black;">-></span>show<span style="color: black;">();</span></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: olive;">return</span><span style="font-size: 10pt; font-family: "Courier New"; color: silver;"> </span><span style="font-size: 10pt; font-family: "Courier New";">a<span style="color: black;">.</span>exec<span style="color: black;">();</span></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; 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: "Courier New"; color: green;">#-------------------------------------------------</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: green;">#</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: green;"># Project created by QtCreator 2010-07-21T16:14:07</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: green;">#</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: green;">#-------------------------------------------------</span><span style="font-size: 10pt; font-family: "Courier New";"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">QT</span><span style="font-size: 10pt; font-family: "Courier New";">
+= core gui</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">TARGET</span><span style="font-size: 10pt; font-family: "Courier New";">
= cotm_map</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">TEMPLATE</span><span style="font-size: 10pt; font-family: "Courier New";">
= app</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">SOURCES</span><span style="font-size: 10pt; font-family: "Courier New";">
+= main.cpp\</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
dialog.cpp \</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
ControlView.cpp</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">HEADERS</span><span style="font-size: 10pt; font-family: "Courier New";">
+= dialog.h \</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
ControlView.h</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New"; color: purple;">FORMS</span><span style="font-size: 10pt; font-family: "Courier New";">
+= dialog.ui</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">win32
{</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
<span style="color: purple;">INCLUDEPATH</span> += C:/marble/src/lib\</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
C:/marble/src/lib/geodata/data\</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
C:/marble/src/lib/geodata\</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
C:/marble/src/lib/graphicsview\</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
C:/marble-build/src/lib\</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
C:/marble-build/src</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
<span style="color: purple;">LIBS</span> += -L"c:\marble-build\src\lib\"
"libmarblewidget.dll"</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">unix
{</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
<span style="color: purple;">LIBS</span> += -L/usr/local/lib \</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">
-lmarblewidget</span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";">}</span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";"> </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: "Times New Roman","serif";">Running
build steps for project cotm_map...</span></b><span style="font-size: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: blue;">Configuration unchanged, skipping qmake step.</span><span style="font-size: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: blue;">Starting: "C:/Qt/2010.04/mingw/bin/mingw32-make.exe" -w</span><span style="font-size: 12pt; font-family: "Times New Roman","serif";"> </span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";">mingw32-make:
Entering directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop' </span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";">C:/Qt/2010.04/mingw/bin/mingw32-make
-f Makefile.Release </span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";">mingw32-make[1]:
Entering directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop' </span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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
</span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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 </span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";">mingw32-make[1]:
Leaving directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop' </span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif";">mingw32-make:
Leaving directory `C:/Users/Bryan
Greenway/Documents/Qt_Projects/cotm_map-build-desktop' </span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: red;">collect2: ld returned 1 exit status </span><span style="font-size: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: red;">mingw32-make[1]: *** [release\cotm_map.exe] Error 1 </span><span style="font-size: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: red;">mingw32-make: *** [release] Error 2 </span><span style="font-size: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; 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: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: red;">Error while building project cotm_map (target: Desktop)</span><span style="font-size: 12pt; font-family: "Times New Roman","serif";"></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: red;">When executing build step 'Make'</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\" directory. And the
makefile has the line:</p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">LIBS
= -L"c:\Qt\2010.04\qt\lib"
-lmingw32 -lqtmain "-Lc:\marble-build\src\lib -lmarblewidget.dll"
-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>