[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] Qyoto on Windows
From:       Steven Boswell II <ulatekh () yahoo ! com>
Date:       2011-12-02 13:50:00
Message-ID: 1322833800.20740.YahooMailNeo () web36908 ! mail ! mud ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


OK, I'll try your changes sometime today.

I wanted to build my own binaries because I wanted the opportunity to 
track down bugs.  Your binaries aren't totally functional yet, after 
all.  Also, I was hoping that someone on this mailing list would know how to modify \
the existing projects the right way to cope with the Windows build issues.


Looking forward to your complete build instructions.

Steven Boswell



________________________________
 From: Dimitar Dobrev <dpldobrev@yahoo.com>
To: Steven Boswell II <ulatekh@yahoo.com>; KDE bindings for other programming \
                languages <kde-bindings@kde.org> 
Sent: Friday, December 2, 2011 1:12 AM
Subject: Re: [Kde-bindings] Qyoto on Windows
 

Make sure you check your /lib dir as well, most files are sent there (in fact, just \
the qyoto-*-native.dll libs are placed in /bin). Another thing: the generated managed \
assemblies P/Invoke qyoto-*-native.dll while the compiled libs are named \
libqyoto-*-native.dll. To avoid this, after you generate you CMake files for Qyoto do \
a Find and Replace of "libqyoto" with "qyoto" in all text files  (Notepad++ can do \
this) in your build dir. Sorry for not posting all of these earlier but I didn't \
quite have the time. Besides, building Qyoto on Windows was quite a horrible \
experience and I thought nobody would be willing to do this when there are binaries \
(my binaries) available.



________________________________
 From: Steven Boswell II <ulatekh@yahoo.com>
To: KDE bindings <kde-bindings@kde.org> 
Sent: Thursday, December 1, 2011 11:53 PM
Subject: Re: [Kde-bindings] Qyoto on Windows
 

I got qyoto to build under Windows, but it's not running.  Again, I followed the \
spirit of the instructions that Dimitar previously posted to this list regarding how \
to build smokegen.

First of all, it appears that qyoto expects smokegen and smokeqt to be installed to \
the same directory.  (It was looking for the smokeqt DLLs in the smokegen directory \
tree.)  So I rebuilt smokegen and installed it in c:\qtcs_stuff\SMOKEQT4 .

DBus doesn't exist under Windows, so I hacked out the references to \
SMOKE_QTDBUS_LIBRARY and src/qdbus_interop.cpp from CMakeLists.txt .  I'm sure there \
must be a proper way to detect that DBus is missing in the CMake files and to dike \
this out properly, but I only saw CMake for the first time a few days ago.

I had to add ARCHIVE DESTINATION, set to the same value as LIBRARY DESTINATION, in \
all the places that CMake complained that it was missing. I had to change \
Q_DECL_IMPORT to Q_DECL_EXPORT on the extern reference to Qyoto_handlers in qyoto.cpp \
, to avoid linker errors.  (This may be a general bug fix.)

I had to undefine QDESIGNER_UILIB_EXPORT in ui4.h , to avoid linker errors.


CMake kept setting CMAKE_CSharp_COMPILER to MS.NET's 2.0 compiler.  It was supposedly \
getting that from the CSC environment variable, though no such variable appears to be \
defined on my system.  I finally hacked the code to find MS.NET's 3.5 compiler.  My \
installation of MonoDevelop apparently didn't come with the Mono C# compilers, which \
seems weird to me.

For some reason, the C# compiler ignored the subdirectories that the .cs files were \
in, and instead tried to find everything at the root.  So I just cd'd to the qyoto \
directory and ran "ln */*.cs ." from MinGW.  I had to do that for the qtscript, \
qttest, qtuitools, and qtwebkit directories too.

After all this, it built, and I installed it to the same directory that contains the \
smokegen and smokeqt packages.

