[Paraview] compiling Plugins

Biddiscombe, John A. biddisco at cscs.ch
Tue Sep 25 06:46:05 EDT 2012


change VTK_IO_EXPORT to VTK_EXPORT

-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Armin Ghajar Jazi
Sent: 25 September 2012 11:42
To: paraview at paraview.org
Subject: [Paraview] compiling Plugins

Hello Everyone,

I am trying to get a plug-in that was written by one of my colleagues compile but with no luck unfortunately.

Here is the output of make after configuring with cmake.

make[1]: Warning: File `CMakeFiles/Makefile2' has modification time
1.7 s in the future
make[2]: Warning: File `CMakeFiles/AiaGridReader.dir/flags.make' has modification time 1.7 s in the future [  7%] Generating Documentation HTMLs from xmls Processing wiki sources Processing wiki filters Processing wiki writers Processing wiki readers [ 15%] Generating qrc_AiaGridReader.cxx [ 23%] Compiling Qt help project AiaGridReader.qhp Building up file structure...
Insert custom filters...
Insert help data for filter section (1 of 1)...
Insert files...
Warning: The file /home/ghajar/paraviewPlugins-build/doc/*.css does not exist! Skipping it.
Warning: The file /home/ghajar/paraviewPlugins-build/doc/*.png does not exist! Skipping it.
Warning: The file /home/ghajar/paraviewPlugins-build/doc/*.jpg does not exist! Skipping it.
Insert contents...
Insert indices...
Documentation successfully generated.
[ 30%] Generating AiaGridReader_doc.h
-- Generate module: AiaGridReader
[ 38%] CS Wrapping - generating vtkAiaGridReaderClientServer.cxx [ 46%] Generating vtkSMXML_AiaGridReader.h
-- Generate module: vtkAiaGridReaderServConf [ 53%] Generating moc_AiaGridReader_Plugin.cxx Scanning dependencies of target AiaGridReader
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File `CMakeFiles/AiaGridReader.dir/depend.make' has modification time 3.3 s in the future [ 61%] Building CXX object CMakeFiles/AiaGridReader.dir/qrc_AiaGridReader.cxx.o
[ 69%] Building CXX object CMakeFiles/AiaGridReader.dir/vtkAiaGridReader.cxx.o
In file included from
/home/ghajar/paraviewPlugins/AiaNetcdfReader/vtkAiaGridReader.cxx:7:
/home/ghajar/paraviewPlugins/AiaNetcdfReader/vtkAiaGridReader.h:16:
error: expected initializer before ':' token
make[2]: *** [CMakeFiles/AiaGridReader.dir/vtkAiaGridReader.cxx.o] Error 1
make[1]: *** [CMakeFiles/AiaGridReader.dir/all] Error 2
make: *** [all] Error 2

And following is the header : ( it's rather simple actually)

/*
** vtkAiaGridReader.h
*/

#ifndef __vtkAiaGridReader_h
#define __vtkAiaGridReader_h

#include "vtkDataObjectAlgorithm.h"
#include "vtkSmartPointer.h"
#include "vtkIntArray.h"
#include "vtkDoubleArray.h"
#include "vtkDataArraySelection.h"
#include "vtkStdString.h"
#include "vtkUnstructuredGridAlgorithm.h"

class VTK_IO_EXPORT vtkAiaGridReader : public vtkUnstructuredGridAlgorithm {

 public:
  vtkTypeRevisionMacro(vtkAiaGridReader, vtkUnstructuredGridAlgorithm);
  static vtkAiaGridReader *New();
  virtual void PrintSelf(ostream &os, vtkIndent indent);

  // FileName and dataFile
  void SetFileName(const char *dataFile);
  vtkGetStringMacro(dataFile);

  // UpdateMetaData -- Automatically called by RequestInformation.
  int UpdateMetaData();

  // Returns true if the file can be read.
  static int CanReadFile(const char *filename);

  int SetbConProOut(bool bConProOut);
 protected:
  vtkAiaGridReader();
  ~vtkAiaGridReader();

  char * dataFile;

  virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector);

//  virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector);

  virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector);

 private:
  //BTX
  bool isConProOut;
  //ETX
  vtkAiaGridReader(const vtkAiaGridReader &); // Not implemented
  void operator=(const vtkAiaGridReader &); // Not implemented };

#endif //__vtkAiaGridReader_h

I am guessing the parser is not understanding VTK_IO_EXPORT part of the declaration?!!

Any help would be apreciated.

cheers,

--
Armin Ghajar Jazi

PhD candidate at
Chair of Fluid Mechanics
Universität Siegen
Paul-Bonatz-Str. 9-11
Room A315
D-57068 Siegen
Germany

Phone: ++49-(0)271-740-4675
Fax     : ++49-(0)271-740-2666
E-mail: armin.ghajarjazi at uni-siegen.de
Internet: www.uni-siegen.de/fb11/lfst
_______________________________________________
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


More information about the ParaView mailing list