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?

On Thu, Nov 4, 2010 at 7:36 PM, Peter Schmitt <pschmit...@gmail.com> wrote:

> Hi all,
>
> 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:
>
> IF(Q_WS_MAC)
>   SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)
> ELSE(Q_WS_MAC)
>   SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.cxx)
> ENDIF(Q_WS_MAC)
>
> Patch:
>
> ../ParaView-3.8.1/Qt/Widgets/CMakeLists.txt
> 101,102d100
> <   SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)
> < ELSE(Q_WS_MAC)
> 103a102,103
> > ELSE(Q_WS_MAC)
> >   SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)
>
> The code is still compiling, but got beyond the "'class QObject' is not a
> direct base of 'pqProgressBarHelper'" error.
>
> Cheers,
> Pete
>
>
> On Tue, Jun 29, 2010 at 2:56 PM, Dave Partyka <dave.part...@kitware.com>wrote:
>
>> 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.med...@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.ayac...@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.med...@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
>>>
>>
>>
>> _______________________________________________
>> 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

Reply via email to