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

List:       paraview
Subject:    Re: [Paraview] Problems building 3.8.0 for 64-bit Mac
From:       Dave Partyka <dave.partyka () kitware ! com>
Date:       2010-06-29 20:56:03
Message-ID: AANLkTilnJg4yPw62IW3Ae-TJsx8b68d4XXMfYvfT9bRf () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Ben, can you send us your CMakeCache.txt in the root of your build tree.

On Tue, Jun 29, 2010 at 4:40 PM, Ben Medina <ben.medina@gmail.com> wrote:

> It just prints out:
> Q_WS_MAC ==
>
> I'm not sure what is responsible for setting that variable; I've only
> ever seen it used in C++ source as a preprocessor define, not in CMake
> source.
>
> Thanks,
> Ben
>
> On Tue, Jun 29, 2010 at 1:00 PM, Utkarsh Ayachit
> <utkarsh.ayachit@kitware.com> wrote:
> > If you look at Qt/Widgets/CMakeLists.txt, around line #79, it doesn't
> > add pqProgressBarHelper.cxx as a source to compile on macs, instead it
> > uses pqProgressBarHelper.mm. Now the question why isn't that happening
> > in your case.  Try adding the following;
> >
> > message( "Q_WS_MAC == ${Q_WS_MAC}")
> >
> > What does that print out when you run cmake?
> >
> > Utkarsh
> >
> > On Tue, Jun 29, 2010 at 3:38 PM, Ben Medina <ben.medina@gmail.com>
> wrote:
> >> Hello,
> >>
> >> I just downloaded the 3.8.0 source and am trying to compile a 64-bit
> >> version on Mac OS 10.5. During the build of the pqWidgets target, this
> >> error occurs:
> >>
> >> .../ParaView-3.8.0/Qt/Widgets/pqProgressBarHelper.cxx:37: error: type
> >> 'class QObject' is not a direct base of 'pqProgressBarHelper'
> >>
> >> There seems to be an error in the source. Here's the class declaration
> >> in pqProgressBarHelper.h:
> >>
> >> #ifdef Q_WS_MAC
> >> class pqProgressBarHelper : public QWidget
> >> #else
> >> class pqProgressBarHelper : public QObject
> >> #endif
> >>
> >> But then in the constructor in pqProgressBarHelper.cxx is this:
> >>
> >> pqProgressBarHelper::pqProgressBarHelper(pqProgressBar* p)
> >> : QObject(p), Progress(p)
> >> {
> >> }
> >>
> >> Any ideas?
> >>
> >> Thanks,
> >> Ben
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.paraview.org/mailman/listinfo/paraview
> >>
> >
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>

[Attachment #5 (text/html)]

Hi Ben, can you send us your CMakeCache.txt in the root of your build \
tree.<br><br><div class="gmail_quote">On Tue, Jun 29, 2010 at 4:40 PM, Ben Medina \
<span dir="ltr">&lt;<a \
href="mailto:ben.medina@gmail.com">ben.medina@gmail.com</a>&gt;</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&#39;m not sure what is responsible for setting that variable; I&#39;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 class="h5"><br>
On Tue, Jun 29, 2010 at 1:00 PM, Utkarsh Ayachit<br>
&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt; \
wrote:<br> &gt; If you look at Qt/Widgets/CMakeLists.txt, around line #79, it \
doesn&#39;t<br> &gt; add pqProgressBarHelper.cxx as a source to compile on macs, \
instead it<br> &gt; uses pqProgressBarHelper.mm. Now the question why isn&#39;t that \
happening<br> &gt; in your case.  Try adding the following;<br>
&gt;<br>
&gt; message( &quot;Q_WS_MAC == ${Q_WS_MAC}&quot;)<br>
&gt;<br>
&gt; What does that print out when you run cmake?<br>
&gt;<br>
&gt; Utkarsh<br>
&gt;<br>
&gt; On Tue, Jun 29, 2010 at 3:38 PM, Ben Medina &lt;<a \
href="mailto:ben.medina@gmail.com">ben.medina@gmail.com</a>&gt; wrote:<br> &gt;&gt; \
Hello,<br> &gt;&gt;<br>
&gt;&gt; I just downloaded the 3.8.0 source and am trying to compile a 64-bit<br>
&gt;&gt; version on Mac OS 10.5. During the build of the pqWidgets target, this<br>
&gt;&gt; error occurs:<br>
&gt;&gt;<br>
&gt;&gt; .../ParaView-3.8.0/Qt/Widgets/pqProgressBarHelper.cxx:37: error: type<br>
&gt;&gt; &#39;class QObject&#39; is not a direct base of \
&#39;pqProgressBarHelper&#39;<br> &gt;&gt;<br>
&gt;&gt; There seems to be an error in the source. Here&#39;s the class \
declaration<br> &gt;&gt; in pqProgressBarHelper.h:<br>
&gt;&gt;<br>
&gt;&gt; #ifdef Q_WS_MAC<br>
&gt;&gt; class pqProgressBarHelper : public QWidget<br>
&gt;&gt; #else<br>
&gt;&gt; class pqProgressBarHelper : public QObject<br>
&gt;&gt; #endif<br>
&gt;&gt;<br>
&gt;&gt; But then in the constructor in pqProgressBarHelper.cxx is this:<br>
&gt;&gt;<br>
&gt;&gt; pqProgressBarHelper::pqProgressBarHelper(pqProgressBar* p)<br>
&gt;&gt; : QObject(p), Progress(p)<br>
&gt;&gt; {<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; Any ideas?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Ben<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" \
target="_blank">www.kitware.com</a><br> &gt;&gt;<br>
&gt;&gt; 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> \
&gt;&gt;<br> &gt;&gt; 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> &gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" \
target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br> \
&gt;&gt;<br> &gt;<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>



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


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

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