When I tried to run my C# project with the packages I had just built, it died quickly \
because it couldn't find libqyoto.dll .  There's a libqyoto.dll.a in my bin \
directory, but the DLL itself it missing.  It's in my qyoto build directory, though, \
so I just copied it myself.  But still, it complains that it can't find libqyoto.dll \
.


-----

So there you go, kdebindings mailing list -- this is where Dimitar and I have gotten \
to with our attempt to build Qyoto for Windows.  I'm sure there are people out there \
that have proper solutions to a lot of these problems.  Are you willing to help?

Steven Boswell



________________________________
 From: Steven Boswell II <ulatekh@yahoo.com>
To: Dimitar Dobrev <dpldobrev@yahoo.com>; KDE bindings <kde-bindings@kde.org> 
Sent: Thursday, December 1, 2011 10:51 AM
Subject: Re: Qyoto on Windows
 

OK, I finally got smokeqt to build under Windows, following the spirit of the \
instructions you previously posted to this list regarding how to build smokegen.

Setting SMOKE_BASE_LIBRARY got rid of the "Could not find SMOKE" message.  For some \
reason, Smoke_DIR keeps getting set to the location of my built smokegen, instead of \
my installed smokegen, so I keep having to change it by hand.  Finally, I renamed \
"smokegen-build" to "smokegen-build-installed" and it stopped magically finding that \
directory.


But the biggest obstacle was that the smokeqt cmake files can't handle paths with \
spaces in them.  smokegen was previously installed in "C:\Program Files \
(x86)\smokegenerator".  I set CMAKE_INSTALL_PREFIX to install it in \
"C:\qtcs_stuff\smokegenerator" and now CMake could find the rest of the files it \
couldn't find before, e.g. MacroOptionalFindPackage.

Later, during smokeqt cmake configuration, cmTryCompileExec.exe couldn't start \
because libgcc_s_dw2-1.dl was missing.  That was in C:\MinGW\bin, but that wasn't in \
the Windows PATH variable.  So I copied that DLL to CMake's bin directory (i.e. \
C:\Program Files (x86)\CMake 2.8\bin).

I got four warnings about missing packages (QImageBlitz, Qwt5, Phonon, 
and QScintilla2); I don't know if any of them are significant.

Finally, I could launch Qt Creator and build.  I had to hand-edit the installed \
SmokeConfig.cmake (in C:\qtcs_stuff\smokegenerator\share\smoke\cmake) to add ".exe" \
to the end of the values for SMOKE_GEN_BIN and SMOKE_API_BIN, because otherwise the \
various smokedata.cpp files couldn't resolve their dependencies.

I had to finally add C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin to my Windows PATH variable, \
because smokegen.exe wouldn't run otherwise.


It took forever to build smokeqt, but eventually it succeeded!  There were 589 \
warnings, most of them related to inline methods that were declared to be dllimport.


On to building qyoto!  Hopefully that's not as much of an adventure.


Steven Boswell



________________________________
 From: Dimitar Dobrev <dpldobrev@yahoo.com>
To: Steven Boswell II <ulatekh@yahoo.com>; KDE bindings <kde-bindings@kde.org> 
Sent: Thursday, December 1, 2011 12:55 AM
Subject: Re: Qyoto on Windows
 

Not sure about QFileDialog, haven't used it yet. All widgets in Qt have a parent, so \
try passing one (say, your main application window) to the QFileDialog constructor. \
Your Smoke_DIR seems correct so I don't know what is wrong there. Make sure you set \
SMOKE_BASE_LIBRARY to point to libsmokebase.dll.



________________________________
 From: Steven Boswell II <ulatekh@yahoo.com>
To: Dimitar Dobrev <dpldobrev@yahoo.com> 
Sent: Thursday, December 1, 2011 12:13 AM
Subject: Re: Qyoto on Windows
 

Sweet, that took care of the problem under Windows, and it works just fine under \
Linux!  (Plus, I learned something new about Qt. :-)  Thank you!

