<div dir="ltr">Maybe just build it in app at the moment until we have a better idea of how it all works together.  We can refactor it out and up later if we need to.<div><br></div><div>- Nathan<br><div class="gmail_extra">

<br><br><div class="gmail_quote">On Mon, May 20, 2013 at 2:05 PM, Benedict Holland <span dir="ltr"><<a href="mailto:benedict.m.holland@gmail.com" target="_blank">benedict.m.holland@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">So I am trying to create data frames with a QgsMapCanvas. I assumed this went under core but it might touch too much to not go under app for the time being or perhaps even gui. I only asked after about an hour of trying to figure out a linker error before sticking it under app. I think I am going to get a basic set of functions working and we can figure out where QgsDataFrame actually goes. <div>


<br></div><div>Thanks for the help. </div><div>~Ben</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 19, 2013 at 11:48 PM, Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Benedict,<div><br></div><div>The core library is not meant to just be non-gui bits, hence why we have core and gui.  As QgsMapCanvas is a class in gui you can't use it in core.  </div>


<div>

<br></div><div>What did you have in mind we might be able to work out a way to fit it in.</div><div><br></div><div>Regards,</div><div>Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>




On Mon, May 20, 2013 at 1:32 PM, Benedict Holland <span dir="ltr"><<a href="mailto:benedict.m.holland@gmail.com" target="_blank">benedict.m.holland@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>

<div dir="ltr">Hi All,<div><br></div><div>I am trying to create a brand new class for the core section of the code but I am getting linker errors. I am trying to include gui/qgsmapcanvas.h and then create a QgsMapCanvas object but I am getting an error which says that:</div>






<div><br></div><div>
<p style="margin:0px"><span style="color:rgb(190,20,20)">undefined reference to `QgsMapCanvas::QgsMapCanvas(QWidget*, char const*)'</span></p><p style="margin:0px"><br></p><p style="margin:0px">I am guessing this is because I am trying to use an object found in the gui library but somehow isn't getting linked correctly to the core library. I added the core class I created to the CMakeList.txt and it seems to build so I assume I did that correctly. Adding ../gui in the INCLUDE_DIRECTORIES section didn't seem to help but at least I can now refer to the header as just "qgsmapcanvas.h" instead of "../gui/qgsmapcanvas.h"</p>





<p style="margin:0px"><br></p><p style="margin:0px">Basically, I can't figure out the magic that is required to link a class from the gui library to the core library. What do I do? </p><p style="margin:0px"><br></p><p style="margin:0px">





Thanks,</p><p style="margin:0px">~Ben</p></div></div>
<br></div></div>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>