[Paraview] Compiling ParaView 3 on Mac OS X (PowerPC)

Clinton Stimpson clinton at elemtech.com
Thu May 10 18:31:09 EDT 2007


On May 10, 2007, at 3:28 PM, Bernhard Gschaider wrote:

>
>>>>>> On Thu, 10 May 2007 09:01:28 -0600
>>>>>> "c" == clinton  <clinton at elemtech.com> wrote:
>
>>> But this problem still persists: I don't know too much about
>>> cmake, but am I right that this is a problem with cmake(I'm
>>> using 2.4.6) or the cmake-Files that come with the soure,
>>> because I don't find where QT4_WRAP_CPP is being defined.
>
>     c> QT4_WRAP_CPP is defined in CMake's FindQt4.cmake file, and the
>     c> macro doesn't get defined until qmake is found.  Set the
>     c> QT_QMAKE_EXECUTABLE variable to "/your/path/to/qt4/bin/qmake"
>     c> You said you are using Trolltech's DMG install?  I've used that
>     c> too.
>
> Thanks. It was a stupid typo to the path of qmake. Now everything
> compiles OK until at 90% (after a lot of the QT-stuff was successfully
> compiled) it says:
>
> [90%] Building CXX object QT/Core/CMakeFiles/pqCore.dir/ 
> pqFormBuilder.o
> /Library/Frameworks/QTCore.framework/Headers/qglobal.h:606: error:  
> template with C linkage

That's a problem with the Qt headers.
You can change pqFormBuilder.h
from
#include <QtUiTools/QUiLoader>
to
#include <QUiLoader>

That change isn't in yet because some dashboards are on older CMake's  
that can't find QUiTools correctly.
The Mac dashboards would probably be fine if we put a condiational  
around it for the Mac.

Clint


>
> then lots of similar messages follow. Googling around told me that the
> problem could be an unterminated
>
> extern "C" {
>
> could be the cause.
>
> And this is where I am stuck: usually in that situation I would copy
> the last compiler call, add the -E option, look at the output and
> find out which header might be the problem. But cmake "protects" me
> from that knowledge. Is there a way to find out how the compiler is
> called for that file?
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview



More information about the ParaView mailing list