[vtkusers] Compilation problem

Peter peter.bloomfield at camhpet.ca
Fri Mar 18 13:20:53 EDT 2011


Hello,

I am trying to compile VTK 5.6.1 on a machine running openSuSE 11.4, gcc version 4.5.1

After going through cmake, I type 'make' and all goes well until I get to the following, and the compilation stops. I had 
previously compiled this under openSuSE 11.3, which I think was gcc version 4.5.

Can anyone point me in the right direction to resolve this, thanks in advance,

Peter



[ 53%] Python Wrapping - generating vtkSQLDatabaseSchemaPython.cxx
[ 53%] Building CXX object IO/CMakeFiles/vtkIOPythonD.dir/vtkSQLDatabaseSchemaPython.cxx.o                                                                                             
In file included from /home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchemaPython.cxx:10:0:                                                                            
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:70:7: error: expected identifier before string constant
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:70:7: error: expected ‘}’ before string constant
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:70:7: error: expected unqualified-id before string 
constant
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:116:73: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:120:45: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:126:56: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:132:56: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: In function ‘int AddColumnToTable(const char*, int, 
const char*, int, const char*)’:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:134:12: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:134:36: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: At global scope:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:143:52: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:147:52: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: In function ‘int AddIndexToTable(const char*, int, 
const char*)’:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:149:12: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:149:35: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: At global scope:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:156:47: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:160:53: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: In function ‘int AddColumnToIndex(const char*, const 
char*, const char*)’:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:162:21: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:163:12: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:164:36: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:165:36: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: At global scope:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:172:79: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:178:79: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: In function ‘int AddTriggerToTable(const char*, int, 
const char*, const char*, const char*)’:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:180:12: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:180:37: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: At global scope:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: In function ‘void SetName(const char*)’:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:313:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: At global scope:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: ‘virtual’ outside class declaration
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: In function ‘char* GetName()’:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:314:3: error: invalid use of ‘this’ in non-member 
function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h: At global scope:
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:362:2: error: expected unqualified-id before ‘protected’
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:364:26: error: expected constructor, destructor, or type 
conversion before ‘;’ token
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:371:2: error: expected unqualified-id before ‘private’
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:373:46: error: ‘void operator=(const 
vtkSQLDatabaseSchema&)’ must be a nonstatic member function
/home/peter/Src/Linux/ToolKits/VTK/V5.6.1/VTK/IO/vtkSQLDatabaseSchema.h:374:1: error: expected declaration before ‘}’ token
make[2]: *** [IO/CMakeFiles/vtkIOPythonD.dir/vtkSQLDatabaseSchemaPython.cxx.o] Error 1
make[1]: *** [IO/CMakeFiles/vtkIOPythonD.dir/all] Error 2
make: *** [all] Error 2

-- 
Peter M. Bloomfield
Physicist,
PET Centre,
Centre for Addiction and Mental Health,
250 College St.,
Toronto, Ontario,
Canada M5T 1R8
Tel: 416 535 8501 Ext. 4243



More information about the vtkusers mailing list