[ITK-users] [ITK] Error compiling msvc2010 + ITK4.6 + Qt

Françoise Lefebvre lefebvre at imnc.in2p3.fr
Tue Nov 4 09:17:20 EST 2014


Hi,

It works, thank you very much Roger.

Françoise

Le 03/11/2014 11:13, Roger Bramon Feixas a écrit :
> Dear all,
>
> I solved the problem. Shell32.lib system library needs to be added to 
> qmake LIBS variable because it includes CommandLineToArgvW function. I 
> think it is required since 4.6.0 which includes commit 
> http://itk.org/gitweb?p=ITK.git;a=commit;h=f29c354194e45dcb12d4d0b8765f0c3a9deeab78 
>
>
> HTH,
>
> Roger
>
> On Fri, Oct 31, 2014 at 6:55 PM, Roger Bramon Feixas 
> <rogerbramon at gmail.com <mailto:rogerbramon at gmail.com>> wrote:
>
>     Hi,
>
>     I also have this link problem trying to build using
>     msvc2013_opengl + ITK 4.6.1 + VTK 6.1 + GDCM 2.4.4 + Qt 5.3.2. We
>     are using qmake as well.
>
>     Any suggestion will be appreciated.
>
>     Many thanks,
>
>     Roger
>
>     On Fri, Oct 24, 2014 at 4:57 PM, Matt McCormick
>     <matt.mccormick at kitware.com <mailto:matt.mccormick at kitware.com>>
>     wrote:
>
>         Hi Françoise,
>
>
>         CMake is recommended -- it will avoid this problem and others.  It
>         works well with Qt.
>
>         Thanks,
>         Matt
>
>         On Fri, Oct 24, 2014 at 4:00 AM, Françoise Lefebvre
>         <lefebvre at imnc.in2p3.fr <mailto:lefebvre at imnc.in2p3.fr>> wrote:
>         >
>         > No, I'm not.  I have always used a .pro file and qmake.
>         >
>         > Le 23/10/2014 23:37, Matt McCormick a écrit :
>         >
>         >> Hi,
>         >>
>         >> Are you using CMake to configure your project?
>         >>
>         >> Matt
>         >>
>         >> On Thu, Oct 23, 2014 at 12:20 PM, Françoise Lefebvre
>         >> <lefebvre at imnc.in2p3.fr <mailto:lefebvre at imnc.in2p3.fr>> wrote:
>         >>>
>         >>> Hi,
>         >>>
>         >>> I also tried on Windows 8,msvc2012_opengl and Qt5.3. I get
>         exactly the
>         >>> same
>         >>> link error.
>         >>>
>         >>> FL
>         >>>
>         >>>
>         >>> Le 22/10/2014 09:23, Françoise Lefebvre a écrit :
>         >>>
>         >>>> Yes I did.
>         >>>>
>         >>>> Le 21/10/2014 19:18, Bradley Lowekamp a écrit :
>         >>>>>
>         >>>>> Did you try the latest 4.6.1 release?
>         >>>>>
>         >>>>> Brad
>         >>>>>
>         >>>>> On Oct 21, 2014, at 12:18 PM, Françoise Lefebvre
>         >>>>> <lefebvre at imnc.in2p3.fr <mailto:lefebvre at imnc.in2p3.fr>>
>         >>>>> wrote:
>         >>>>>
>         >>>>>> Hi,
>         >>>>>>
>         >>>>>> ITK 4.6 was succesfully build using cmake2.8.10.2, the
>         default
>         >>>>>> parameters and the Module_ITKReview on.
>         >>>>>>
>         >>>>>> I am now trying to compile a program developed in C++
>         using Qt5.1.1
>         >>>>>> and
>         >>>>>> Microsoft Visual C++ express 2010 on Windows 7.
>         >>>>>>
>         >>>>>> I get the following link error :
>         >>>>>>
>         >>>>>> 1>itksys-4.6.lib(EncodingCXX.obj) : error LNK2019:
>         symbole externe non
>         >>>>>> rÚsolu __imp__CommandLineToArgvW at 8 rÚfÚrencÚ dans la
>         fonction "public:
>         >>>>>> static class itksys::Encoding::CommandLineArguments __cdecl
>         >>>>>> itksys::Encoding::CommandLineArguments::Main(int,char
>         const * const
>         >>>>>> *)"
>         >>>>>>
>         (?Main at CommandLineArguments@Encoding at itksys@@SA?AV123 at HPBQBD@Z)
>         >>>>>>
>         >>>>>> I didn't get this error when compiling with itk4.3 .
>         >>>>>>
>         >>>>>> Any hint ?
>         >>>>>>
>         >>>>>> Thank you for your help,
>         >>>>>>
>         >>>>>> F. Lefebvre
>         >>>>>>
>         >>>>>> _____________________________________
>         >>>>>> 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.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
>         >>>>>> _______________________________________________
>         >>>>>> Community mailing list
>         >>>>>> Community at itk.org <mailto:Community at itk.org>
>         >>>>>> http://public.kitware.com/mailman/listinfo/community
>         >>>>
>         >>>>
>         >>> _____________________________________
>         >>> 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.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
>         >
>         >
>         > --
>         > Françoise LEFEBVRE
>         > IMNC (Imagerie et Modélisation en Neurobiologie et Cancérologie)
>         > Campus d'Orsay - Bât 440
>         > 91405 ORSAY Cedex
>         > 01 69 15 51 87
>         >
>         _____________________________________
>         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.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
>
>
>

-- 
Françoise LEFEBVRE
IMNC (Imagerie et Modélisation en Neurobiologie et Cancérologie)
Campus d'Orsay - Bât 440
91405 ORSAY Cedex
01 69 15 51 87

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141104/7229bd35/attachment.html>


More information about the Insight-users mailing list