<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I cleanly redid the configuration and compilation steps (of both RC1 and git master), and I don't get the problem any more.</div>
<div class="gmail_default">
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 10:09 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Dzenan,<br><br></div>Here is a patch to address your issues:<br><a href="http://review.source.kitware.com/#/c/11394/" target="_blank">http://review.source.kitware.com/#/c/11394/</a><br>
<br>Please register for a gerrit account so you can contribute in the future.<br>
<br></div>Thanks for your efforts to towards a better VTK.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Bill<br><br><div><div><div><div><div> </div></div>
</div></div></div></font></span></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">
On Thu, May 23, 2013 at 3:51 PM, Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Yes, I am using RC1 from the download page (<a href="http://www.vtk.org/files/release/6.0/vtk-6.0.0.rc1.zip" target="_blank">http://www.vtk.org/files/release/6.0/vtk-6.0.0.rc1.zip</a>).</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I will intersperse a few <span style="font-family:arial,sans-serif;font-size:13px">message() calls in </span><span style="font-family:arial,sans-serif;font-size:13px">CMakeLists.txt tomorrow and report the results. It is 9:51 pm here in Germany :D</span></div>
<div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 9:34 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Adding message(FATAL_ERROR "VTK_LIBRARIES: ${VTK_LIBRARIES}") to your<br>
CMakeLists.txt would be helpful. That variable is populated each time<br>
you call find_package(VTK COMPONENTS vtkModuleName NO_MODULE) with the<br>
module you ask for and all of its dependencies. If it is called<br>
without a COMPONENTS argument it defaults to containing all enabled<br>
modules - that looks like the case here with the config file perhaps<br>
being out of sync with the build for some reason.<br>
<br>
I can't reproduce your failure here, but will take a second look on<br>
Windows. Can you confirm you are building against VTK 6.0.0 RC1? It is<br>
possible you have some config files hanging around for the modules<br>
that were later disabled - I can try this on Windows later to see if<br>
it is an issue. Is you VTK_DIR referencing the build tree, or an<br>
installed VTK 6.0 in this case?<br>
<span><font color="#888888"><br>
Marcus<br>
</font></span><div><div><br>
On Thu, May 23, 2013 at 3:24 PM, Dženan Zukić <<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>> wrote:<br>
> Attached is the version of my CMakeLists.txt before I started meddling with<br>
> find_package(vtk). It makes not difference to change it to this:<br>
> FIND_PACKAGE(VTK 6.0 REQUIRED COMPONENTS vtkGUISupportQtOpenGL NO_MODULE)<br>
><br>
> Also, it is these 3 libraries which are included into projects input<br>
> erroneously:<br>
> vtkTestingGenericBridge.lib<br>
> vtkTestingIOSQL.lib<br>
> vtkTestingRendering.lib<br>
><br>
><br>
> On Thu, May 23, 2013 at 9:07 PM, Marcus D. Hanwell<br>
> <<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>> wrote:<br>
>><br>
>> On Thu, May 23, 2013 at 11:19 AM, Marcus D. Hanwell<br>
>> <<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>> wrote:<br>
>> > On Thu, May 23, 2013 at 11:13 AM, Dženan Zukić <<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>><br>
>> > wrote:<br>
>> >> Now I call vtk from CMakeLists like this:<br>
>> >> FIND_PACKAGE(VTK 6.0 REQUIRED COMPONENTS vtkGUISupportQtOpenGL<br>
>> >> NO_MODULE)<br>
>> >><br>
>> >> but when compiling the project I still get LNK1181 with<br>
>> >> vtkTestingGenericBridge.lib if I keep BUILD_TESTING set to off.<br>
>> >><br>
>> >> Setting BUILD_TESTING to 1 solves the issue (regardless of the way how<br>
>> >> find_package is called). But I think it is stupid to require users to<br>
>> >> enable<br>
>> >> building of internal tests just so their normal applications can link<br>
>> >> properly.<br>
>> >><br>
>> > No one is suggesting you should have to turn on testing for your<br>
>> > normal application to work. It looks like you have found a bug, and we<br>
>> > will work on ensuring it is fixed in the next rc. Thanks for testing,<br>
>> > and your feedback.<br>
>> ><br>
>> On looking into this further I am unable to reproduce it. I see you<br>
>> are doing this on Windows, and vtkTestingGenericBridge seems to be<br>
>> giving you the issue. This is only referenced by the vtkFiltersGeneric<br>
>> TEST_DEPENDS as far as I can tell, could you provide a fuller sample<br>
>> of your CMake code? It looks like you are trying to find<br>
>> vtkGUISupportQtOpenGL, which has no dependency on this module,<br>
>> printing the contents of ${VTK_LIBRARIES} would be useful, along with<br>
>> exact VTK version (RC1 I guess), compiler, steps to build VTK locally.<br>
>><br>
>> Thanks for reporting this issue, hopefully we can get to the bottom of<br>
>> this soon (I can give this a try on a Windows machine, but I don't see<br>
>> how vtkTestingGenericBridge is getting linked to from<br>
>> vtkGUISupportQtOpenGL to be honest - even with testing turned on).<br>
>><br>
>> Marcus<br>
><br>
><br>
</div></div></blockquote></div><br></div></div></div></div>
<br></div></div><div class="im">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></div></blockquote></div><br><br clear="all"><div class="im"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div></div>
</blockquote></div><br></div>