[Paraview] compiling Plugins
Armin Ghajar Jazi
armin.ghajarjazi at uni-siegen.de
Tue Sep 25 05:42:21 EDT 2012
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
More information about the ParaView
mailing list