<div dir="ltr">Hi guys!<div>I trying to compile my qtproject with vtk and the make returns this error:</div><div><br></div><div><div>[ 16%] Building CXX object CMakeFiles/BRPrint.dir/KI/Arduino_Serial.cpp.o</div><div>cc1plus: warning: /usr/local/lib/cmake/vtk-6.3/UseVTK.cmake: not a directory</div><div>[ 20%] Building CXX object CMakeFiles/BRPrint.dir/KI/File_Queue.cpp.o</div><div>cc1plus: warning: /usr/local/lib/cmake/vtk-6.3/UseVTK.cmake: not a directory</div><div>[ 25%] Building CXX object CMakeFiles/BRPrint.dir/KI/Repetier.cpp.o</div><div>cc1plus: warning: /usr/local/lib/cmake/vtk-6.3/UseVTK.cmake: not a directory</div><div>[ 29%] Building CXX object CMakeFiles/BRPrint.dir/KI/StringRepetierOps.cpp.o</div><div>cc1plus: warning: /usr/local/lib/cmake/vtk-6.3/UseVTK.cmake: not a directory</div><div>[ 33%] Building CXX object CMakeFiles/BRPrint.dir/Windows/aboutbrprint.cpp.o</div><div>cc1plus: warning: /usr/local/lib/cmake/vtk-6.3/UseVTK.cmake: not a directory</div><div>In file included from /home/lays/Dropbox/Br-Print/Pandora/./brprint3d.h:14:0,</div><div>                 from /home/lays/Dropbox/Br-Print/Pandora/Windows/aboutbrprint.cpp:4:</div><div>/home/lays/Dropbox/Br-Print/Pandora/./vtkWidget.h:1:25: fatal error: QVTKWidget2.h: No such file or directory</div><div> #include <QVTKWidget2.h></div><div>                         ^</div><div>compilation terminated.</div><div><br></div><div>Whats wrong?</div><div>My CmakeLists is like this:</div><div><br></div><div><div>cmake_minimum_required(VERSION 3.0.0)</div><div><br></div><div>set(CMAKE_AUTOMOC ON)</div><div>set(CMAKE_AUTOUIC ON)</div><div><br></div><div>if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUXX)</div><div><span class="" style="white-space:pre">        </span>set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ")</div><div>endif()</div><div><br></div><div>find_package(VTK REQUIRED)</div><div>find_package(OpenGL REQUIRED)</div><div>find_package(GLUT REQUIRED)</div><div>find_package(Qt5 REQUIRED COMPONENTS Core Widgets Test LinguistTools OpenGL)</div><div><br></div><div>include_directories(.</div><div><span class="" style="white-space:pre">      </span>${CMAKE_CURRENT_BINARY_DIR}</div><div><span class="" style="white-space:pre">        </span>${CMAKE_BINARY_DIR}</div><div><span class="" style="white-space:pre">        </span>${VTK_USE_FILE}<span class="" style="white-space:pre">   </span></div><div><span class="" style="white-space:pre">   </span>KI</div><div><span class="" style="white-space:pre"> </span>Windows</div><div>)</div><div><br></div><div>set(KI_SRCS</div><div><span class="" style="white-space:pre"> </span>KI/Arduino_Serial.cpp</div><div><span class="" style="white-space:pre">      </span>KI/File_Queue.cpp</div><div><span class="" style="white-space:pre">  </span>KI/Repetier.cpp</div><div><span class="" style="white-space:pre">    </span>KI/StringRepetierOps.cpp</div><div>)</div><div><br></div><div>set(Widgets_SRCS</div><div><span class="" style="white-space:pre">   </span>Windows/aboutbrprint.cpp</div><div><span class="" style="white-space:pre">   </span>Windows/documentation.cpp</div><div><span class="" style="white-space:pre">  </span>Windows/help.cpp</div><div><span class="" style="white-space:pre">   </span>Windows/legalwarning.cpp</div><div><span class="" style="white-space:pre">   </span>Windows/loading.cpp</div><div><span class="" style="white-space:pre">        </span>Windows/warning.cpp</div><div>)</div><div><br></div><div>set(Br-Print_SRCS</div><div><span class="" style="white-space:pre">       </span>arduinolistener.cpp</div><div><span class="" style="white-space:pre">        </span>brprint3d.cpp</div><div><span class="" style="white-space:pre">      </span>main.cpp</div><div><span class="" style="white-space:pre">   </span>points.cpp</div><div><span class="" style="white-space:pre"> </span>threadRotine.cpp</div><div><span class="" style="white-space:pre">   </span>vtkWidget.cpp</div><div>)</div><div><br></div><div>#qt5_add_translation(TRANSLATIONS EN_english.ts PT_portuguese.ts)</div><div><br></div><div>if(LINUX)</div><div><span class="" style="white-space:pre">    </span>install_files(TRANSLATIONS DESTINATION share/br-print/translations)</div><div><span class="" style="white-space:pre">        </span>add_custom_target(translations ALL DEPENDS ${TRANSLATIONS})</div><div>endif()</div><div><br></div><div>qt5_add_resources(Resources</div><div>#<span class="" style="white-space:pre">      </span>translations.qrc</div><div><span class="" style="white-space:pre">   </span>fonts.qrc</div><div><span class="" style="white-space:pre">  </span>images.qrc</div><div>)</div><div>add_custom_target(resources ALL DEPENDS ${Resources})</div><div><br></div><div>#add_dependencies(resources translations)</div><div><br></div><div>add_executable(BRPrint ${KI_SRCS} ${Widgets_SRCS} ${Br-Print_SRCS} ${Resources})</div><div><br></div><div>target_link_libraries(BRPrint Qt5::Core Qt5::Widgets Qt5::OpenGL pthread ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ${VTK_LIBRARIES})</div><div><br></div><div>enable_testing()</div></div><div><br></div><div><br></div><div>Any tips?</div><div>Thanks!</div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">__<div><b>Lays Rodrigues</b></div><div><b>Developer Front-End at Br-Print3D Project</b></div><div><b>Student of Computer Science at UFF/PURO</b></div><div>Organizadora da Semana da Computação UFF-PURO</div><div><a href="http://www.facebook.com/semanacomputacaopuro" target="_blank">www.facebook.com/semanacomputacaopuro</a></div><div><a href="http://www.facebook.com/brprint3d" target="_blank">www.facebook.com/brprint3d</a><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div>
</div></div>