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