[ITK] [ITK-users] Trouble compiling ITK 4.8.0 on Visual Studio 2013/12.0

Dženan Zukić dzenanz at gmail.com
Tue Jan 27 13:11:11 EST 2015


Hi Michael,

compile errors in the project can throw off IntelliSense. Once the project
is properly compiling, it takes some time to gather all the information
into a browsing database (*.sdf). Let VS scan all headers and generate this
file. It needs to be done independently for projects using ITK, I think.

In case IntelliSense is broken for a project, try closing VS, deleting its
.sdf file, and then reopening the project's solution file. This should
re-trigger an update of IntelliSense browsing database.

HTH

On Tue, Jan 27, 2015 at 10:43 AM, Michael Pinkert <mpinkert at wisc.edu> wrote:

> Hi Matt,
>
> I managed to get ITK built by building to a new folder, but I still do not
> understand how I am supposed to clear the build tree, as I doubt that is
> the
> correct solution.  I have googled the term, but I have not found anything
> that would indicate how I would delete the build tree, if clearing the
> cache
> and deleting the build folder do not count.
>
> I am still having more errors after trying to build it.  The first is an
> error in the compiler:
>
> command-line error: invalid macro definition:
>
> ..../ITK/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL.h"
>
> The next is related, in that I am still having trouble with the
> IntelliSense
> autocomplete not functioning in any of my projects, which was my purpose in
> updating visual studio.  Do you have any experience with these additional
> errors?  I believe the first error may be related to IntelliSense, due to a
> quick google turning up that error in relation to it, but nothing I've
> found
> has told me how to solve it.
>
> Best regards,
> Michael Pinkert
>
>
> Matt McCormick-2 wrote
> > Hi Michael,
> >
> > Instead of just clearing the cache, it is necessary to delete the
> > entry build tree when switching to a new compiler.
> >
> > HTH,
> > Matt
> >
> > On Mon, Jan 26, 2015 at 3:44 PM, Michael Pinkert <
>
> > mpinkert@
>
> > > wrote:
> >> Hi Matt,
> >>
> >> I am not sure what you mean by fresh build tree.  I cleared my cache in
> >> CMake and deleted the build folder for my old ITK installation, if that
> >> is
> >> what you mean.
> >>
> >> Best regards,
> >> Michale Pinkert
> >>
> >>
> >> Matt McCormick-2 wrote
> >>> Hi Michael,
> >>>
> >>> Did you start with a fresh build tree?
> >>>
> >>> Matt
> >>>
> >>> On Mon, Jan 26, 2015 at 3:30 PM, Michael Pinkert <
> >>
> >>> mpinkert@
> >>
> >>> > wrote:
> >>>> Hi all,
> >>>>
> >>>> I have been trying to compile ITK on Visual Studio 2013, as I was
> >>>> having
> >>>> problems with the autocomplete IntelliSense in Visual Studio 2010.
> >>>> However,
> >>>> when I try to build ITK I am running into two errors, and do not know
> >>>> what
> >>>> to do about them.  Does anyone have experience with the following?
> >>>>
> >>>> Error   1       error C1189: #error :  "No native data type can
> >>>> represent
> >>>> a 16-bit
> >>>> integer."
> >>>> C:\Build\ITK\Modules\ThirdParty\KWSys\src\itksys\FundamentalType.h
> >>>> 75      1       ITKIOLSM
> >>>>
> >>>> Error   2       error LNK1104: cannot open file
> >>>> '..\..\..\..\lib\Debug\ITKIOLSM-4.8.lib'
> >>>> C:\Build\ITK\Modules\Core\TestKernel\src\LINK   itkTestDriver
> >>>>
> >>>> Best regards,
> >>>> Michael Pinkert
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> View this message in context:
> >>>>
> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842.html
> >>>> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> >>>> _____________________________________
> >>>> Powered by 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.php
> >>>>
> >>>> 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://public.kitware.com/mailman/listinfo/insight-users
> >>> _____________________________________
> >>> Powered by 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.php
> >>>
> >>> 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://public.kitware.com/mailman/listinfo/insight-users
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586844.html
> >> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> >> _____________________________________
> >> Powered by 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.php
> >>
> >> 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://public.kitware.com/mailman/listinfo/insight-users
> > _____________________________________
> > Powered by 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.php
> >
> > 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://public.kitware.com/mailman/listinfo/insight-users
>
>
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Trouble-compiling-ITK-4-8-0-on-Visual-Studio-2013-12-0-tp7586842p7586846.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by 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.php
>
> 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://public.kitware.com/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150127/98f2f9be/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by 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.php

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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list