<div dir="auto"><div dir="auto">I recently updated the. example make to handle the old and new module system. Try the new version here.</div><div dir="auto"><br></div><div dir="auto"><a href="https://lorensen.github.io/VTKExamples/site/Cxx/Lighting/SpotLights/">https://lorensen.github.io/VTKExamples/site/Cxx/Lighting/SpotLights/</a><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 22, 2019, 2:16 PM BBerco <<a href="mailto:bebe0705@colorado.edu">bebe0705@colorado.edu</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have stumbled upon a weird behavior after upgrading vtk to 8.1.2 this<br>
morning via Homebrew.<br>
<br>
Basically, since this morning, adding VTK to a CMakeLists.txt without<br>
specifying the necessary components will cause a number of compilation<br>
errors to pop out (see error trace below). This syntax was fine until now in<br>
the "old" build system.<br>
<br>
I have been able to replicate the problem with a random example I pulled<br>
from Bill Lorensen's example website. Note that for both the CMakeLists.txt<br>
below, cmake will run just fine. It is only upon calling make that hell<br>
breaks loose.<br>
<br>
I've also noted that earlier versions of CMake (3.3 is the one I tested)<br>
seem to not be affected.<br>
<br>
- CMakeLists.txt, will compile with errors <br>
cmake_minimum_required(VERSION 3.12)<br>
project(BugDemo)<br>
find_package(VTK)<br>
include(${VTK_USE_FILE})<br>
add_executable(LightActor LightActor.cxx )<br>
target_link_libraries(LightActor PRIVATE ${VTK_LIBRARIES})<br>
<br>
<br>
- CMakeLists.txt, will compile fine<br>
cmake_minimum_required(VERSION 3.12)<br>
project(BugDemo)<br>
find_package(VTK REQUIRED vtkCommonCore)<br>
include(${VTK_USE_FILE})<br>
add_executable(LightActor LightActor.cxx )<br>
target_link_libraries(LightActor PRIVATE ${VTK_LIBRARIES})<br>
<br>
Any ideas?<br>
<br>
ps: here's the compiler error trace provided below<br>
<br>
Scanning dependencies of target main<br>
[ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o<br>
In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3:<br>
In file included from /usr/local/include/armadillo:26:<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error:<br>
no member named 'signbit' in the global namespace<br>
using ::signbit;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error:<br>
no member named 'fpclassify' in the global namespace<br>
using ::fpclassify;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error:<br>
no member named 'isfinite' in the global namespace; did you mean 'finite'?<br>
using ::isfinite;<br>
      ~~^<br>
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12:<br>
note: 'finite' declared here<br>
extern int finite(double)<br>
           ^<br>
In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3:<br>
In file included from /usr/local/include/armadillo:26:<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error:<br>
no member named 'isinf' in the global namespace<br>
using ::isinf;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error:<br>
no member named 'isnan' in the global namespace<br>
using ::isnan;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error:<br>
no member named 'isnormal' in the global namespace<br>
using ::isnormal;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:7: error:<br>
no member named 'isgreater' in the global namespace; did you mean<br>
'::std::greater'?<br>
using ::isgreater;<br>
      ^~<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29:<br>
note: '::std::greater' declared here<br>
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool><br>
                            ^<br>
In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3:<br>
In file included from /usr/local/include/armadillo:26:<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:7: error:<br>
no member named 'isgreaterequal' in the global namespace; did you mean<br>
'::std::greater_equal'?<br>
using ::isgreaterequal;<br>
      ^~<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29:<br>
note: '::std::greater_equal' declared here<br>
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool><br>
                            ^<br>
In file included from /Users/bbercovici/Desktop/testOmp/main.cpp:3:<br>
In file included from /usr/local/include/armadillo:26:<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error:<br>
no member named 'isless' in the global namespace<br>
using ::isless;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error:<br>
no member named 'islessequal' in the global namespace<br>
using ::islessequal;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error:<br>
no member named 'islessgreater' in the global namespace<br>
using ::islessgreater;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error:<br>
no member named 'isunordered' in the global namespace<br>
using ::isunordered;<br>
      ~~^<br>
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error:<br>
no member named 'isunordered' in the global namespace<br>
using ::isunordered;<br>
      ~~^<br>
13 errors generated.<br>
make[2]: *** [CMakeFiles/main.dir/main.cpp.o] Error 1<br>
make[1]: *** [CMakeFiles/main.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>