swong1
April 6th, 2006, 02:06 PM
Hi, I wanted to do customized graphical visualization from my c++ program and I decided to try out vtk. I downloaded all the packages related to vtk from synaptic and cmake and try to run some of the example codes and guess what? It didn't work.
I tried
g++ Cone.cxx ---------Couldn't find the header files
g++ -I /usr/include/vtk/ Cone.cxx -----------/usr/share/ld Cannot open output file: permission denied collect2: ld returned 1 exit status
gcc -I /usr/include/vtk/ Cone.cxx ------------ same error message as above
g++ -I /usr/include/vtk/ -D /usr/share/vtkdata Cone.cxx -----------<command line>:1:1: error: macro names must be identifiers
cmake .
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineSystem.cmake:71:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeOutput.log for writting.
CMake Error: Could not open file for write in copy operation /usr/share/vtk/Tutorial/Step1/Cxx/CMakeSystem.cmake.tmp
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineSystem.cmake:75:
CONFIGURE_FILE Problem configuring file
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineCCompiler.cmake:62:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeOutput.log for writting.
CMake Error: Could not open file for write in copy operation /usr/share/vtk/Tutorial/Step1/Cxx/CMakeCCompiler.cmake.tmp
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineCCompiler.cmake:81:
CONFIGURE_FILE Problem configuring file
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineCXXCompiler.cmake:48:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeOutput.log for writting.
CMake Error: Could not open file for write in copy operation /usr/share/vtk/Tutorial/Step1/Cxx/CMakeCXXCompiler.cmake.tmp
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineCXXCompiler.cmake:60:
CONFIGURE_FILE Problem configuring file
-- Check for working C compiler: gcc
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeTestCCompiler.cmake:8:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeTmp/testCCompiler.c for writting.
CMake Error: Failed to create CMakeList file for /usr/share/vtk/Tutorial/Step1/Cxx/CMakeTmp/CMakeLists.txt
-- Check for working C compiler: gcc -- broken
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeTestCCompiler.cmake:20:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeError.log for writting.
The C compiler "gcc" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
-- Configuring done
CMake Error: Unable to open cache file for save. /usr/share/vtk/Tutorial/Step1/Cxx/CMakeCache.txt
This is as far as I get. What am I missing?
I tried
g++ Cone.cxx ---------Couldn't find the header files
g++ -I /usr/include/vtk/ Cone.cxx -----------/usr/share/ld Cannot open output file: permission denied collect2: ld returned 1 exit status
gcc -I /usr/include/vtk/ Cone.cxx ------------ same error message as above
g++ -I /usr/include/vtk/ -D /usr/share/vtkdata Cone.cxx -----------<command line>:1:1: error: macro names must be identifiers
cmake .
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineSystem.cmake:71:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeOutput.log for writting.
CMake Error: Could not open file for write in copy operation /usr/share/vtk/Tutorial/Step1/Cxx/CMakeSystem.cmake.tmp
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineSystem.cmake:75:
CONFIGURE_FILE Problem configuring file
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineCCompiler.cmake:62:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeOutput.log for writting.
CMake Error: Could not open file for write in copy operation /usr/share/vtk/Tutorial/Step1/Cxx/CMakeCCompiler.cmake.tmp
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineCCompiler.cmake:81:
CONFIGURE_FILE Problem configuring file
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineCXXCompiler.cmake:48:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeOutput.log for writting.
CMake Error: Could not open file for write in copy operation /usr/share/vtk/Tutorial/Step1/Cxx/CMakeCXXCompiler.cmake.tmp
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeDetermineCXXCompiler.cmake:60:
CONFIGURE_FILE Problem configuring file
-- Check for working C compiler: gcc
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeTestCCompiler.cmake:8:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeTmp/testCCompiler.c for writting.
CMake Error: Failed to create CMakeList file for /usr/share/vtk/Tutorial/Step1/Cxx/CMakeTmp/CMakeLists.txt
-- Check for working C compiler: gcc -- broken
CMake Error: Error in cmake code at
/usr/share/CMake/Modules/CMakeTestCCompiler.cmake:20:
FILE Internal CMake error when trying to open file: /usr/share/vtk/Tutorial/Step1/Cxx/CMakeError.log for writting.
The C compiler "gcc" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
-- Configuring done
CMake Error: Unable to open cache file for save. /usr/share/vtk/Tutorial/Step1/Cxx/CMakeCache.txt
This is as far as I get. What am I missing?