[vtk-developers] FW: Problem building recent versions of VTK on FreeBSD

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Aug 13 11:00:36 EDT 2009


On Thu, Aug 13, 2009 at 4:44 PM, Matthew L.
Bowman<matthew.bowman at kitware.com> wrote:
>> Hello;
>>
>> I got this while building VTK 5.4.2 with Qt4 and Tcl/Tk 8.5 (FreeBSD 7.2 - gcc
>> 4.2.1 )
>>
>>  ______________
>> ...
>> [ 99%] Building CXX object GUISupport/Qt/CMakeFiles/QVTK.dir/vtkQtConnection.o
>> [ 99%] Building CXX object GUISupport/Qt/CMakeFiles/QVTK.dir/QVTKWidget.o
>> In file included from
>> /usr/ports/math/vtk5/work/VTK/GUISupport/Qt/QVTKWidget.cxx:31:
>> /usr/ports/math/vtk5/work/vtk-5.4.2/GUISupport/Qt/QVTKWidget.h:149: error:
>> expected primary-expression before 'void'

I am looking at the code:

$ grep -2  SIGN --line-number GUISupport/Qt/QVTKWidget.h.in
143-  virtual QPaintEngine* paintEngine() const;
144-
145:  @Q_SIGNALS@:
146-  // Description:
147-  // This signal will be emitted whenever a mouse event occurs

I do not understand how you can have a QVTKWidget.h in your src path.
Could you try another build with a more explicit binary name that is
outside of the build. And make sure that there is only a
QVTKWidget.h.in in the src tree, and no QVTKWidget.h.

The @Q_SIGNALS@ should have been processed by cmake, you should not
rename any file.

HTH
-- 
Mathieu
http://mathieumalaterre.com



More information about the vtk-developers mailing list