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

Ho Cheung hocheung20 at gmail.com
Wed Sep 5 18:41:19 EDT 2012


Please repeat steps but instead of using:

ccmake ../src

Please use: 

ccmake -G Xcode ../src

This will make xcodeproj file.

After that use:

xcodebuild -target ALL_BUILD -configuration Debug

This will trigger Xcode build of ALL_BUILD for Debug configuration from the shell.

Please reply with the exact error messages.

Regards,

Ho Cheung
Research Assistant
Bio-Image Analytics Laboratory - University of Houston
(832) 215-6347



On Sep 5, 2012, at 4:19 PM, alaamegawer <alaamegawer at yahoo.com> wrote:

> 
> 
> 
> Hi Ho Cheung 
> 
> thanks for ur help actually i did  all setting u sent it . and yes it's
> working well if i use makefile but if i made 
> cmake  build Xcode project i had the same problem beside link error so do u
> have any suggestion.
> 
> now i use itk 4.2 , and Xcode 4.2 
> 
> thanks 
> 
> Alaa
> 
> Ho Cheung wrote:
>> 
>> Install Git if you haven't already.
>> 
>> Do these commands in the Terminal
>> 
>> mkdir -p ~/ITK-4.2.0/src		#Creates a directory called src in your home
>> folder (also creating all the directories up to src)
>> cd ~/ITK-4.2.0/src 			#Changes to that directory
>> git clone git://itk.org/ITK.git .	#Clones the ITK repository to your
>> current folder (the .)
>> git checkout v4.2.0			#Checkout ITK v4.2.0
>> mkdir ../bin					#Make a directory called "bin" at the parent of this
>> directory (the ../ means parent directory)
>> ccmake ../src					#Run ccmake on the src directory we created earlier
>> # Hit c to configure, and then turn off BUILD_TESTING and BUILD_EXAMPLES
>> and turn on ITK_USE_REVIEW, then hit g to Generate.
>> make
>> 
>> That should build you a working ITK library.
>> 
>> Hope this helps,
>> 
>> Ho Cheung
>> Research Assistant
>> Bio-Image Analytics Laboratory - University of Houston
>> (832) 215-6347
>> 
>> 
>> 
>> On Sep 4, 2012, at 12:02 PM, alaamegawer <alaamegawer at yahoo.com> wrote:
>> 
>>> 
>>> 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-tp34378464p34388206.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-tp34378464p34394681.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



More information about the Insight-users mailing list