[vtkusers] CMake Error at CMake/vtkModuleAPI.cmake

John Anaia john.anaia at gmail.com
Mon May 19 22:00:14 EDT 2014


I could configure CMAKE and build VTK by turning off Build_Examples.
However, I really want to build some C++ examples. Is there any way to go
around some bad examples on CMAKE_GUI?

Thank you.
John



On Sat, May 10, 2014 at 12:45 AM, Christopher Mullins <
christopher.mullins at kitware.com> wrote:

> Most of these examples haven't been tested with VTK compiled with Qt
> 5.2.1. I'm in the process of checking these out and cleaning up the
> in-source examples, so thanks for reporting the problem! I'll try it out.
> Having looked at that example recently, I may have a fix which I'll have to
> test on Windows.
>
> In the meantime, is there a particular reason you need that adaptive mesh
> refinement example? If not I'd build without that option. If you're looking
> for a large cache of examples you might check out the wiki examples [1].
>
> Sorry that's not really a solution, but maybe someone else will have a
> suggestion.
>
> [1] http://www.vtk.org/Wiki/VTK/Examples
> On May 10, 2014 2:15 AM, "John Anaia" <john.anaia at gmail.com> wrote:
>
>> Dear vtkusers,
>>
>> I am having a hard time to configure CMake to build VTK from source.
>> After setting source and binary folders on CMakeGUI, I got two error
>> messages related to cmTryCompileExec. After skipping these error
>> messages, CMake proceeded to a normal completion. Then I enabled
>> Build_Examples, and got the following error message:
>>
>> CMake Error at CMake/vtkModuleAPI.cmake:120 (message):
>> Requested modules not available:
>>
>> vtkTestingCore
>> Call Stack (most recent call first):
>> C:/vtk61/vtkbin/VTKConfig.cmake:81 (vtk_module_config)
>> C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindVTK.cmake:73
>> (find_package)
>> Examples/AMR/Cxx/CMakeLists.txt:9 (find_package)
>>
>> My Configuration:
>>
>> CMake 2.8.212
>> VS 11 x64 Pro.
>> VTK 6.1
>> Qt 5.2.1-opengl  (not enabled yet)
>> Windows 8.1 Home
>> TCL 8.6.1  (Wrap was not enabled yet)
>>
>> Please help resolve this issue. Thank you all,
>> John
>>
>>
>>
>> _______________________________________________
>> 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 VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140519/14f41460/attachment.html>


More information about the vtkusers mailing list