[vtkusers] ccmake not producing correct Makefile for Examples.
Dongbai Guo
guodongbai at gmail.com
Fri Mar 18 12:39:14 EST 2005
Thanks, got it.
Here is a brief summary of build intruction for people don't know how.
First build vtk to linuxBuild
>create ${DST_DIR}: linuxBuild/Example/Medical/Cxx
>cd ${DST_DIR}
>run ccmake with source dir ${EX_DIR}: ${SRC_DIR}/Examples/Medical/Cxx
>>t to toggle to advanced mode
>>set CMAKE_BUILD_TYPE to CMAKE_CXX_FLAGS
>>set CMAKE_EXCUTABLE_OUTPUT_PATH to ${DST_DIR}
>>set VTK_DIR to linuxBuild
>>type c to configure
>>type g to generate Makefiles
>make
Brad King wrote:
> Dongbai Guo wrote:
>
>> I would like to build all examples under ${VTK_SRC}/Examples.
>>
>> I turned BUILD_EXAMPLES to "ON"
>> but the make files produced in
>> ${VTK_BUILD}/Examples does not contain a single rule to
>> build a ".o" file or an executable.
>>
>> Anybody knows how to enforce ccmake to generate the correct
>> make file for Examples in the build dir?
>
>
> This is actually a VTK-4.x problem. The CMake input files to build
> the examples when you turn on BUILD_EXAMPLES were not written until
> recently in the CVS version of VTK. Unless you want to upgrade to the
> current CVS version of VTK you'll have to build the examples
> individually.
>
> -Brad
>
More information about the vtkusers
mailing list