<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Yep, just figured that out, thanks!</div><div dir="ltr"><br></div><div dir="ltr"> Unfortunately, I'm still having a problem just with IOFFMPEG - I need it for 'vtkFFMPEGVideoSource.h', but mineview cmake reports:</div><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">-- Could NOT find FFMPEG (missing: FFMPEG_INCLUDE_DIRS FFMPEG_LIBRARIES avformat avcodec avutil swscale) (Required is at least version "4.0")<br>-- Could not find the VTK package due to a missing dependency: FFMPEG<br>CMake Warning at CMakeLists.txt:5 (find_package):<br> Found package configuration file:<br> C:/akit/vtk/build/lib/cmake/vtk-8.90/vtk-config.cmake<br> but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT<br> FOUND. Reason given by package:<br> Could not find the VTK package with the following required components:<br> IOFFMPEG.</blockquote><div dir="ltr"><br></div><div>I'm setting <span style="background-color:transparent;color:rgb(0,0,0);font-family:Arial;font-size:11pt;white-space:pre-wrap">FFMPEG_ROOT to compile vtk, so then if I set it for my app, I get a warning:</span></div><div><span style="background-color:transparent;color:rgb(0,0,0);font-family:Arial;font-size:11pt;white-space:pre-wrap"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap">CMake Warning (dev) at C:/akit/vtk/build/lib/cmake/vtk-8.90/VTK-vtk-module-find-packages.cmake:279 (find_package):<br></span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"> Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.<br></span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"> Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy<br></span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"> command to set the policy and suppress this warning.</span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap">
</span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"> CMake variable FFMPEG_ROOT is set to:</span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap">
</span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"> c:/akit/mineview/src/ffmpeg</span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap">
</span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"> For compatibility, CMake is ignoring the variable.<br></span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap">Call Stack (most recent call first):<br></span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"> C:/akit/vtk/build/lib/cmake/vtk-8.90/vtk-config.cmake:62 (include)<br></span></font></span><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"> CMakeLists.txt:5 (find_package)</span></font></span></blockquote><div><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap"><br></span></font></span></div><div><span style="background-color:transparent"><font color="#000000" face="Arial"><span style="font-size:14.6667px;white-space:pre-wrap">But my app compiles! So I'm not sure about the warning?</span></font></span></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 10, 2019 at 1:37 PM Ben Boeckel <<a href="mailto:ben.boeckel@kitware.com">ben.boeckel@kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Jan 10, 2019 at 12:24:07 -0500, Aron Helser wrote:<br>
> Sorry, I should have started with the original problem. I started with this<br>
> file:<br>
> <br>
> cmake_minimum_required(VERSION 3.3 FATAL_ERROR)<br>
> PROJECT (mineview)<br>
> find_package(VTK REQUIRED)<br>
> vtk_module_config(VTK<br>
> vtkCommonCore<br>
> vtkCommonDataModel<br>
> vtkFiltersGeneral<br>
> vtkIOFFMPEG<br>
> vtkIOImage<br>
> vtkIOXML<br>
> vtkInteractionStyle<br>
> vtkRenderingOpenGL2<br>
> vtkRenderingOpenVR<br>
> )<br>
> include(${VTK_USE_FILE})<br>
> <br>
> add_executable(mineview MACOSX_BUNDLE mineview.cxx Lobby.cxx View.cxx<br>
> AudioHandler.cxx)<br>
> target_link_libraries(mineview ${VTK_LIBRARIES} Xaudio2.lib opengl32<br>
> winmm.lib)<br>
> <br>
> but "vtk_module_config" doesn't exist anymore, right? So I tried to change<br>
> to this:<br>
> find_package(VTK<br>
> COMPONENTS<br>
> vtkCommonCore<br>
> ...<br>
> <br>
> but then it complains:<br>
> <br>
> CMake Warning at CMakeLists.txt:5 (find_package):<br>
> Found package configuration file:<br>
> <br>
> C:/akit/vtk/build/lib/cmake/vtk-8.90/vtk-config.cmake<br>
> <br>
> but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT<br>
> FOUND. Reason given by package:<br>
> <br>
> Could not find the VTK package with the following required components:<br>
> vtkCommonCore.<br>
> <br>
> <br>
> Thus I am confused. :)<br>
> Hope those breadcrumbs help?<br>
<br>
COMPONENTS are now `CommonCore` and `FiltersGeneral` since they end up<br>
like `VTK::CommonCore`. I suppose the components list could be<br>
preprocessed to detect a leading `vtk` and remove it (warning that that<br>
name is deprecated).<br>
<br>
--Ben<br>
</blockquote></div></div>