[vtkusers] ANNOUNCE: vtk 6.0.0.rc1 is available to download
Dženan Zukić
dzenanz at gmail.com
Thu May 23 11:13:54 EDT 2013
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.
On Thu, May 23, 2013 at 4:51 PM, Marcus D. Hanwell <
marcus.hanwell at kitware.com> wrote:
> The Qt QVTK kit was split into several modules, depending on what you
> want vtkGUISupportQt contains several of the standard classes,
> vtkGUISupportQtOpenGL a few more, and then vtkGUISupportQtSQL or
> vtkGUISupportQtWebkit may have what you want. It sounds like the
> testing issues are linked to building examples with testing disabled.
> If you enable the Qt group in the CMake GUI then you should get the
> appropriate modules in your VTK_LIBRARIES variable,
>
> http://vtk.org/Wiki/VTK/Build_System_Migration contains more
> information on finding and linking to VTK modules in your application.
> I can add some notes there about Qt.
>
> On Thu, May 23, 2013 at 4:43 AM, Dženan Zukić <dzenanz at gmail.com> wrote:
> > When I remove QVTK from CMakeLists, the following 3 libraries cannot be
> > found:
> > vtkTestingGenericBridge.lib
> > vtkTestingIOSQL.lib
> > vtkTestingRendering.lib
> >
> > The rest of the VTK libraries are specified with full path, like this:
> > D:\SDK\vtk-6.0.0\lib\Release\vtkalglib-6.0.lib
> > D:\SDK\vtk-6.0.0\lib\Release\vtkChartsCore-6.0.lib
> >
> > If I remove those 3 offending libraries from dependency list, the program
> > fully links and runs properly. And it does not matter whether it VTK was
> > compiled as static or dynamic libraries.
> >
> > Also, if I enable BUILD_TESTING, then it works without additional
> > modifications.
> >
> > Bottom line: some of the testing modules were needlessly referenced by
> other
> > modules, and QVTK must no longer be specified in project's CMakeLists.
> >
> >
> > On Wed, May 22, 2013 at 10:23 PM, Dženan Zukić <dzenanz at gmail.com>
> wrote:
> >>
> >> I currently have this:
> >> TARGET_LINK_LIBRARIES(
> >> MyProject
> >> ${VTK_LIBRARIES} QVTK)
> >>
> >> When I switched from naming all libs to ${VTK_LIBRARIES} approach, I
> >> remember I needed to add QVTK because it was not working otherwise. I
> am now
> >> at home, I will check tomorrow whether it works if I remove QVTK.
> >>
> >>
> >> On Wed, May 22, 2013 at 9:28 PM, David Doria <daviddoria at gmail.com>
> wrote:
> >>>
> >>> On Wed, May 22, 2013 at 12:48 PM, Dženan Zukić <dzenanz at gmail.com>
> wrote:
> >>>>
> >>>> With VTK6 itself compiled, I tried switching my project to the new
> >>>> version.
> >>>> I first tried building with static settings. When I started getting
> >>>> error:
> >>>> LINK : fatal error LNK1181: cannot open input file 'QVTK.lib'
> >>>>
> >>>> I looked around for solutions. This is what I found:
> >>>> http://www.vtk.org/Wiki/VTK/Tutorials/QtSetup (VTK_Group_Qt and
> >>>> BUILD_SHARED_LIBS)
> >>>> but even after following this, the error remains.
> >>>>
> >>>> Does anyone have suggestions about what to do?
> >>>
> >>>
> >>> Do you have a
> >>>
> >>> target_link_libraries(YourProject [something] QVTK)
> >>> ?
> >>>
> >>> If so, you can replace it with simply
> >>> target_link_libraries(YourProject ${VTK_LIBRARIES})
> >>>
> >>> and QVTK will work (assuming you are still doing what you mentioned
> about
> >>> turning on VTK_Group_Qt, etc.)
> >>>
> >>> David
> >>>
> >>
> >>
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130523/828f3a28/attachment.htm>
More information about the vtkusers
mailing list