[Insight-users] (no subject) ITK + QT

Luis Ibanez luis.ibanez at kitware.com
Mon Nov 30 07:41:03 EST 2009


Hi Fernando,

Thanks for letting us know that you found a solution.

It would seem that the problem was still related to
your CMakeLists.txt file.

For the long run, it will be useful to compare your
initial CMakeLists.txt file with the one in Auxiliary/
QtViewer.


    Regards,


           Luis

----------------------------------------------------------------
On Fri, Nov 27, 2009 at 2:31 AM, Fernando López Mir
<ferlomir at labhuman.i3bh.es> wrote:
> Hi Luis, but This library is included ..., but I found yerterday a solution. I compiled the application auxiliary/ qtviewer. I removed the files of this project and added muy own files, and the problem is disappeared. I know that is not the best solution but for me is enough ...
>
>
> Thanks very much Luis
>
>
>
> Fernando López Mir
> Investigador.
>
> ferlomir at labhuman.i3bh.es
>
> LabHuman - Human Centered Technology
>
> Instituto Interuniversitario de Investigación en Bioingeniería
> y Tecnología Orientada al Ser Humano (UPV)
> Ciudad Politécnica de la Innovación - Cubo Azul - Edif. 8B - Acceso N
> Camino de Vera s/n, 46022 - Valencia (España)
> Tel:  +34 96 387 75 18 (Ext. 77518)
> Fax: +34 96 387 95 10
>
> www.labhuman.com
>
> -----Mensaje original-----
> De: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org] En nombre de Luis Ibanez
> Enviado el: jueves, 26 de noviembre de 2009 17:55
> Para: Fernando López Mir
> CC: ITK
> Asunto: Re: [Insight-users] (no subject)
>
> Hi Fernando,
>
> You are simply missing to include ITKIO in the list of
> libraries that you have to link against.
>
> Edit you CMakeLists.txt file and make sure that  in
> the command:
>
>              TARGET_LINK_LIBRARIES
>
> you include "ITKIO".
>
> If you still have problems, please post your
> CMakeLists.txt file to the mailing list.
>
>
>      Thanks
>
>
>               Luis
>
>
> ----------------------------------------------------
> On Tue, Nov 24, 2009 at 6:49 AM, Fernando López Mir <ferlomi at hotmail.com> wrote:
>>
>> Hi, I'm programming my application with ITK and QT. I have anterior
>> experiences with ITK and MFC but now(ITK+QT) I can´t add itk libraries to my
>> Qt project. The SDK I´m using is visual studio with a plugin to QT.In my QT
>> project I add ITK libraries, ITK includes ... After this I put:
>>
>> #include "itkImage.h"
>>
>> int function (){
>>
>> ...
>> typedef itk::image<unsigned char,2> imagetype
>> ...
>>
>> }
>>
>> and not problem!!!
>>
>> but if i add a reader, for example, it come the problem:
>>
>> #include "itkImage.h"
>> #include "ImageFileReader.h"
>>
>> int function (){
>>
>> ...
>> typedef itk::image<unsigned char,2> imagetype
>> ...
>>
>> }
>>
>> I have 7 errors of type:
>>
>> Error    1    error LNK2019: símbolo externo __imp__RegCloseKey at 4 sin
>> resolver al que se hace referencia en la función "public: static bool
>> __cdecl itksys::SystemTools::ReadRegistryValue(char const *,class
>> std::basic_string<char,struct std::char_traits<char>,class
>> std::allocator<char> > &,enum itksys::SystemTools::KeyWOW64)"
>> (?ReadRegistryValue at SystemTools@itksys@@SA_NPBDAAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@W4KeyWOW64 at 12@@Z)
>> itksys.lib
>>
>> So I decided use the QtItk application, but in this example I compile it
>> with cmake, run witk visual (normal procedure) ..., and in the project
>> properties I don't have the Itk directories includes or the itk libraries,
>> so I don´t know what is the better solution to continue research? or if my
>> problem have a solution.
>>
>> Thenks very much for your time!!!!!!!!
>>
>>
>> ________________________________
>> ¡Windows Phone ya está aquí! Mucho más que un teléfono. ¡Hazte con uno!
>> _____________________________________
>> 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
>>
>>
> _____________________________________
> 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