Hi Martin,<div><br></div><div>Attached is my core.sip, I don't think there is anything wrong with it as I just copied the line above and changed the name to qgsgpsdectector.sip</div><div><br></div><div>I was going to post a ticket but I thought I might give it a go first. I picked the GPS ones because they looked pretty good in terms of API layout, as I didn't want to rearrange to much.</div>
<div><br></div><div>- Nathan<br><br><div class="gmail_quote">On Tue, Jan 4, 2011 at 6:45 AM, Martin Dobias <span dir="ltr"><<a href="http://wonder.sk">wonder.sk</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Nathan<br>
<div class="im"><br>
On Mon, Jan 3, 2011 at 11:19 AM, Nathan Woodrow <<a href="mailto:madmanwoo@gmail.com">madmanwoo@gmail.com</a>> wrote:<br>
> Hi all,<br>
> I thought this would be a relatively easy thing to do but I seem to be<br>
> failing somewhere.<br>
<br>
</div>well, usually it's simple, though many times sip doesn't report errors<br>
in a friendly way, so it's easy to get stuck.<br>
<div class="im"><br>
> I'm having some trouble creating a new sip file to expose the GPS stuff to<br>
> python. I have made a sip file to wrap the GPS detector and added it the<br>
> core.sip via %Include qgsgpsdetector.sip but I get a error when running<br>
> Make. My qgsgpsdetector.sip and the make error can be found here<br>
> <a href="http://osgeo.codepad.org/kS63mqND" target="_blank">http://osgeo.codepad.org/kS63mqND</a><br>
> Anyone know what I might be doing wrong?<br>
<br>
</div>Hmm, looks like you've made a syntax error in the python/core/core.sip<br>
file... I would have to see that one.<br>
<br>
Generally the easiest way how to get more classes wrapped is to tell me :-)<br>
Before wrapping the class I usually try to go through API of the class<br>
and improve it slightly if the class is not very python friendly.<br>
<font color="#888888"><br>
Martin<br>
</font></blockquote></div><br></div>