Hello,I am trying to build Rosetta using Rosetta Xcode Project.My Mac's system version is 10.12.4 and Xcode's is 8.3.3.I have read the link :https://www.rosettacommons.org/docs/latest/build_documentation/Build-Documentation#setting-up-rosetta-3_alternative-setup-for-individual-workstations_build-rosetta-using-the-rosetta-xcode-project-mac for building Rosetta. However,i am still confused about how to build Rosetta.
I'd like to get the specific process of adding and compiling Rosetta source code through Xcode.
I will very appreciate if anyone has idea about this question.
Category:
Post Situation:
You haven't told us what your question is...
I'm sorry I made you confused.My question is how to built Rosetta through Rosetta Xcode project.I don't know what shoud I do to add Rosetta source code to Xcode project and then compile Rosetta successfully.
I hope this will get you going:
Generating an Xcode project file
Xcode project files are used to group together the files, build targets and compilation settings and serve as the mechanism by which projects are opened and saved. The canonical build tool for Rosetta is SCons and Xcode can be configured to use SCons as an external build system. However, Xcode will not index code that it does not compile, which severely limits its utility. A python script that reads the src.settings files and updates the Xcode project file is used to make Xcode aware of files added by other developers. This script can be found in
Rosetta/main/source/xcode/make_project.py
. To update your Xcode project file, use the following command :After this, you can double-click on
rosetta/rosetta_source/xcode/Rosetta.xcodeproj
or type:Compiling rosetta_scripts & editing protocols
Note: I'm not entirely sure this is necessary, but I did it early on while setting up Xcode on my computer.
Adding a new application
By default, the Xcode project only contains and builds the libraries, however it is likely that you will want to build an application that is of interest to you. It's pretty easy to add a new application to Xcode, but it consists of a few steps that will be detailed below.
.cc
file that is compiled in the "Compile Sources" section to the correct file for your application.