Re: How to make it run with XCode.

From: Mohammad Al-Turany <m.al-turany_at_gsi.de>
Date: Thu, 4 Jun 2009 16:14:55 +0200


Hallo Fons,

The easiest way is to use cmake and let it create the Xcode project, this has the advantage that the dictionaries are created automatically, I extract the needed files from FairRoot and merge them into one CMakefile.txt, I also included the FindROOT.cmake which set the ROOT needed variables. With these two files one can compile and link his own code, I created an example from root event example (root/test).

Just un-tar the attached file and run:

cmake -G Xcode ./

This will create an Xcode project Event.xcodeproj which can be opened and used by the Xcode.

Hope this will help!

Mohammad

On 6/2/09 9:41 AM, "Fons Rademakers" <Fons.Rademakers_at_cern.ch> wrote:

> In the ROOT team we don't yet have Xcode templates for ROOT based projects.
> If anybody has something like that please let us know.
> 
> Cheers, Fons.
> 
> 
> 
> Lucio Anderlini wrote:

>> Dear rooters,
>> I ma trying to use XCode with root libraries, I found a FAQ answer
>> explaining what to do and giving an example (Event.c).
>> After half a day of working I managed to build the example with XCode.
>> Unfortunately it is a library and I would need to compile an executable.
>> I searched the web and I asked a friend and I found out something about
>> dictionaries but I didn't understand it very well.
>> Could anybody send me a simple example of an Xcode project for an
>> executable working with ROOT and C++ standard libraries?
>>
>> Thanks a lot in advance.
>>
>> Best regards,
>> Lucio Anderlini.
>>

Received on Thu Jun 04 2009 - 16:15:04 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 05 2009 - 17:50:02 CEST