<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br><hr id="stopSpelling">From: nataliehapp@hotmail.com<br>To: kmorel@sandia.gov<br>Subject: RE: [Paraview] error building my code<br>Date: Mon, 12 Jan 2009 10:26:49 +0100<br><br>
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>
Hi!<br>Very well, I used the //BTX and //ETX flags wherever I used the STL classes, but now I have another problem:<br>Building the code, I get the following error:<br><br>Building CXX object Plugins/CMakeFiles/VdcWriter.dir/moc_VdcWriterPluginImplementation.obj<br>In file included from C:\ParaviewSource\build\Plugins\VdcWriterPluginImplementation.h:38,<br>from C:\ParaviewSource\build\Pluigins\moc_VDCWriterPluginImplementation.cxx:10:<br>C:\ParaviewSource\build\Plugins\pqPlugin.h:36:23 QObjectList:No such file or directory<br>...<br><br>First it asked for the file pqPlugin.h , which I copied to C:/ParaviewSource/build/Plugins,<br>but the file QObjectList.h I do not find even in the Qt-directory. Where do I get that file from or how can I work around that?<br><br>thx,<br>Natalie<br><br><br><hr id="EC_stopSpelling">From: kmorel@sandia.gov<br>To: paul.m.edwards@gmail.com; nataliehapp@hotmail.com<br>CC: paraview@paraview.org<br>Date: Fri, 9 Jan 2009 08:20:22 -0700<br>Subject: Re: [Paraview] error building my code<br><br><title>Re: [Paraview] error building my code</title>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">The error that you are getting is actually from the “client-server” wrapper that is generating the code to marshal and unmarshal function calls between ParaView client and server. I agree that the problem is most likely caused by the use of STL classes. The parser does not handle these, so you will have to wrap any portion of your header using STL with //BTX & //ETX flags. That is, have a line “//BTX” at the start of the portion you want the wrapper to ignore and a line “//ETX at the end.<br>
<br>
BTW, when including an STL header file, you should prefix the file with vtkstd. That is, use “#include <vtkstd/vector>” and “#include <vtkstd/string>”. The VTK build creates these special include files to help make your STL use more portable. Also, you should prefix all of the STL classes and functions with vtkstd:: rather than std:: (or use the vtkstd namespace in you cxx file). Again, VTK creates the vtkstd namespace to be portable to STL implementations that do not use the std namespace correctly.<br>
<br>
-Ken<br>
<br>
On 1/9/09 7:43 AM, "Paul Edwards" <<a>paul.m.edwards@gmail.com</a>> wrote:<br>
<br>
</span></font><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">One problem is you need the std:: prefix before string and vector.<br>
<br>
Regards,<br>
Paul<br>
<br>
2009/1/9 Natalie Happenhofer <<a>nataliehapp@hotmail.com</a>><br>
</span></font><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Hi!<br>
I encounter yet another problem which is, I believe, independent from the library-linking issue. <br>
Trying to build my code (vtkVdcWriter.h and vtkVdcWriter.cxx) within paraview and expecting all the linker errors, I get the following error:<br>
<br>
[99%] Generating vtkVdcWriterClientServer.cxx <br>
syntax error<br>
***SYNTAX ERROR found in parsing the header file C:/ParaviewSource/ParaView3/Plugins/vtkVdcWriter.h before line 49 ***<br>
...<br>
<br>
I believe it´s an error thrown by the Qt. Does anyone know what´s the problem here (the vtkVdcWriter.h file is posted below) or at least, how I can get an error message which is at least a bit more specific?<br>
<br>
vtkVdcWriter.h:<br>
#ifndef _vtkVdcWriter_h<br>
#define _vtkVdcWriter_h<br>
<br>
#include "vtkProcessObject.h"<br>
#include "vtkDataSet.h"<br>
#include <vector><br>
#include <string><br>
<br>
<br>
class VTK_EXPORT vtkVdcWriter : public vtkProcessObject<br>
{<br>
public:<br>
static vtkVdcWriter *New();<br>
vtkTypeRevisionMacro(vtkVdcWriter,vtkProcessObject);<br>
void PrintSelf(ostream& os, vtkIndent indent);<br>
<br>
//Description:<br>
// Set or get the file name of the vdc file.<br>
virtual void SetFileName(const char* fname);<br>
virtual const char* GetFileName();<br>
<br>
//Description:<br>
// Set the input data set.<br>
virtual void SetInput(vtkDataSet* ds);<br>
<br>
// Description:<br>
// Get any input of this filter.<br>
vtkDataObject *GetInput(int idx);<br>
vtkDataObject *GetInput() <br>
{return this->GetInput( 0 );}<br>
<br>
//Description:<br>
// Write the XDMF file.<br>
void Write();<br>
<br>
//routines from vapor vdfcreate<br>
int cvtToOrder(const char *from, void *to);<br>
int cvtToExtents(const char *from, void *to);<br>
int cvtTo3DBool(const char *from, void *to);<br>
int getUserTimes(const char *path, vector <double> &timevec); <br>
<br>
int WriteVDF(unsigned int* dims, int numts, int level, string coordsystem, string metafilename, string var);<br>
<br>
<br>
protected:<br>
vtkVdcWriter();<br>
~vtkVdcWriter();<br>
<br>
vtkSetStringMacro(FileNameString);<br>
vtkSetStringMacro(MetaFileName);<br>
vtkSetStringMacro(DataFileName);<br>
char *FileNameString;<br>
char *MetaFileName;<br>
char *DataFileName;<br>
};<br>
#endif /* _vtkVdcWriter_h */<br>
<br>
<br>
Could it be a problem using STL-classes here?<br>
<br>
thx for any piece of advice,<br>
<font color="#888888">Natalie<br>
</font><br>
<br>
<hr align="center" size="3" width="100%">¡Ingresa ahora a MSN! ¿Quieres saber cómo va a estar el clima mañana? <<a>http://tiempo.latam.msn.com/</a>> <br>
<br>
_______________________________________________<br>
ParaView mailing list<br>
<a>ParaView@paraview.org</a><br>
<a>http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font><font size="1"><font face="Monaco, Courier New"><span style="font-size: 7.5pt;"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a>kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a>http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font><br><hr>¡Descúbrelo! <a href="http://www.microsoft.com/latam/windows/windowslive/">¿Qué puedes hacer con el nuevo Windows Live?</a><br /><hr />¡Descúbrelo! <a href='http://www.microsoft.com/latam/windows/windowslive/' target='_new'>¿Qué puedes hacer con el nuevo Windows Live?</a></body>
</html>