<div>I'm using this version of CMake, installed in Leopard prior to upgrading to Snow Leopard:</div><div><a href="http://www.cmake.org/files/v2.8/cmake-2.8.2-Darwin-universal.dmg">http://www.cmake.org/files/v2.8/cmake-2.8.2-Darwin-universal.dmg</a></div>
<div><br></div><div>Also, I didn't get this error when compiling ParaView 3.8.1 on Leopard 10.5.8 just before I upgraded to Snow Leopard 10.6.4. <br></div><div><br></div><div>Cheers,</div><div>Pete</div><div><br></div>
<br><div class="gmail_quote">On Thu, Nov 4, 2010 at 5:53 PM, Dave Partyka <span dir="ltr"><<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
This is all very strage, I have two Macs, both Snow leopard with the latest updates and have never seen this error. I am curious what version of CMake you are using?<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Thu, Nov 4, 2010 at 7:36 PM, Peter Schmitt <span dir="ltr"><<a href="mailto:pschmittml@gmail.com" target="_blank">pschmittml@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all, <div><br></div><div>Just writing to mention that I ran into this same problem on Mac OSX 10.6.4 (just upgraded from 10.5.8 yesterday). Compiled my own qt-4.6.2 from source. Building ParaView 3.8.1 from source. I fixed this by swapping the "cxx" and "mm" extension in the "IF(Q_WS_MAC) .... ELSE" block of Qt/Widgets/CMakeLists.txt:</div>
<div><br></div><div><div>IF(Q_WS_MAC)</div><div> SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)</div><div>ELSE(Q_WS_MAC)</div><div> SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.cxx)</div><div>
ENDIF(Q_WS_MAC)</div>
</div><div><br></div><div>Patch:</div><div><br></div><div><div>../ParaView-3.8.1/Qt/Widgets/CMakeLists.txt</div><div>101,102d100</div><div>< SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)</div><div>< ELSE(Q_WS_MAC)</div>
<div>103a102,103</div><div>> ELSE(Q_WS_MAC)</div><div>> SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)</div></div><div><br></div><div>The code is still compiling, but got beyond the "'class QObject' is not a direct base of 'pqProgressBarHelper'" error.</div>
<div><br></div><div>Cheers,</div><div>Pete</div><div><br><div><br><div class="gmail_quote"><div>On Tue, Jun 29, 2010 at 2:56 PM, Dave Partyka <span dir="ltr"><<a href="mailto:dave.partyka@kitware.com" target="_blank">dave.partyka@kitware.com</a>></span> wrote:<br>
</div><div><div></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ben, can you send us your CMakeCache.txt in the root of your build tree.<div>
<div></div><div><br><br><div class="gmail_quote">
On Tue, Jun 29, 2010 at 4:40 PM, Ben Medina <span dir="ltr"><<a href="mailto:ben.medina@gmail.com" target="_blank">ben.medina@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It just prints out:<br>
Q_WS_MAC ==<br>
<br>
I'm not sure what is responsible for setting that variable; I've only<br>
ever seen it used in C++ source as a preprocessor define, not in CMake<br>
source.<br>
<br>
Thanks,<br>
<font color="#888888">Ben<br>
</font><div><div></div><div><br>
On Tue, Jun 29, 2010 at 1:00 PM, Utkarsh Ayachit<br>
<<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>> wrote:<br>
> If you look at Qt/Widgets/CMakeLists.txt, around line #79, it doesn't<br>
> add pqProgressBarHelper.cxx as a source to compile on macs, instead it<br>
> uses pqProgressBarHelper.mm. Now the question why isn't that happening<br>
> in your case. Try adding the following;<br>
><br>
> message( "Q_WS_MAC == ${Q_WS_MAC}")<br>
><br>
> What does that print out when you run cmake?<br>
><br>
> Utkarsh<br>
><br>
> On Tue, Jun 29, 2010 at 3:38 PM, Ben Medina <<a href="mailto:ben.medina@gmail.com" target="_blank">ben.medina@gmail.com</a>> wrote:<br>
>> Hello,<br>
>><br>
>> I just downloaded the 3.8.0 source and am trying to compile a 64-bit<br>
>> version on Mac OS 10.5. During the build of the pqWidgets target, this<br>
>> error occurs:<br>
>><br>
>> .../ParaView-3.8.0/Qt/Widgets/pqProgressBarHelper.cxx:37: error: type<br>
>> 'class QObject' is not a direct base of 'pqProgressBarHelper'<br>
>><br>
>> There seems to be an error in the source. Here's the class declaration<br>
>> in pqProgressBarHelper.h:<br>
>><br>
>> #ifdef Q_WS_MAC<br>
>> class pqProgressBarHelper : public QWidget<br>
>> #else<br>
>> class pqProgressBarHelper : public QObject<br>
>> #endif<br>
>><br>
>> But then in the constructor in pqProgressBarHelper.cxx is this:<br>
>><br>
>> pqProgressBarHelper::pqProgressBarHelper(pqProgressBar* p)<br>
>> : QObject(p), Progress(p)<br>
>> {<br>
>> }<br>
>><br>
>> Any ideas?<br>
>><br>
>> Thanks,<br>
>> Ben<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div></div></div><br></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br>