<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><br><span class="tab">    Hi,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><span class="tab"></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span class="tab">    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 class="tab">qyoto-qtcore</span>-native is part) and rebuilding.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color:
 transparent; font-style: normal;"><span class="tab"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span class="tab">    Dimitar</span><span class="tab"><br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Carlos Machado <metator.pt@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Dimitar Dobrev <dpldobrev@yahoo.com> <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> <br>
<div id="yiv266098391">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 class="yiv266098391gmail_quote">2013/1/14 Dimitar Dobrev <span dir="ltr"><<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a>></span><br>
<blockquote class="yiv266098391gmail_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><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" ymailto="mailto:Kde-bindings@kde.org" target="_blank" href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a><br>
<a rel="nofollow" target="_blank" href="https://mail.kde.org/mailman/listinfo/kde-bindings">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br>
<br></blockquote></div><br>
</div><br><br> </div> </div>  </div></body></html>