|
I want to play with Veracity's source. How do I set up a Mac development environment and get Veracity to compile? |
IntroductionAssumed - you are running Mac OS Snow Leopard (10.6) and are comfortable at a
Getting/Unpacking the SourceThere are two options.
or
Unpack or checkout in the directory of your choice - for brevity, we'll pretend you
unpacked it under PrerequisitesXCode ToolkitIf you don't already have XCode 3.2 (or higher) installed, you can find it on your Snow Leopard install DVD. If you don't have a Snow Leopard install DVD, you can download Xcode from the Apple Developer web site. If you decide to download Xcode, you'll need to register as an Apple Developer. It's free. It's quick. Having done that, visit the Download Xcode page, then click "Mac Dev Center" and retrieve the latest Xcode and iPhone SDK -- currently Xcode 3.2.3 and iPhone SDK 4. That's the version used in the preparation of this document. Install as instructed. CMakeInstall CMake Download the Darwin installer, and install as instructed. vv-thirdpartyDuring the build process, some third party libraries will be built. In order for this libraries to be found and linked by the build process you will need to set an enviroment variable. This path will differ depending on the bitness of your machine. To determine if your machine is 64 bit, run the following command:
If this command returns
You should open a new terminal window to ensure this is in effect before building/running Veracity. Creating the Build Directory and Building Veracity
For example, let's create a cd to this folder, then run:
You now have a build tree, replete with Makefiles. You'll only need to run the top-level one. So:
Updating your PATH to find Veracity Command Line ToolsTo make your life easier at this point, you'll want to add the following to your PATH:
the homes of Running the Test SuiteTo run the test suite:
All tests should pass. If there are failures, you can consult the logs.
link
This answer is marked "community wiki".
|