On Sun, Jan 31, 2010 at 1:27 AM, David Lichteblau <span dir="ltr"><<a href="mailto:david@lichteblau.com">david@lichteblau.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Elliott,<br>
<div class="im"><br>
Quoting Elliott Slaughter (<a href="mailto:elliottslaughter@gmail.com">elliottslaughter@gmail.com</a>):<br>
> On Sat, Jan 30, 2010 at 10:06 PM, Chris Burel <<a href="mailto:chrisburel@gmail.com">chrisburel@gmail.com</a>> wrote:<br>
><br>
> > What are you trying to accomplish? Just compiling Smoke by itself<br>
> > won't get you much, unless you're writing bindings that use the Smoke<br>
> > library. If that's the case, I'd try following the directions in the<br>
> > file CMakeLists.txt.qtruby.<br>
</div>[...]<br>
<br>
The approach from CMakeLists.txt.qtruby looks interesting, but still<br>
requires users to copy files around, in particular files from kdelibs<br>
which someone working with just a kdebindings checkout would have to<br>
hunt down first.</blockquote><div><br></div><div>[...]</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> it sounds like that build method would be the right thing for me. I'll try<br>
> it out and see how far I get.<br>
<br>
</div>I don't know what the "right" way is.<br>
<br>
My approach is to comment out everything related to KDE in the<br>
CMakeLists.txt like this:<br>
<a href="http://www.lichteblau.com/tmp/kdebindings-without-kde.diff" target="_blank">http://www.lichteblau.com/tmp/kdebindings-without-kde.diff</a><br>
Afterwards I run make in the generator and smoke/smoke* directories.<br>
<br>
The README says<br>
# Compile smokeqt but not smokekde<br>
cmake -DENABLE_SMOKE=on -DENABLE_KDE_SMOKE=off .<br>
I think at the moment that doesn't mean you get to run cmake without<br>
having at least some kde-related files around, although it would nice if<br>
it did.<font class="Apple-style-span" color="#888888"><br></font></blockquote></div><div><br></div><div>Thanks for helping out.</div><div><br></div><div>I tried both you method and the one based on QtRuby, and both basically got me to the same place.</div>
<div><br></div><div>With both methods, I noticed that I needed to copy over the HandleImportedTargetsInCMakeRequiredLibraries.cmake file from kdebindings in addition to what I had already copied. I also had to fix up David's patch a bit because it didn't apply cleanly to SVN HEAD.</div>
<div><br></div><div>After that, running cmake produced the following error:</div><div><br></div><div><div>CMake Error at smoke/qt/QtGuess.txt:134 (list):</div><div> list sub-command REMOVE_ITEM requires two or more arguments.</div>
<div>Call Stack (most recent call first):</div><div> smoke/qt/CMakeLists.txt:13 (include)</div><div><br></div><div>Naively hoping that this error was not important, I commented out the offending line and proceeded anyway. The configuration completed successfully, but upon attempting to generate the smoke bindings I got the following error:</div>
</div><div><br></div><div><div>[ 28%] Generating smokedata.cpp, x_1.cpp, x_2.cpp, x_3.cpp, x_4.cpp, x_5.cpp, x_6.cpp, x_7.cpp, x_8.cpp, x_9.cpp, x_10.cpp, x_11.cpp, x_12.cpp, x_13.cpp, x_14.cpp, x_15.cpp, x_16.cpp, x_17.cpp, x_18.cpp, x_19.cpp, x_20.cpp</div>
</div><div>make[2]: *** [smoke/qt/smokedata.cpp] Error 57</div><div>make[1]: *** [smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div><br></div><div>And the following text appeared in a pop window:</div>
<div><br></div><div>generator.exe - Entry Point Not Found: The procedure entry point _Z11qt_assert_xPKcS0_S0_i could not be locate in the dynamic link library QtCore4.dll.</div><div><br></div><div>I'm not entirely sure what to make of that.</div>
<div><br></div><div>Thanks again for all the help.</div><br>-- <br>Elliott Slaughter<br><br>"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay<br>