[vtkusers] Error Generating vtkGLSLShaderLibrary.h

Carl Trapani carl at skytopsoftware.com
Fri Feb 6 14:02:18 EST 2009


Hi All,

I'm stumped and hoping someone can help me out. I'm trying to compile 
vtk-5.2.1 (out-of-source build) using:
-Eclipse CDT 5 (NOT 4)
-MinGW 5.1.3 ( gcc (GCC) 3.4.5 (mingw-vista special r3) )
-MSYS 1.0.10 (GNU Make version 3.79.1, ...)
-cmake-gui(beta) 2.6.1
-Win32 (Vista + SP1)

Here is what I do:
1) open a command prompt and set path to include C:\MinGW\bin (for gcc) 
and C:\msys\1.0\bin (for make)
2) run cmake-gui.exe from command prompt with path set from 1). I set 
the src and build dirs as:
    C:/projects/vtk/vtk-5.2.1/vtk-src
    C:/projects/vtk/vtk-5.2.1/vtk-build-static-cdt4
I set the Generator to "Eclipse CDT4 - Unix Makefiles" (IS THIS THE 
RIGHT CHOICE?).
Configure and set VTK_INSTALL_PREFIX and VTK_DATA_ROOT.
Configure again accepting defaults for BUILD_TESTING, VTK_USE_INFOVIS, 
VTK_USE_RENDERING, VTK_USE_VIEWS.
Generate (no problems).
3) Open Eclipse and import existing project at 
C:/projects/vtk/vtk-5.2.1/vtk-build-static-cdt4
NOTE: path alterations made in 1) are NOT in effect now. C:\MinGW\bin 
and C:\msys\1.0\bin are NOT on the path.
4) Then I get this error after some compilation:
---------------------------
ProcessShader.exe - Unable To Locate Component
---------------------------
This application has failed to start because mingwm10.dll was not found. 
Re-installing the application may fix this problem.
---------------------------
OK   
---------------------------

But, mingwm10.dll is at C:\MinGW\bin ??

Below is the Eclipse console output for the error:
------ console output-----------
[  9%] Generating vtkGLSLShaderLibrary.h
cd 
C:/projects/vtk/vtk-5.2.1/vtk-build-static-cdt4/Utilities/MaterialLibrary 
&& ../../bin/ProcessShader.exe 
C:/projects/vtk/vtk-5.2.1/vtk-build-static-cdt4/Utilities/MaterialLibrary/vtkGLSLShaderLibrary.h 
vtkShaderGLSL Code GetCode 
C:/projects/vtk/vtk-5.2.1/vtk-src/Utilities/MaterialLibrary/GLSLShaders/TestAppVarFrag.glsl 
C:/projects/vtk/vtk-5.2.1/vtk-src/Utilities/MaterialLibrary/GLSLShaders/TestVertex.glsl 
C:/projects/vtk/vtk-5.2.1/vtk-src/Utilities/MaterialLibrary/GLSLShaders/TestVtkPropertyFrag.glsl 
C:/projects/vtk/vtk-5.2.1/vtk-src/Utilities/MaterialLibrary/GLSLShaders/TestMatrixFrag.glsl 
C:/projects/vtk/vtk-5.2.1/vtk-src/Utilities/MaterialLibrary/GLSLShaders/TestScalarVectorFrag.glsl 
C:/projects/vtk/vtk-5.2.1/vtk-src/Utilities/MaterialLibrary/GLSLShaders/Twisted.glsl
make[2]: *** [Utilities/MaterialLibrary/vtkGLSLShaderLibrary.h] Error 53
make[2]: Leaving directory `/c/projects/vtk/vtk-5.2.1/vtk-build-static-cdt4'
make[1]: *** 
[Utilities/MaterialLibrary/CMakeFiles/vtkMaterialLibraryConfiguredFiles.dir/all] 
Error 2
make[1]: Leaving directory `/c/projects/vtk/vtk-5.2.1/vtk-build-static-cdt4'
make: *** [all] Error 2
-------------------------------

Any suggestions would be greatly appreciated. I think I'll try rolling 
back to Eclipse CDT4 and see if that makes a difference.

Thanks,
Carl Trapani

PS - Yes, I've tried this twice, cleaning out the build directory before 
CMake re-generation. I have not tried using latest vtk source from CVS.



More information about the vtkusers mailing list