<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><span class="tab">    <br></span><span class="tab">    Hi, Michael,<br><br></span><span class="tab">    Unfortunately I've been busy with other issues and have no updates. In fact, I think you've done further than I did because I never got smokeqt to compile (CMake could not find the Qt libs). However, just the last two days I decided to work on SMOKE for </span>Qt 5 so I'm going to look into it. I'd be really grateful for any advice you may have on building smokeqt with Qt 5.<br><br><span class="tab">    Regards,<br></span><span class="tab">    Dimitar Dobrev</span><span class="tab"></span><span class="tab"></span><span class="tab"><br></span><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> Michael Lawrence <lawrence.michael@gene.com><br> <b><span style="font-weight: bold;">To:</span></b> Dimitar Dobrev <dpldobrev@yahoo.com>; KDE bindings for other programming languages <kde-bindings@kde.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, April 5, 2013 7:55 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Kde-bindings] smokegen: Qt 5 support added<br> </font> </div> <br>
<div id="yiv1605869788"><div dir="ltr"><div><div><div>Hi Dimitar,<br><br></div>Has there been any more progress in updating smokegen for qt5? I made pretty much the same changes as you to get things to compile (before I knew about the branch), but it was segfaulting for me on qtcore, until I made this very likely damaging hack:<br>
<br>diff --git a/kdebindings/generator/type_compiler.cpp b/kdebindings/generator/type_compiler.cpp<br>index 6ebf602..556b1d3 100644<br>--- a/kdebindings/generator/type_compiler.cpp<br>+++ b/kdebindings/generator/type_compiler.cpp<br>
@@ -191,6 +191,9 @@ void TypeCompiler::visitParameterDeclaration(ParameterDeclarationAST* node)<br> <br> void TypeCompiler::visitPtrOperator(PtrOperatorAST* node)<br> {<br>+    if (node->op == 0) {<br>+        return;<br>
+    }<br>     if (token_text(m_session->token_stream->kind(node->op))[0] == '*') {<br>         QPair<bool, bool> cv = m_visitor->parseCv(node->cv);<br>         pointerDepth.append(cv.first);<br>
<br></div>Although it completed, the generated files contain only bindings for QGlobalSpace. I realize that I'm not giving enough details, but I'm just wondering if you've had more luck.<br><br></div>Thanks,<br>
Michael<br></div><div class="yiv1605869788gmail_extra"><br><br><div class="yiv1605869788gmail_quote">On Sat, Jan 26, 2013 at 11:55 AM, 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> wrote:<br>
<blockquote class="yiv1605869788gmail_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>    </span><br><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;"><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>    I've just pushed a new branch called Qt5.0.1 to smokegen. It enables smokegen to compile against Qt 5.0.1. For now it's been tested only on Windows using <a rel="nofollow" target="_blank" href="http://releases.qt-project.org/digia/5.0.1/latest/qt-windows-opensource-5.0.1-mingw47_32-x86-offline-2013-01-25-421.exe">this
 installer</a>.</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman, new york, times, serif;"><span>    Note: CMake failed to find QtCore to include in parser/kdevvarlengtharray.h</span> so I threw out <span style="color:#c0c0c0;"> </span>KDevVarLengthArray and replaced it with QVector. As far as I've seen, <span style="color:#c0c0c0;"> </span>KDevVarLengthArray only has some additional template type for capacity so I guess it's a bit more optimal or something. Anyway, I'm not wasting another second with CMake. If somebody would like to revert to <span style="color:#c0c0c0;"></span>KDevVarLengthArray and fix CMake, that's fine by me.</div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman, new york, times, serif;"><span>    Now working on smokeqt. If there are failures coming from smokegen, any new code will be sent to the same branch (Qt5.0.1).</span></div>
<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>    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></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>
</div><br><br> </div> </div>  </div></body></html>