[Insight-users] ITK with VS 10 Win64

Gib Bogle g.bogle at auckland.ac.nz
Sun Jan 8 15:42:10 EST 2012


Thanks Bill, I should have remembered seeing this come up here on the mailing 
list.  I did look on the ITK v4 Migration Guide, but couldn't see anything about it.

Gib

On 9/01/2012 6:17 a.m., Bill Lorensen wrote:
> Rather than explicitly listing itk libraries you must use
> ${ITK_LIBRARIES}. This also works for earlier versions of ITK
>
> In your case change:
> TARGET_LINK_LIBRARIES(threshold ITKCommon ITKIO )
> to
> TARGET_LINK_LIBRARIES(threshold ${ITK_LIBRARIES} )
>
> On Sat, Jan 7, 2012 at 9:15 PM, Gib Bogle <g.bogle at auckland.ac.nz 
> <mailto:g.bogle at auckland.ac.nz>> wrote:
>
>     I have been building a program using ITK-3.20.0,  32-bit with VS8 and
>     64-bit with mingw64.  I have now installed and built ITK-4.0.0 with VS10
>     Win64.  All seems OK, but when I try to build my program with VS10 I get a
>     link error: cannot open input file 'ITKIO.lib'.
>
>     CMakeLists.txt is unchanged:
>
>     PROJECT(threshold)
>     FIND_PACKAGE(ITK)
>     IF(ITK_FOUND)
>     INCLUDE(${ITK_USE_FILE})
>     ELSE(ITK_FOUND)
>     MESSAGE(FATAL_ERROR
>     "ITK not found. Please set ITK_DIR.")
>     ENDIF(ITK_FOUND)
>
>     ADD_EXECUTABLE(threshold threshold.cpp)
>     TARGET_LINK_LIBRARIES(threshold ITKCommon ITKIO )
>
>     I see that both the ITK directory structure and the file naming have been
>     changed significantly since 3.20.0.  Whereas before the library files were
>     in bin\release, now they are in lib\release, and now the version number is
>     attached to the file names, e.g. there is ITKCommon-4.0.lib.  Nowhere can
>     I find a file called ITKIO-4.0.lib, although there are many files of the
>     form ITKIO***.lib.
>
>     How should I modify CMakeLists.txt to build my program with VS10 Win64 on
>     Windows 7?
>
>     Thanks
>     Gib
>     _____________________________________
>     Powered by www.kitware.com <http://www.kitware.com>
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>
>     Kitware offers ITK Training Courses, for more information visit:
>     http://www.kitware.com/products/protraining.html
>
>     Please keep messages on-topic and check the ITK FAQ at:
>     http://www.itk.org/Wiki/ITK_FAQ
>
>     Follow this link to subscribe/unsubscribe:
>     http://www.itk.org/mailman/listinfo/insight-users
>
>
>
>
> -- 
> Unpaid intern in BillsBasement at noware
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120109/7bdb1756/attachment.htm>


More information about the Insight-users mailing list