The next problem is that, under Windows, QFileDialog seems to freeze the entire \
application.  Specifically, I'm calling QFileDialog.GetExistingDirectory (this, \
"Select a directory", 0x25u).  Have you tried that yet?

I have successfully built smokegen, and finally figured out how to install it: cd to \
the smokegen build directory, and run "mingw32-make install".  That put it in \
"C:\Program Files (x86)\smokegenerator".  Now I'm trying to build smokeqt, but CMake \
keeps telling me "Could not find SMOKE".  I set Smoke_DIR to "C:\Program Files \
(x86)\smokegenerator\share\smoke\cmake", but that didn't help.  It also doesn't seem \
to be running the SmokeConfig.cmake in that directory; I modified all four "Could not \
find SMOKE" messages in there, and it's not showing any of the modified messages, so \
I think I'm missing a bigger point somewhere.  Can you steer me in the right \
direction?

Steven Boswell



________________________________
 From: Dimitar Dobrev <dpldobrev@yahoo.com>
To: Steven Boswell II <ulatekh@yahoo.com>; KDE bindings <kde-bindings@kde.org> 
Sent: Wednesday, November 30, 2011 2:10 PM
Subject: Re: Qyoto on Windows
 

I get exactly the same error, however Connect(cb, SIGNAL(string), this, \
SLOT(string)), where your slot method is marked with [Q_SLOT], works. You may check \
this example, just replace calls to SetWindowTitle(arg) with WindowTitle = arg. I \
have no idea why the other way does not work and it is a shame because it is more \
convenient. Mail me if you manage to fix it.



________________________________
 From: Steven Boswell II <ulatekh@yahoo.com>
To: Dimitar Dobrev <dpldobrev@yahoo.com> 
Sent: Wednesday, November 30, 2011 9:03 PM
Subject: Re: Qyoto on Windows
 

Thanks.  I'll grab assemblygen when I get home & work on getting all these projects \
to build.


I messed with my app under Qyoto/Windows today.  Almost everything seems to work; \
QSettings preserves my window geometry, and resizing works as expected.  But it seems \
to crash every time I hook up an action with \
"QObject.Connect(QObject,string,SlotFunc)".  The call to QObject.Connect() succeeds, \
but as soon as that event happens, I get a System.ArgumentException that says "Type \
must derive from Delegate.  Parameter name: t".  Are you seeing this problem in your \
own code?

If this is an easy fix on your part, I would really appreciate it...after all, I'm \
still working up to building these libraries, and am still a ways from being able to \
run DLLs in a debugger.

Steven Boswell



________________________________
 From: Dimitar Dobrev <dpldobrev@yahoo.com>
To: Steven Boswell II <ulatekh@yahoo.com>; KDE bindings <kde-bindings@kde.org> 
Sent: Wednesday, November 30, 2011 1:09 AM
Subject: Re: Qyoto on Windows
 

Here you can find 2 of the repositories you need: smokegen and smokeqt (the latter \
are the Smoke Qt bindings which produce the libsmokeqt*.dll-s). Here you can find \
assemblygen (check out the branch of "assemblies"), the tool that generates the \
managed assemblies (qyoto-*.dll) from the Smoke libraries. Some more build \
instructions: that LIBRARY thing I described on the mailing list for smokegen must be \
done for all CMakeLists. Another thing about CMakeLists is that the dependent libs \
will look for lib*.so and thus fail. You must change that to lib*.dll. Of course, \
these cannot be sent as patches because they are Windows-specific so for now everyone \
who wants to build Qyoto has to fix them on his own.



________________________________
 From: Steven Boswell II <ulatekh@yahoo.com>
To: Dimitar Dobrev <dpldobrev@yahoo.com> 
Sent: Wednesday, November 30, 2011 3:43 AM
Subject: Re: Qyoto on Windows
 

I put mingw10.dll into my application folder and still no luck.  But I put \
C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin into my path and my app finally runs!  So I can \
figure out what's left.  Thanks so much for your help!  I look forward to testing the \
heck out of the Windows port of Qyoto!

