[Insight-users] Using ITK libraries without CMAKE

Luis Ibanez luis.ibanez at kitware.com
Sat May 21 15:09:42 EDT 2011


Hi Sameer,

You maybe attempting to build ITK in a directory whose path
is too long for the capacity of the Visual Studio command line.

Trying putting the source code of ITK in a top level directory
such as:

                                          C:\src\ITK

and the binary directory in a similar top level directory;

                                          C:\bin\ITK


         Luis


-----------------------------------------------------
On Wed, May 18, 2011 at 3:37 AM, Sameer Zaheer <bless.sins at gmail.com> wrote:
> Hi Dan,
>
> For one, this is what I'm getting when I try to build ITKCommon:
>
> 3>..\..\..\..\..\InsightToolkit-3.20.0\Utilities\vxl\core\vnl\vnl_math.cxx(155):
> fatal error C1017: invalid integer constant expression
>
> The line this is referring to is:
>
> # if VXL_BIG_ENDIAN
>
> The file can be accessed here:
> http://www.lems.brown.edu/vision/vxl_doc/html/core/vnl/html/vnl__math_8cxx-source.html
>
> Note there's a difference of one line from the link to the file I'm
> using. That is because the file I'm using is missing the following
> line (which I think is irrelevant to the error):
>
> const double vnl_math::euler
> VCL_STATIC_CONST_INIT_FLOAT_DEFN( 0.57721566490153286061 );
>
> Thanks and your help is appreciated,
>
> Sameer
>
> On Tue, May 17, 2011 at 10:49 PM, Dan Mueller <dan.muel at gmail.com> wrote:
>> Hi Sameer,
>>
>>> Any help is appreciated.
>> My advice is to use CMake :P From personal experience, it will save
>> you a lot of time and effort. Is there a reason you can't use CMake
>> for the project from which you want to use ITK?
>>
>> Cheers, Dan
>>
>> On 17 May 2011 14:19, Sameer Zaheer <bless.sins at gmail.com> wrote:
>>> Hi,
>>>
>>> I tried downloading ITK and building all the libraries and it failed giving
>>> various errors. I started googling the errors but eventually gave up as
>>> there were too many. Since I really only need one class (maybe two), I was
>>> wondering if I could copy and past the source files for that into the folder
>>> I'm using and then build it with MS Visual Studio?
>>>
>>> The class I'm talking about it is:
>>>
>>> itkLineIterator
>>>
>>> Besides adding #include <itkLineIterator.h> to the top of my code's file,
>>> what else would I have to do? Any help is appreciated.
>>>
>>> Thanks,
>>>
>>> --
>>> Sameer Zaheer
>>> University of Toronto
>>
>
>
>
> --
> Sameer Zaheer
> University of Toronto
> _____________________________________
> 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.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
>


More information about the Insight-users mailing list