[Insight-users] itk4 and xcode 4 problem , any help

alaamegawer alaamegawer at yahoo.com
Tue Sep 4 13:01:58 EDT 2012


Hi  Ho Cheung 

thanks for ur reply 

actually i wanna build it to use for desktop application but i found this
paper which confused u  talked about iOS so i said let's try it  and it use
itk v 3 and i think cmakelist changed from v 4 , but the main target for me
to build it for mac os lion. 

 i use itk v 4.0 so i don't know if i used v 4.2 my problem will solve or
not. but anyway i'll be grateful if you send me cmake and Xcode setting
steps  to build it in a proper way.

thanks 

Alaa


Ho Cheung wrote:
> 
> Hi alaamegawer,
> 
> I'm a bit confused by your email, at the beginning you mention you are
> trying to build for Mac OS X Lion, but then in the second paragraph you
> mention something ITK on iOS. I have no experience with iOS but I will
> assume you are trying to build for Lion..
> 
> Our project, Farsight, builds and links to ITK4.2 with llvm-gcc 4.2
> successfully so what you are doing should be possible.
> 
> In ITKSetStandardCompilerFlags.cmake, the possible warning flags are
> checked against the compiler and then only the ones the compiler supports
> are actually passed onto the compiler during the build steps. If you do a
> man gcc
> 
> "man gcc" shows that Wlong-double is not a supported compiler option
> .-Wno-long-double should not even be passed to the compiler so I think
> something is wrong with your ITK configure step. Perhaps you should try to
> delete everything and start from scratch
> 
> 
> 
> Regards,
> 
> Ho Cheung
> Research Assistant
> Bio-Image Analytics Laboratory - University of Houston
> (832) 215-6347
> 
> 
> 
> On Sep 1, 2012, at 4:20 PM, alaamegawer <alaamegawer at yahoo.com> wrote:
> 
>> 
>> Hi All
>> 
>> i'm trying to build itk v4 on mac os lion but unfortunately i have many
>> problem.
>> 
>> first i'm using cake to create Xcode project with default setting . 
>> and i use llvm gcc 4.2 compiler but during compiliation process i have
>> error 
>> Unrecognized command line option "-Wno-long-double"  and Command
>> /Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1 ( apple mach
>> linker
>> error)   and i don't know how can i solve it ? 
>> 
>> by the way i tried to use document at insight journal ITK on the iOS he
>> asked me to comment out the line SET(ITK REQUIRED C FLAGS "$ITK REQUIRED
>> C
>> FLAGS -Wno-long-double") but i can't find it in cmakelist.txt
>> 
>> so what can i do ??? any help .
>> -- 
>> View this message in context:
>> http://old.nabble.com/itk4-and-xcode-4-problem--%2C-any-help-tp34378464p34378464.html
>> Sent from the ITK - 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://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.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://www.itk.org/mailman/listinfo/insight-users
> 
> 

-- 
View this message in context: http://old.nabble.com/itk4-and-xcode-4-problem--%2C-any-help-tp34378464p34388203.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list