BTW, in the kdebindings mailing list, from 11/12 to around 11/19, you have some \
commits.  What were they to?  I was looking at the only kdebindings version-control \
databases I know of, e.g. \
https://projects.kde.org/projects/kde/kdebindings/smoke/smokegen/repository , and I \
don't see any new commits.  I wanted to get your latest changes so I could practice \
building them on my own.

Thanks again!  Let me know if there's anything I can do for you (aside from testing \
your stuff on my end).


Steven Boswell




_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[Attachment #5 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:times new \
roman, new york, times, serif;font-size:12pt"><div><span>OK, I'll try your changes \
sometime today.</span></div> <div><br>
  <span></span></div>
<div><span>I
 wanted to build my own binaries because I wanted the opportunity to 
track down bugs.&nbsp; Your binaries aren't totally functional yet, after 
all.&nbsp; Also, I was hoping that someone on this mailing list would know how to \
modify the existing projects the right way to cope with the Windows build \
issues.<br></span></div> <div><br>
  <span></span></div>
<div><span>Looking forward to your complete build instructions.</span></div>
<div><br>
  <span></span></div>
<div><span>Steven Boswell</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;"> <font face="Arial" size="2"> <hr size="1">  <b><span \
style="font-weight: bold;">From:</span></b> Dimitar Dobrev \
&lt;dpldobrev@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> \
Steven Boswell II &lt;ulatekh@yahoo.com&gt;; KDE bindings for other programming \
languages &lt;kde-bindings@kde.org&gt; <br> <b><span style="font-weight: \
bold;">Sent:</span></b> Friday, December 2, 2011 1:12 AM<br> <b><span \
style="font-weight: bold;">Subject:</span></b> Re: [Kde-bindings] Qyoto on \
Windows<br> </font> <br> <div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); \
background-color: rgb(255, 255, 255); font-family: times new roman,new \
york,times,serif; font-size: 12pt;"><div>Make sure you check your /lib dir as well, \
most files are sent there (in fact, just the qyoto-*-native.dll libs are placed in \
/bin). Another thing: the generated managed assemblies P/Invoke qyoto-*-native.dll \
while the compiled libs are named libqyoto-*-native.dll. To avoid this, after you \
generate you CMake files for Qyoto do a Find and Replace of "libqyoto" with "qyoto" \
in all text files  (Notepad++ can do this) in your build dir.</div><div>Sorry for not \
posting all of these earlier but I didn't quite have the time. Besides, building \
Qyoto on Windows was quite a horrible experience and I thought nobody would be \
willing to do this when there are binaries (my binaries) \
available.<br></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;"> <font face="Arial" size="2"> <hr size="1">  \
<b><span style="font-weight: bold;">From:</span></b> Steven Boswell II \
&lt;ulatekh@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> KDE \
bindings &lt;kde-bindings@kde.org&gt; <br> <b><span style="font-weight: \
bold;">Sent:</span></b> Thursday, December 1, 2011 11:53 PM<br> <b><span \
style="font-weight: bold;">Subject:</span></b> Re: [Kde-bindings] Qyoto on \
Windows<br> </font> <br> <div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); \
background-color: rgb(255, 255, 255); font-family: times new roman,new \
york,times,serif; font-size: 12pt;"><div>I got qyoto to build under Windows, but it's \
not running.&nbsp; Again, I followed the spirit of <span>the instructions that \
Dimitar previously posted to this list regarding how to build \
smokegen.</span></div><div><br><span></span></div><div><span>First of all, it appears \
that qyoto expects smokegen and smokeqt to be installed to the same directory.&nbsp; \
(It was looking for the smokeqt DLLs in the smokegen directory tree.)&nbsp; So I \
rebuilt smokegen and installed it in c:\qtcs_stuff\SMOKEQT4 \
.</span></div><div><span><br></span></div><div><span>DBus doesn't exist under \
Windows, so I hacked out the references to SMOKE_QTDBUS_LIBRARY and \
src/qdbus_interop.cpp from CMakeLists.txt .&nbsp; I'm sure there must be a proper way \
to detect that DBus is missing in the CMake files and to dike  this out properly, but \
I only  saw CMake for
 the first time a few days ago.<br></span></div><div><span>I had to add ARCHIVE \
DESTINATION, set to the same value as LIBRARY DESTINATION, in all the places that \
CMake complained that it was missing.</span></div><div><span>I had to change \
Q_DECL_IMPORT to Q_DECL_EXPORT on the extern reference to Qyoto_handlers in qyoto.cpp \
, to avoid linker errors.&nbsp; (This may be a general bug \
fix.)<br></span></div><div><span>I had to undefine QDESIGNER_UILIB_EXPORT in ui4.h , \
to avoid linker errors.<br></span></div><div><span><br></span></div><div><span>CMake \
kept setting CMAKE_CSharp_COMPILER to <a rel="nofollow" target="_blank" \
href="http://MS.NET">MS.NET</a>'s 2.0 compiler.&nbsp; It was supposedly getting that \
from the CSC environment variable, though no such variable appears to be defined on \
my system.&nbsp; I finally hacked the code to find MS.NET's 3.5 compiler.&nbsp; My \
installation of MonoDevelop apparently didn't come with the Mono C# compilers, which \
seems  weird to
 me.</span></div><div><br><span></span></div><div><span>For some reason, the C# \
compiler ignored the subdirectories that the .cs files were in, and instead tried to \
find everything at the root.&nbsp; So I just cd'd to the qyoto directory and ran "ln \
*/*.cs ." from MinGW.&nbsp; I had to do that for the qtscript, qttest, qtuitools, and \
qtwebkit directories too.</span></div><div><br><span></span></div><div><span>After \
all this, it built, and I installed it to the same directory that contains the \
smokegen and smokeqt \
packages.</span></div><div><br><span></span></div><div><span>When I tried to run my \
C# project with the packages I had just built, it died quickly because it couldn't \
find libqyoto.dll .&nbsp; There's a libqyoto.dll.a in my bin directory, but the DLL \
itself it missing.&nbsp; It's in my qyoto build directory, though, so I just copied \
                it myself.&nbsp; But still, it complains that it can't find \
                libqyoto.dll
 .<br></span></div><div><br><span></span></div><div><span>-----</span></div><div><br><span></span></div><div><span>So \
there you go, kdebindings mailing list -- this is where Dimitar and I have gotten to \
with our attempt to build Qyoto for Windows.&nbsp; I'm sure there are people out \
there that have proper solutions to a lot of these problems.&nbsp; Are you willing to \
help?</span></div><div><br><span></span></div><div><span>Steven \
Boswell<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;"> <font face="Arial" size="2"> <hr size="1">  \
<b><span style="font-weight: bold;">From:</span></b> Steven Boswell II \
&lt;ulatekh@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> \
Dimitar Dobrev &lt;dpldobrev@yahoo.com&gt;; KDE bindings &lt;kde-bindings@kde.org&gt; \
<br> <b><span style="font-weight:  bold;">Sent:</span></b> Thursday, December 1, 2011 \
10:51 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Qyoto on \
Windows<br> </font> <br> <div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); \
background-color: rgb(255, 255, 255); font-family: times new roman,new \
york,times,serif; font-size: 12pt;"><div><span>OK, I finally got smokeqt to build \
under Windows, following the spirit of the instructions you previously posted to this \
list regarding how to build \
smokegen.</span></div><div><br><span></span></div><div><span>Setting \
SMOKE_BASE_LIBRARY got rid of the "Could not find SMOKE" message.&nbsp; For some \
reason, Smoke_DIR keeps getting set to the location of my built smokegen, instead of \
my installed smokegen, so I keep having to change it by hand.&nbsp; Finally, I \
renamed "smokegen-build" to "smokegen-build-installed" and it stopped magically \
finding that directory.<br></span></div><div><span><br></span></div><div><span>But \
the biggest obstacle was that the smokeqt cmake files can't handle paths with spaces \
in them.&nbsp; smokegen was previously installed in "C:\Program Files  \
(x86)\smokegenerator".&nbsp; I set  CMAKE_INSTALL_PREFIX to install it in \
"C:\qtcs_stuff\smokegenerator" and now CMake could find the rest of the files it \
couldn't find before, e.g. \
MacroOptionalFindPackage.</span></div><div><br><span></span></div><div><span>Later, \
during smokeqt cmake configuration, cmTryCompileExec.exe couldn't start because \
libgcc_s_dw2-1.dl was missing.&nbsp; That was in C:\MinGW\bin, but that wasn't in the \
Windows PATH variable.&nbsp; So I copied that DLL to CMake's bin directory (i.e. \
C:\Program Files (x86)\CMake 2.8\bin).</span></div><div><br>  <span></span></div>
<div><span>I
 got four warnings about missing packages (QImageBlitz, Qwt5, Phonon, 
and QScintilla2); I don't know if any of them are significant.</span></div>
<div><br><span></span></div><div><span>Finally, I could launch Qt Creator and \
build.&nbsp; I had to hand-edit the installed SmokeConfig.cmake (in \
C:\qtcs_stuff\smokegenerator\share\smoke\cmake) to add ".exe" to the end of the \
values for SMOKE_GEN_BIN and SMOKE_API_BIN, because otherwise the various \
smokedata.cpp files couldn't resolve their dependencies.</span></div><br><div><span>I \
had to finally add C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin to my Windows PATH variable, \
because smokegen.exe wouldn't run \
otherwise.<br></span></div><div><span><br></span></div><div>It took forever to build \
smokeqt, but eventually it succeeded!&nbsp; There were 589 warnings, most of them \
related to inline methods that were declared to be \
dllimport.<br></div><div><br></div><div>On to building qyoto!&nbsp; Hopefully that's \
not as much of an adventure.<br></div><br><span></span><div><span>Steven \
Boswell<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;"> <font face="Arial" size="2"> <hr size="1">  \
<b><span style="font-weight: bold;">From:</span></b> Dimitar Dobrev \
&lt;dpldobrev@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> \
Steven Boswell II &lt;ulatekh@yahoo.com&gt;; KDE bindings \
&lt;kde-bindings@kde.org&gt; <br> <b><span style="font-weight: \
bold;">Sent:</span></b> Thursday, December 1, 2011 12:55 AM<br> <b><span \
style="font-weight: bold;">Subject:</span></b> Re: Qyoto on Windows<br> </font> <br> \
<div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); background-color: \
rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: \
12pt;"><div>Not sure about QFileDialog, haven't used it yet. All widgets in Qt have a \
parent, so try passing one (say, your main application window) to the \
<span>QFileDialog constructor.</span></div><div><span>Your Smoke_DIR seems correct so \
I don't know what is wrong there. Make sure you set SMOKE_BASE_LIBRARY to point to \
libsmokebase.dll.<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;"> <font face="Arial" size="2"> <hr \
size="1">  <b><span style="font-weight: bold;">From:</span></b> Steven Boswell II \
&lt;ulatekh@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> \
Dimitar Dobrev &lt;dpldobrev@yahoo.com&gt; <br> <b><span  style="font-weight: \
bold;">Sent:</span></b>  Thursday, December 1, 2011 12:13 AM<br> <b><span \
style="font-weight: bold;">Subject:</span></b> Re: Qyoto on Windows<br> </font> <br> \
<div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); background-color: \
rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: \
12pt;"><div><span>Sweet, that took care of the problem under Windows, and it works \
just fine under Linux!&nbsp; (Plus, I learned something new about Qt. :-)&nbsp; Thank \
you!</span></div><div><br><span></span></div><div><span>The next problem is that, \
under Windows, QFileDialog seems to freeze the entire application.&nbsp; \
Specifically, I'm calling QFileDialog.GetExistingDirectory (this, "Select a \
directory", 0x25u).&nbsp; Have you tried that \
yet?</span></div><div><br><span></span></div><div><span>I have successfully built \
smokegen, and finally figured out how to install it: cd to the smokegen build \
directory, and run "mingw32-make install".&nbsp; That put it in \
"</span><span>C:\Program Files (x86)\smokegenerator".&nbsp; </span><span>Now I'm \
trying to build smokeqt, but CMake keeps telling me  "Could not find SMOKE".&nbsp;
 I set Smoke_DIR
 to "C:\Program Files (x86)\smokegenerator\share\smoke\cmake", but that didn't \
help.&nbsp; It also doesn't seem to be running the SmokeConfig.cmake in that \
directory; I modified all four "Could not find SMOKE" messages in there, and it's not \
showing any of the modified messages, so I think I'm missing a bigger point \
somewhere.&nbsp; Can you steer me in the right \
direction?</span></div><div><br><span></span></div><div><span>Steven \
Boswell<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;"> <font face="Arial" size="2"> <hr size="1">  \
<b><span style="font-weight: bold;">From:</span></b> Dimitar Dobrev \
&lt;dpldobrev@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> \
Steven Boswell II &lt;ulatekh@yahoo.com&gt;; KDE bindings \
&lt;kde-bindings@kde.org&gt; <br> <b><span style="font-weight:  \
bold;">Sent:</span></b> Wednesday, November 30, 2011 2:10 PM<br> <b><span \
style="font-weight: bold;">Subject:</span></b> Re: Qyoto on Windows<br> </font> <br> \
<div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); background-color: \
rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: \
12pt;"><div>I get exactly the same error, however Connect(cb, SIGNAL(string), this, \
SLOT(string)), where your slot method is marked with [Q_SLOT], works. You may check \
<a rel="nofollow" target="_blank" \
href="http://www.klopfenstein.net/lorenz.aspx/qt-on-mono-with-qyoto-sample-hello-world">this \
example</a>, just replace calls to SetWindowTitle(arg) with WindowTitle = arg. I have \
no idea why the other way does not work and it is a shame because it is more \
convenient. Mail me if you manage to fix it.<br></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;"> <font \
face="Arial" size="2"> <hr size="1">  <b><span style="font-weight: \
bold;">From:</span></b> Steven Boswell II  &lt;ulatekh@yahoo.com&gt;<br> <b><span \
style="font-weight: bold;">To:</span></b> Dimitar Dobrev &lt;dpldobrev@yahoo.com&gt; \
<br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, November 30, \
2011 9:03 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Qyoto on \
Windows<br> </font> <br> <div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); \
background-color: rgb(255, 255, 255); font-family: times new roman,new \
york,times,serif; font-size: 12pt;"><div><span>Thanks.&nbsp; I'll grab assemblygen \
when I get home &amp; work on getting all these projects to \
build.<br></span></div><div><br><span></span></div><div><span>I messed with my app \
under Qyoto/Windows today.&nbsp; Almost everything seems to work; QSettings preserves \
my window geometry, and resizing works as expected.&nbsp; But it seems to crash every \
time I hook up an action with "QObject.Connect(QObject,string,SlotFunc)".&nbsp; The \
call to QObject.Connect() succeeds, but as soon as that event happens, I get a \
System.ArgumentException that says "Type must derive from Delegate.&nbsp; Parameter \
name: t".&nbsp; Are you seeing this problem in your own \
code?</span></div><div><br><span></span></div><div><span>If this is an easy fix on \
your part, I would really appreciate it...after all,  I'm still working up to
 building these
 libraries, and am still a ways from being able to run DLLs in a \
debugger.</span></div><div><br><span></span></div><div><span>Steven \
Boswell<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;"> <font face="Arial" size="2"> <hr size="1">  \
<b><span style="font-weight: bold;">From:</span></b> Dimitar Dobrev \
&lt;dpldobrev@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> \
Steven Boswell II &lt;ulatekh@yahoo.com&gt;; KDE bindings \
&lt;kde-bindings@kde.org&gt; <br> <b><span style="font-weight: \
bold;">Sent:</span></b> Wednesday, November 30, 2011 1:09 AM<br> <b><span \
style="font-weight: bold;">Subject:</span></b> Re: Qyoto on Windows<br> </font> <br> \
<div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); background-color: \
rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: \
12pt;"><div><span><a rel="nofollow" target="_blank" \
href="https://projects.kde.org/projects/kde/kdebindings/smoke">Here</a> you can find \
2 of the repositories you need: smokegen and smokeqt (the latter are the Smoke Qt \
bindings which produce the libsmokeqt*.dll-s). <a rel="nofollow" target="_blank" \
href="https://gitorious.org/assemblygen">Here</a> you can find assemblygen (check out \
the branch of "assemblies"), the tool that generates the managed assemblies \
(qyoto-*.dll) from the Smoke libraries.</span></div><div><span>Some more build \
instructions: that LIBRARY thing I described on the mailing list for smokegen must be \
done for all CMakeLists. Another thing about CMakeLists is that the dependent libs \
will look for lib*.so and thus fail. You must change that to lib*.dll. Of course, \
these cannot be  sent as patches because they are Windows-specific so for now \
everyone who wants to build Qyoto has to  fix them on his \
own.<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;"> <font face="Arial" size="2"> <hr size="1">  \
<b><span style="font-weight: bold;">From:</span></b> Steven Boswell II \
&lt;ulatekh@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> \
Dimitar Dobrev &lt;dpldobrev@yahoo.com&gt; <br> <b><span style="font-weight: \
bold;">Sent:</span></b> Wednesday, November 30, 2011 3:43 AM<br> <b><span \
style="font-weight: bold;">Subject:</span></b> Re: Qyoto on Windows<br> </font> <br> \
<div id="yiv935447819"><div><div style="color: rgb(0, 0, 0); background-color: \
rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: \
12pt;"><div><span>I put mingw10.dll into my application folder and still no \
luck.&nbsp; But I put </span><span \
id="yiv935447819yui_3_2_0_15_1322597665051212">C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin \
into my path and my app finally runs!&nbsp; So I can figure out what's left.&nbsp; \
Thanks so much for your help!&nbsp; I look forward to testing the heck out of the \
Windows port of Qyoto!</span></div><div><br><span \
id="yiv935447819yui_3_2_0_15_1322597665051212"></span></div><div><span \
id="yiv935447819yui_3_2_0_15_1322597665051212">BTW, in the kdebindings mailing list, \
from 11/12 to around 11/19, you have some commits.&nbsp; What were they to?&nbsp; I \
was looking at the only kdebindings version-control databases I know of, e.g. \
https://projects.kde.org/projects/kde/kdebindings/smoke/smokegen/repository ,  and I \
don't see any new  commits.&nbsp; I
 wanted to get your latest changes so I could practice building them on my \
own.</span></div><div><br><span \
id="yiv935447819yui_3_2_0_15_1322597665051212"></span></div><div><span \
id="yiv935447819yui_3_2_0_15_1322597665051212">Thanks again!&nbsp; Let me know if \
there's anything I can do for you (aside from testing your stuff on my \
end).<br></span></div><div><br><span \
id="yiv935447819yui_3_2_0_15_1322597665051212"></span></div><div><span \
id="yiv935447819yui_3_2_0_15_1322597665051212">Steven Boswell<br></span></div><br> \
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></ \
div></div></div></div></div></div></div></div></div></div></div></div></div></div></div> \
</div>  </div></div></div><br><br> </div> </div>  \
</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><br> \
</div> </div>  </div></div></div><br><br> </div> </div>  </div></body></html>



_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic