[vtkusers] ANNOUNCE: vtk 6.0.0.rc1 is available to download
Dženan Zukić
dzenanz at gmail.com
Thu May 23 15:24:04 EDT 2013
Attached is the version of my CMakeLists.txt before I started meddling with
find_package(vtk). It makes not difference to change it to this:
FIND_PACKAGE(VTK 6.0 REQUIRED COMPONENTS vtkGUISupportQtOpenGL NO_MODULE)
Also, it is these 3 libraries which are included into projects input
erroneously:
vtkTestingGenericBridge.lib
vtkTestingIOSQL.lib
vtkTestingRendering.lib
On Thu, May 23, 2013 at 9:07 PM, Marcus D. Hanwell <
marcus.hanwell at kitware.com> wrote:
> On Thu, May 23, 2013 at 11:19 AM, Marcus D. Hanwell
> <marcus.hanwell at kitware.com> wrote:
> > On Thu, May 23, 2013 at 11:13 AM, Dženan Zukić <dzenanz at gmail.com>
> wrote:
> >> Now I call vtk from CMakeLists like this:
> >> FIND_PACKAGE(VTK 6.0 REQUIRED COMPONENTS vtkGUISupportQtOpenGL
> NO_MODULE)
> >>
> >> but when compiling the project I still get LNK1181 with
> >> vtkTestingGenericBridge.lib if I keep BUILD_TESTING set to off.
> >>
> >> Setting BUILD_TESTING to 1 solves the issue (regardless of the way how
> >> find_package is called). But I think it is stupid to require users to
> enable
> >> building of internal tests just so their normal applications can link
> >> properly.
> >>
> > No one is suggesting you should have to turn on testing for your
> > normal application to work. It looks like you have found a bug, and we
> > will work on ensuring it is fixed in the next rc. Thanks for testing,
> > and your feedback.
> >
> On looking into this further I am unable to reproduce it. I see you
> are doing this on Windows, and vtkTestingGenericBridge seems to be
> giving you the issue. This is only referenced by the vtkFiltersGeneric
> TEST_DEPENDS as far as I can tell, could you provide a fuller sample
> of your CMake code? It looks like you are trying to find
> vtkGUISupportQtOpenGL, which has no dependency on this module,
> printing the contents of ${VTK_LIBRARIES} would be useful, along with
> exact VTK version (RC1 I guess), compiler, steps to build VTK locally.
>
> Thanks for reporting this issue, hopefully we can get to the bottom of
> this soon (I can give this a try on a Windows machine, but I don't see
> how vtkTestingGenericBridge is getting linked to from
> vtkGUISupportQtOpenGL to be honest - even with testing turned on).
>
> Marcus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130523/6faa08db/attachment.htm>
-------------- next part --------------
cmake_minimum_required(VERSION 2.6)
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} )
add_subdirectory(qe)
INCLUDE_DIRECTORIES(qe)
PROJECT(Spine CXX C)
find_path( EIGEN_DIR Eigen DOC "A path to Eigen libaray, a linear algebra solver" )
INCLUDE_DIRECTORIES( ${EIGEN_DIR} )
#find_path( LevMar_DIR levmar-2.6 DOC "A path to Levenberg-Marquardt library")
#INCLUDE_DIRECTORIES( ${LevMar_DIR} )
FIND_PACKAGE(OpenCV REQUIRED)
#message("OpenCV_LIBS=${OpenCV_LIBS}")
FIND_PACKAGE(TBB REQUIRED) #required by OpenCV for threaded object recognition
include_directories(${TBB_INCLUDE_DIRS})
link_directories(${TBB_LIBRARY_DIRS})
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
FIND_PACKAGE(Qt4)
SET(QT_USE_QTOPENGL 1)
SET(QT_USE_QTDESIGNER ON)
INCLUDE(${QT_USE_FILE})
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
SET(SAMPLE_SRCS
Spine.cxx
mainWindow.cpp
slicePainter.cpp
itkDatImageIO.cxx
itkDatImageIO.h
itkDatImageIOFactory.cxx
itkDatImageIOFactory.h
vec3.h
MainLogic.cpp
declarations.h
butterfly.cpp
qeUtil.cpp
LHstuff.cpp
itkStructureTensorImageFilter.h
itkStructureTensorImageFilter.txx
itkCustomCanny.h
itkCustomCanny.txx
voxelClassification.h
voxelClassification.cpp
vertebra.h
vertebra.cpp
polyfit.cpp
vtkOBJWriter.cxx
)
SET(SAMPLE_MOC_HDRS mainWindow.h MainLogic.h slicePainter.h)
SET(SAMPLE_UIS mainWindow.ui slicePainter.ui)
SET(SAMPLE_RCS mainWindow.qrc)
QT4_ADD_RESOURCES( SAMPLE_RC_SRCS ${SAMPLE_RCS} )
QT4_WRAP_UI( SAMPLE_UI_HDRS ${SAMPLE_UIS} )
QT4_WRAP_CPP( SAMPLE_MOC_SRCS ${SAMPLE_MOC_HDRS} )
ADD_EXECUTABLE(Spine ${SAMPLE_SRCS} ${SAMPLE_MOC_HDRS} ${SAMPLE_MOC_SRCS} ${SAMPLE_RC_SRCS} ${SAMPLE_UI_HDRS})
TARGET_LINK_LIBRARIES(Spine ${OpenCV_LIBS})
#TARGET_LINK_LIBRARIES(Spine ${LevMar_DIR}/${CMAKE_CFG_INTDIR}/levmar.lib)
TARGET_LINK_LIBRARIES(Spine ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(Spine ${ITK_LIBRARIES})
TARGET_LINK_LIBRARIES(Spine ${VTK_LIBRARIES})
TARGET_LINK_LIBRARIES(Spine QuadEdge)
More information about the vtkusers
mailing list