[Paraview] Problem compiling v3.10 + Python...

Stefan Melber Stefan.Melber at DLR.de
Wed Mar 23 03:25:55 EDT 2011


Hi David,

thats the solution: the ifdef for "DATE" and "TIME" - now it works ...

Best regards and thank you,

     Stefan
> Hi David, Stephan,
>
> The error does not appear to be related to the wrapper changes.
> According to your error log, the error occurs at this point in the
> vtkSQLDatabaseSchema header file:
>
>    enum DatabaseColumnType
>      {
>        SERIAL    = 0, // specifying the indices explicitly
>        SMALLINT  = 1,
>        INTEGER   = 2,
>        BIGINT    = 3,
>        VARCHAR   = 4,
>        TEXT      = 5,
>        REAL      = 6,
>        DOUBLE    = 7,
>        BLOB      = 8,
>        TIME      = 9,
>        DATE      = 10,
>        TIMESTAMP = 11
>      };
>
> One of these names is defined as a preprocessor macro in a header file
> somewhere. From the error line number, I think it is "TIME", but it could
> be one of the others.
>
> Stephan, try adding this near the top of the vtkSQLDatabaseSchema.h file:
>
> #ifdef TIME
> #undef TIME
> #endif
>
> If that doesn't work, try the other constant names until you find the right one.
>
>   - David
>
>
> On Tue, Mar 22, 2011 at 8:00 AM, David Partyka
> <david.partyka at kitware.com>  wrote:
>> Hi Stefan,
>> I am going to CC David Gobbi as he recently gave the Wrapping a major face
>> lift in VTK.
>> On Tue, Mar 22, 2011 at 6:42 AM, Stefan Melber<Stefan.Melber at dlr.de>  wrote:
>>> Hi,
>>>
>>> i tried to compile the 3.10 release of ParaView. Without pyton, everything
>>> is fine. However, enabling python, i got the output below.
>>>
>>> Any ideas / suggestions?
>>>
>>>       Stefan
>>>
>>>
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericGeometryFilter.cxx.o
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericClip.cxx.o
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericProbeFilter.cxx.o
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericDataSetTessellator.cxx.o
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericCutter.cxx.o
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericGlyph3DFilter.cxx.o
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericStreamTracer.cxx.o
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericOutlineFilter.cxx.o
>>> [ 24%] Building CXX object
>>> VTK/GenericFiltering/CMakeFiles/vtkGenericFiltering.dir/vtkGenericFilteringInstantiator.cxx.o
>>> Linking CXX shared library
>>> ../../bin/libvtkGenericFiltering.so
>>> For vtkGenericFiltering - updating
>>> vtkGenericFilteringHierarchy.txt
>>> [ 24%] Built target
>>> vtkGenericFiltering
>>> Scanning dependencies of target vtkGenericFilteringPythonD
>>> Linking CXX shared library
>>> ../../bin/libvtkGenericFilteringPythonD.so
>>> [ 24%] Built target
>>> vtkGenericFilteringPythonD
>>> Scanning dependencies of target vtkGenericFilteringPython
>>> Linking CXX shared module
>>> ../../bin/vtkGenericFilteringPython.so
>>> [ 24%] Built target
>>> vtkGenericFilteringPython
>>> [ 25%] Built target vtkIO
>>> [ 25%] Building CXX object
>>> VTK/IO/CMakeFiles/vtkIOPythonD.dir/vtkSQLDatabaseSchemaPython.cxx.o
>>> In file included from
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0.bin/VTK/IO/vtkSQLDatabaseSchemaPython.cxx:13:0:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:78:7:
>>> error: expected identifier before string constant
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:78:7:
>>> error: expected ‘}’ before string constant
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:78:7:
>>> error: expected unqualified-id before string constant
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:123:50:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:127:45:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:135:41:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:138:41:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: In
>>> function ‘int AddColumnToTable(const char*, int, const char*, int, const
>>> char*)’:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:140:12:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:140:36:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: At
>>> global scope:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:149:53:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:151:59:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: In
>>> function ‘int AddIndexToTable(const char*, int, const char*)’:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:153:12:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:153:35:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: At
>>> global scope:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:161:77:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:163:67:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: In
>>> function ‘int AddColumnToIndex(const char*, const char*, const char*)’:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:165:21:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:166:12:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:167:7:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:168:7:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: At
>>> global scope:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:178:73:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:181:73:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: In
>>> function ‘int AddTriggerToTable(const char*, int, const char*, const char*,
>>> const char*)’:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:183:12:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:183:37:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: At
>>> global scope:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:199:50:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:202:50:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: In
>>> function ‘int AddOptionToTable(const char*, const char*, const char*)’:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:204:12:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:204:36:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: At
>>> global scope:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: In
>>> function ‘void SetName(const char*)’:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:331:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: At
>>> global scope:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: ‘virtual’ outside class declaration
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: In
>>> function ‘char* GetName()’:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:332:3:
>>> error: invalid use of ‘this’ in non-member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h: At
>>> global scope:
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:378:2:
>>> error: expected unqualified-id before ‘protected’
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:380:26:
>>> error: expected constructor, destructor, or type conversion before ‘;’ token
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:387:2:
>>> error: expected unqualified-id before ‘private’
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:389:46:
>>> error: ‘void operator=(const vtkSQLDatabaseSchema&)’ must be a nonstatic
>>> member function
>>> /opt/PARAVIEW_3_10/ParaView-3.10.0/VTK/IO/vtkSQLDatabaseSchema.h:390:1:
>>> error: expected declaration before ‘}’ token
>>> make[2]: ***
>>> [VTK/IO/CMakeFiles/vtkIOPythonD.dir/vtkSQLDatabaseSchemaPython.cxx.o] Error
>>> 1
>>> make[1]: *** [VTK/IO/CMakeFiles/vtkIOPythonD.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> =================================================================
>>>
>>>                                      Stefan Melber-Wilkending
>>>                       _/
>>>                     _/_/             Fields of activities:
>>>                   _/  _/             -) High-Lift Research
>>>           _/_/_/_/_/_/_/_/_/_/       -) Complex Configurations
>>>         _/    _/    _/    _/         -) Numerical Wind-Tunnel
>>>       _/    _/    _/    _/           -) Wind-Tunnel Design
>>>     _/_/_/_/_/_/_/_/_/_/             -) Supercomputing
>>>           _/  _/  _      _           -) Visualisation Techniques
>>>           _/_/   | \ |  |_|          -) Glider-Aerodynamics
>>>           _/     |_/ |_ | \
>>>                                      German Aerospace Center, DLR
>>>                                      in the Helmholtz-Association
>>>    Phone ..: +49 531/295-2836        Institute of Aerodynamics
>>>    Fax. ...: +49 531/295-2914        and Flow Technology
>>>    Email ..: Stefan.Melber at dlr.de    Lilienthalplatz 7
>>>    Web ....: http://www.dlr.de/AS    D-38108 Braunschweig/Germany
>>> =================================================================
>>>
>>>
>>> _______________________________________________
>>> 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