<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span></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"> ----- Forwarded Message -----<br>  <b><span style="font-weight:bold;">From:</span></b> Dimitar Dobrev <dpldobrev@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Vivek Gani <vivekgani@gmail.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, September 11, 2012 12:33 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Kde-bindings] Issues Building Qyoto (assemblygen) on Mac OSX Lion & 64-bit mono<br> </font> </div> <br><div id="yiv914787765"><div><div style="color:#000;background-color:#fff;font-family:times new
 roman, new york, times, serif;font-size:12pt;">#1: Quite some time ago I merged all get/set methods into properties; in this case you are looking for the QWidget.WindowTitle property; whenever you encounter a missing SetName function, try looking for the Name property;<br>#2: I hit this yesterday and it is a regression that I have introduced. I'll check it tomorrow - I am almost certain when the regression was introduced and I hope to fix the bug quickly.<br><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> Vivek Gani <vivekgani@gmail.com><br> <b><span style="font-weight:bold;">To:</span></b> Dimitar Dobrev
 <dpldobrev@yahoo.com> <br><b><span style="font-weight:bold;">Cc:</span></b> KDE bindings <kde-bindings@kde.org> <br> <b><span style="font-weight:bold;">Sent:</span></b> Tuesday, September 11, 2012 12:08 AM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Kde-bindings] Issues Building Qyoto (assemblygen) on Mac OSX Lion & 64-bit mono<br> </font> </div> <br>Thanks again,<br><br>Just to give a status update of where I am, I started going through the zetcode qyoto tutorial where I started running into new issues.<br><br>the first tutorial code (tooltip) looks like this: <br><br>public class QyotoApp : QWidget {<br><br>  public QyotoApp() {<br><br>   SetWindowTitle("Tooltip"); //compile error here - see issue #1 below<br><br><br><br><br><br><br>   ToolTip = "This is QWidget"; //string outputted wrong - see issue #2 below<br>   Resize(250, 150);<br>   Move(300, 300);<br>   Show();<br><br> 
 }<br><br>public static int Main(String[] args) {<br>  new QApplication(args);<br>  new QyotoApp();<br>  return QApplication.Exec();<br>}<br><br>}<br><br><br>I'm compiling the example via:<br><br>$ dmcs -r:/usr/local/lib/mono/qyoto/qyoto-qtgui.dll tooltip.cs<br><br><br>Issue #1:<br><br>When first compiling I get the following error:<br><br>error CS0103: The name `SetWindowTitle' does not exist in the current context <br><br>This makes some sense after staring at <a rel="nofollow" target="_blank" href="https://qt-project.org/doc/qt-4.8/qwidget.html#windowTitle-prop">https://qt-project.org/doc/qt-4.8/qwidget.html#windowTitle-prop</a> , where SetWindowTitle isn't a public function, it's a Public Slot instead. That said, what's the proper way to call a proper slot in qyoto, especially when you don't need to connect the slot to a dynamic value?<br><br><br>Issue #2:<br><br>Commenting out SetWindowTitle, it does compile successfully and runs, but
 the tooltip
 text looks like unicode jibberish (chinese characters?) as shown in the attached image. I'm trying to see if I'm just not using the correct char types (QString expects unicode).<br><br><br><br><br>-- <br>Vivek Gani<br><br><br>On Monday, September 10, 2012 at 1:32 PM, Dimitar Dobrev wrote:<br><br>> Vivek,<br>> <br>> The key here was this - <a rel="nofollow" target="_blank" href="http://www.mono-project.com/Interop_with_Native_Libraries#lib-name-note">http://www.mono-project.com/Interop_with_Native_Libraries#lib-name-note</a>. As you saw, Qyoto used to append a "2" after "so" - ".so.2". As you can read at the link, this caused the need of the DLL map (now removed) which in turn prevented the *.dylibs from being found because they were not mentioned in it. So I needed to get rid of this ".2" at the end. That's why I simply removed these properties:<br>> <br>> VERSION 2.0.0<br>> SOVERSIOH 2<br>> <br>> from the CMake lists so that I
 get just
 <libname>.so. As in all lists except one these were the only properties specified, I deleted the whole set_target_properties statements.<br>> <br>> Nice to hear you are doing some tests. Good luck and be sure to write here about any problems you may find.<br>> <br>> From: Vivek Gani <<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a> (mailto:<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a>)><br>> To: Dimitar Dobrev <<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a> (mailto:<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a>)>; KDE bindings for other programming languages <<a rel="nofollow"
 ymailto="mailto:kde-bindings@kde.org" target="_blank" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a> (mailto:<a rel="nofollow" ymailto="mailto:kde-bindings@kde.org" target="_blank" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a>)> <br>> Sent: Monday, September 10, 2012 3:46 AM<br>> Subject: Re: [Kde-bindings] Fw: Issues Building Qyoto (assemblygen) on Mac OSX Lion & 64-bit mono<br>> <br>> Hey Dimitar, <br>> <br>> Thanks, make & make install now work! <br>> <br>> Just curious, how'd you reason that you just needed to remove the target properties field? I'm still a bit of a newbie to cmake. <br>> <br>> Going to try some code tests (maybe attempt compiling synapse.im (<a rel="nofollow" target="_blank" href="http://synapse.im/">http://synapse.im</a>)) soon.<br>> <br>> --<br>> Vivek Gani<br>> <a rel="nofollow" ymailto="mailto:vivek@gani.org" target="_blank"
 href="mailto:vivek@gani.org">vivek@gani.org</a> (mailto:<a rel="nofollow" ymailto="mailto:vivek@gani.org" target="_blank" href="mailto:vivek@gani.org">vivek@gani.org</a>)<br>> <br>> <br>> On Sunday, September 9, 2012 at 2:51 PM, Dimitar Dobrev wrote:<br>> <br>> > <br>> >
 <br>> > ----- Forwarded Message -----<br>> > From: Dimitar Dobrev <<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a> (mailto:<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a>) (mailto:<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a>)><br>> > To: Vivek Gani <<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a> (mailto:<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a>) (mailto:<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a>)> <br>> > Sent: Sunday,
 September 9, 2012 10:50 PM<br>> > Subject: Re: [Kde-bindings] Issues Building Qyoto (assemblygen) on Mac OSX Lion & 64-bit mono<br>> > <br>> > I've just pushed some
 changes that remove the requirement for any DLL maps (just pull and rebuild assemblygen), could you try them?<br>> > <br>> > From: Vivek Gani <<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a> (mailto:<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a>) (mailto:<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a>)><br>> > To: Dimitar Dobrev <<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a> (mailto:<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a>) (mailto:<a rel="nofollow" ymailto="mailto:dpldobrev@yahoo.com" target="_blank"
 href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a>)>; KDE bindings for other programming languages <<a rel="nofollow" ymailto="mailto:kde-bindings@kde.org" target="_blank" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a> (mailto:<a rel="nofollow" ymailto="mailto:kde-bindings@kde.org" target="_blank" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a>) (mailto:<a rel="nofollow" ymailto="mailto:kde-bindings@kde.org" target="_blank" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a>)> <br>> > Sent: Sunday, September 9, 2012 7:19 AM<br>> > Subject: Re: [Kde-bindings] Issues Building Qyoto (assemblygen) on Mac OSX Lion & 64-bit mono<br>> > <br>> > so far no luck, I tried your suggestion of removing the suffixes in the dllimport AND not adding dllmap to the app.config, and of course renaming .so.2 references to .dylib. <br>> > <br>> > Also tried adding the dllmap to the
 app.config anyways, still didn't fix it. <br>> > <br>> > -- <br>> > Vivek Gani<br>> > <br>> > <br>> > On Saturday, September 8, 2012 at 6:36 PM, Vivek Gani wrote:<br>> > <br>> > > Thanks for the fast
 response Dimitar! I'll try it out and give you an update <br>> > > <br>> > > --<br>> > > Vivek Gani<br>> > > <br>> > > <br>> > > On Saturday, September 8, 2012 at 6:20 PM, Dimitar Dobrev wrote:<br>> > > <br>> > > > Hi,<br>> > > > <br>> > > > You are correct: you should add <dllmap dll="assemblygen-native" target="libassemblygen-native.dylib" /> to assemblygen/src/app.config. Also, do the same for each assemblygen/assemblies/qyoto-<QtModule>/CMakeLists.txt (there is an <dllmap dll=\"qyoto-qtcore-native\" target=\"libqyoto-qtcore-native.so.2\"/>, just change ".so.2" to ".dylib").<br>> > > > <br>> > > > I was going to send patches but these lines at the link you posted:<br>> > > > <br>> > > > <br>> > > > <br>> > > > Instead, just use the library name itself, without any
 prefixes or suffixes, and rely on the runtime to find the appropriate library at runtime. For example: <br>> > > > [DllImport ("MyLibrary")] private static extern void Frobnicate ();<br>> > > > Then, you just need to provide MyLibrary.dll for Windows platforms, libMyLibrary.so for Unix platforms, and libMyLibrary.dylib for Mac OS X platforms <br>> > > > <br>> > > > <br>> > > > <br>> > > > suggest that no DLL maps are needed because if the names do not contain dots (and in our case they don't) the "lib" prefix and the ".dylib" suffix are automatically resolved. So I'd like to dig further into the issue and make this work with no maps if possible.<br>> > > > <br>> > > > From: Vivek Gani <<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a> (mailto:<a rel="nofollow"
 ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a>) (mailto:<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a>) (mailto:<a rel="nofollow" ymailto="mailto:vivekgani@gmail.com" target="_blank" href="mailto:vivekgani@gmail.com">vivekgani@gmail.com</a>)><br>> > > > To: <a rel="nofollow" ymailto="mailto:kde-bindings@kde.org" target="_blank" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a> (mailto:<a rel="nofollow" ymailto="mailto:kde-bindings@kde.org" target="_blank" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a>) (mailto:<a rel="nofollow" ymailto="mailto:kde-bindings@kde.org" target="_blank" href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a>) (mailto:<a rel="nofollow" ymailto="mailto:kde-bindings@kde.org" target="_blank"
 href="mailto:kde-bindings@kde.org">kde-bindings@kde.org</a>) <br>> > > > Sent: Sunday, September 9, 2012 12:05 AM<br>> > > > Subject: [Kde-bindings] Issues Building Qyoto (assemblygen) on Mac OSX Lion & 64-bit mono<br>> > > > <br>> > > > Hey
 all, <br>> > > > <br>> > > > I'm currently having some issues which I think I'm close to fixing, but was wondering if anyone has already encountered it before:<br>> > > > <br>> > > > The Issue:<br>> > > > <br>> > > > I can successfully compile smokegen & smokeqt (using homebrew), but when i make assemblygen it seems setup to expect a .dll. <br>> > > > <br>> > > > [ 1%] Built target assemblygen<br>> > > > [ 2%] Building CXX object src/CMakeFiles/assemblygen-native.dir/assemblygen-native.cpp.o<br>> > > > Linking CXX shared library ../bin/libassemblygen-native.dylib<br>> > > > [ 2%] Built target assemblygen-native<br>> > > > [ 4%] Built target QyotoGenerator<br>> > > > [ 5%] Building CXX object src/plugins/qyoto/CMakeFiles/qyotogenerator-native.dir/qyotogenerator-native.cpp.o<br>> > > >
 /Users/xxxx/projects/qyotoTest/assemblygen/src/plugins/qyoto/qyotogenerator-native.cpp:33:16: warning: <br>> > > > initialization of pointer of type 'const QMetaObject *' to null from a constant<br>> > > > boolean expression [-Wbool-conversions]<br>> > > > return false;<br>> > > > ^~~~~<br>> > > > /Users/xxxx/projects/qyotoTest/assemblygen/src/plugins/qyoto/qyotogenerator-native.cpp:37:16: warning: <br>> > > > initialization of pointer of type 'const QMetaObject *' to null from a constant<br>> > > > boolean expression [-Wbool-conversions]<br>> > > > return false;<br>> > > > ^~~~~<br>> > > > 2 warnings generated.<br>> > > > Linking CXX shared library ../../../bin/libqyotogenerator-native.dylib<br>> > > > [ 5%] Built target qyotogenerator-native<br>> > > > [ 7%] Generating
 ../../bin/qyoto-qtcore.dll<br>> > > > Unhandled Exception: System.DllNotFoundException: assemblygen-native<br>> > > > at (wrapper managed-to-native) MainClass:InitSmoke (string)<br>> > > > at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 <br>> > > > [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: assemblygen-native<br>> > > > at (wrapper managed-to-native) MainClass:InitSmoke (string)<br>> > > > at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 <br>> > > > make[2]: *** [bin/qyoto-qtcore.dll] Error 1<br>> > > > make[1]: *** [assemblies/qyoto-qtcore/CMakeFiles/qyoto-qtcore.dir/all] Error 2<br>> > > > make: *** [all] Error 2<br>> > > > <br>> > > > <br>> > > > <br>> > > > <br>> > > > <br>> > > >
 <br>> > > > after staring at <a rel="nofollow" target="_blank" href="http://www.mono-project.com/Interop_with_Native_Libraries">http://www.mono-project.com/Interop_with_Native_Libraries</a> , I realize I need something along the lines of<br>> > > > <br>> > > > <configuration> <dllmap dll="assemblygen-native" target="libassemblygen-native.dylib" /> </configuration><br>> > > > <br>> > > > in a cmakelist file. Any tips on how to write this in? <br>> > > > <br>> > > > <br>> > > > my setup so far:<br>> > > > <br>> > > > install qt 8.4.2<br>> > > > $ brew install qt<br>> > > > <br>> > > > compile mono using homebrew (using the adamv/alt keg). <br>> > > > $ brew install mono<br>> > > > <br>> > > > compile smokegen for 64-bit:<br>> > > > $
 cmake -D
 "CMAKE_OSX_ARCHITECTURES:STRING=amd64" .<br>> > > > $ make install<br>> > > > <br>> > > > compile smokeqt:<br>> > > > $ cmake -DSmoke_DIR="$PWD/../smokegen/cmake" .<br>> > > > $ make install<br>> > > > <br>> > > > Try to compile qyoto for 64-bit<br>> > > > $ cmake -D "CMAKE_OSX_ARCHITECTURES:STRING=x86_64" .<br>> > > > $ make install<br>> > > > <br>> > > > <br>> > > > NOTE: it seems like others have had this issue before too - check out <br>> > > > <br>> > > > --<br>> > > > Vivek Gani<br>> > > > <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> (mailto:<a rel="nofollow" ymailto="mailto:Kde-bindings@kde.org" target="_blank" href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a>) (mailto:<a rel="nofollow" ymailto="mailto:Kde-bindings@kde.org" target="_blank" href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a>) (mailto:<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>> > > > <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> (mailto:<a rel="nofollow" ymailto="mailto:Kde-bindings@kde.org" target="_blank" href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a>) (mailto:<a rel="nofollow" ymailto="mailto:Kde-bindings@kde.org" target="_blank" href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a>) (mailto:<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>> > <br>> > <br>> > <br>> > <br>> > <br>> > <br>> > <br>> > <br>> > <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> (mailto:<a rel="nofollow" ymailto="mailto:Kde-bindings@kde.org" target="_blank" href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a>) (mailto:<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><br><br><br> </div> </div>  </div></div></div><br><br> </div> </div>  </div></body></html>