<div dir="ltr"><div><div><div>Hi Vikash,<br><br></div>What does your CMakeLists.txt look like? Are all executables created added in the CMakeLists.txt file with the add_executable and target_link_libraries command?<br><br></div>Thanks,<br></div>Matt<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 3, 2015 at 3:51 AM, Vikash Gupta <span dir="ltr"><<a href="mailto:vikash.gupta@inria.fr" target="_blank">vikash.gupta@inria.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey guys,<br>
So, I moved to a different IDE (Eclipse). I am still getting similar error.<br>
<br>
Here is the error<br>
<span class=""><br>
Undefined symbols for architecture x86_64:<br>
</span> "itk::MapLR2HRFilter<itk::Image<float, 3u> >::SetTransform(itk::SmartPointer<itk::AffineTransform<double, 3u> >)", referenced from:<br>
_main in testMapping.o<br>
<span class="">ld: symbol(s) not found for architecture x86_64<br>
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
<br>
</span>After some googling i figured its a problem with OS X. I wonder if anyone knows how to fix it.<br>
<br>
<br>
Thanks<br>
<span class="im HOEnZb">Vikash<br>
<br>
----- Original Message -----<br>
> From: "Vikash Gupta" <<a href="mailto:vikash.gupta@inria.fr">vikash.gupta@inria.fr</a>><br>
> To: "Sean McBride" <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>><br>
> Cc: "insight-users@itk org" <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br>
</span><div class="HOEnZb"><div class="h5">> Sent: Thursday, July 2, 2015 1:19:21 PM<br>
> Subject: Re: [ITK-users] Problems with writing filter using Xcode<br>
><br>
> Ok I am updating it ...<br>
><br>
> ----- Original Message -----<br>
> > From: "Vikash Gupta" <<a href="mailto:vikash.gupta@inria.fr">vikash.gupta@inria.fr</a>><br>
> > To: "Sean McBride" <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>><br>
> > Cc: "insight-users@itk org" <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br>
> > Sent: Thursday, July 2, 2015 1:16:44 PM<br>
> > Subject: Re: [ITK-users] Problems with writing filter using Xcode<br>
> ><br>
> > Or maybe I am doing something wrong.. Here is what I am doing step by step<br>
> ><br>
> > 1. Build ITK as I would normally considering a UNIX machine<br>
> > 2. Use a text editor to make the CMakeLists.txt and arrange my directories<br>
> > 3. use ccmake -GXcode to generate my xcode project<br>
> > 4. Open the Xcode project and write the filters I need.<br>
> ><br>
> ><br>
> > Vikash<br>
> ><br>
> > ----- Original Message -----<br>
> > > From: "Vikash Gupta" <<a href="mailto:vikash.gupta@inria.fr">vikash.gupta@inria.fr</a>><br>
> > > To: "Sean McBride" <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>><br>
> > > Cc: "insight-users@itk org" <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br>
> > > Sent: Thursday, July 2, 2015 1:09:00 PM<br>
> > > Subject: Re: [ITK-users] Problems with writing filter using Xcode<br>
> > ><br>
> > > Hi Sean,<br>
> > > Yes I was using Xcode 6.xx But then I read on stackexchange that there is<br>
> > > some bug with the xcode 6.xx so rolled back to 5.xx . Also I was<br>
> > > wondering<br>
> > > if the .txx is a good extension for the counterpart to the .h file.<br>
> > ><br>
> > > Vikash<br>
> > ><br>
> > > ----- Original Message -----<br>
> > > > From: "Sean McBride" <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>><br>
> > > > To: "Vikash Gupta" <<a href="mailto:vikash.gupta@inria.fr">vikash.gupta@inria.fr</a>>, "insight-users@itk org"<br>
> > > > <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br>
> > > > Sent: Thursday, July 2, 2015 1:05:04 PM<br>
> > > > Subject: Re: [ITK-users] Problems with writing filter using Xcode<br>
> > > ><br>
> > > > On Thu, 2 Jul 2015 21:18:41 +0200, Vikash Gupta said:<br>
> > > ><br>
> > > > >I am using Mac OS X 10.10.3 and Xcode 5.1.1<br>
> > > ><br>
> > > > Maybe not the cause of your problem, but note that that's not a valid<br>
> > > > combination. OS X 10.10.x requires Xcode 6.x (I forget exactly which).<br>
> > > ><br>
> > > > Cheers,<br>
> > > ><br>
> > > > --<br>
> > > > ____________________________________________________________<br>
> > > > Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
> > > > Rogue Research <a href="http://www.rogue-research.com" rel="noreferrer" target="_blank">www.rogue-research.com</a><br>
> > > > Mac Software Developer Montréal, Québec, Canada<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > _____________________________________<br>
> > > Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
> > ><br>
> > > Visit other Kitware open-source projects at<br>
> > > <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> > ><br>
> > > Kitware offers ITK Training Courses, for more information visit:<br>
> > > <a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
> > ><br>
> > > Please keep messages on-topic and check the ITK FAQ at:<br>
> > > <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
> > ><br>
> > > Follow this link to subscribe/unsubscribe:<br>
> > > <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
> > ><br>
> > _____________________________________<br>
> > Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Kitware offers ITK Training Courses, for more information visit:<br>
> > <a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
> ><br>
> > Please keep messages on-topic and check the ITK FAQ at:<br>
> > <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
> ><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
><br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>