Hi,<br><br>You are right. I had an old copy of those libraries on my project folder by mistake. Everything is fine now. Sorry for the trouble.<br><br>Regards,<br><br>Mach<br><br><div class="gmail_quote">2013/1/15 Dimitar Dobrev <span dir="ltr"><<a href="mailto:dpldobrev@yahoo.com" target="_blank">dpldobrev@yahoo.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><br><span> Hi,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span> I think there is something wrong with your qyoto-qtcore</span>-native. It is an old version and this is why it passes the no longer existing Qyoto namespace. Please try cleaning assemblygen (of which <span>qyoto-qtcore</span>-native is part) and rebuilding.</div>
<span class="HOEnZb"><font color="#888888"><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<span> Dimitar</span><span><br></span></div></font></span><div class="hm HOEnZb"><div><br></div> </div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div class="hm HOEnZb"> </div><div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<div class="hm HOEnZb"> <div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold">From:</span></b> Carlos Machado <<a href="mailto:metator.pt@gmail.com" target="_blank">metator.pt@gmail.com</a>><br>
<b><span style="font-weight:bold">To:</span></b> Dimitar Dobrev <<a href="mailto:dpldobrev@yahoo.com" target="_blank">dpldobrev@yahoo.com</a>> <br> <b><span style="font-weight:bold">Sent:</span></b> Tuesday, January 15, 2013 5:18 AM<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Kde-bindings] Qyoto: Linux build - fixed
QX11EmbedWidget/QX11EmbedContainer<br> </font> </div></div><div><div class="h5"> <br>
<div>Hi,<br><br>I've compiled smokegen, smokeqt and assemblygen successfully on Ubuntu 12.10 32 bits. Thanks for the work.<br>Now I'm getting runtime exceptions on very simple examples like this one:<br><br>using System;<br>
using QtGui;<br><br>namespace qttest {<br> class Program {<br> <br> [STAThread]<br> static int Main(String[] args) {<br> QApplication app = new QApplication(args);<br><br> QMainWindow win = new QMainWindow();<br>
win.ShowEvent += (sender, e) => {<br> Console.WriteLine("Main Window showned.");<br> };<br> win.Resize(640, 480);<br> win.Show();<br> return QApplication.Exec();<br>
}<br> }<br>}<br><br>It throws a NRE when calling win.Show() with the following message:<br><br>System.NullReferenceException: Object reference not set to an instance of an object<br> at QtCore.SmokeMarshallers.CreateInstance (System.String className, IntPtr smokeObjectPtr) [0x00000] in <filename unknown>:0<br>
at QtCore.SmokeMarshallers.CreateInstance (System.String className, IntPtr smokeObjectPtr) [0x00000] in <filename unknown>:0<br> at (wrapper native-to-managed) QtCore.SmokeMarshallers:CreateInstance (intptr,intptr)<br>
at (wrapper managed-to-native) QtCore.SmokeInvocation:CallSmokeMethod (intptr,int,intptr,intptr,int,intptr)<br> at QtCore.SmokeInvocation.Invoke (System.String mungedName, System.String signature, System.Type returnType, Boolean refArgs, System.Object[] args) [0x00000] in <filename unknown>:0<br>
at QtGui.QWidget.Show () [0x00000] in <filename unknown>:0<br> at qttest.Program.Main (System.String[] args) [0x00042]<br><br>There's also another message printed to output:<br><br>CreateInstance() ** Missing class ** Qyoto+QEvent, qyoto-qtcore<br>
<br>I went through the SmokeMarshallers code but i couldn't figure out where the namespace Qyoto comes from...<br><br>Regards,<br><br>Mach<br><br><div>2013/1/14 Dimitar Dobrev <span dir="ltr"><<a rel="nofollow" href="mailto:dpldobrev@yahoo.com" target="_blank">dpldobrev@yahoo.com</a>></span><br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span> <br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<span> Hi all,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<span> With Steven Boswell's help, I've fixed the </span>QX11EmbedWidget/QX11EmbedContainer problem when building Qyoto on Linux. Now the classes are no longer excluded and build with no
errors.</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span> Steven, I've fixed this by checking for nested types when generating signals. I've taken a look at your patch and it seems OK. But there are many changes and I wanted to think on it a little longer, to see if it's possible to exclude a class at a single central place. About this other fix I've applied, I had to do it anyway because these two classes were only blacklisted because of it, and there may be other similar in future Qt versions.</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<span> Regards,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span> Dimitar Dobrev</span><br><span> <br></span></div></div>
</div><br>_______________________________________________<br>
Kde-bindings mailing list<br>
<a rel="nofollow" href="mailto:Kde-bindings@kde.org" target="_blank">Kde-bindings@kde.org</a><br>
<a rel="nofollow" href="https://mail.kde.org/mailman/listinfo/kde-bindings" target="_blank">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br>
<br></blockquote></div><br>
</div><br><br> </div></div></div> </div> </div></div></blockquote></div><br>