Veracity Q&A home login about faq

I 'd like to get a Veracity development environment set up on Ubuntu or Fedora. Can I?

asked Jul 15 '11 at 09:36

Ian%20Olsen's gravatar image

Ian Olsen ♦♦
2.7k93355

retagged Jul 22 '11 at 17:10

stang7423's gravatar image

stang7423
12


Introduction

This document provides instructions to build Veracity on two of the most common Linux distributions (Ubuntu and Fedora). Ubuntu is the distribution used by our Linux-oriented developers, and is the only Linux build we test as the moment. There's nothing specifically preventing you from building Veracity elsewhere, we just don't yet have documentation to help.

If you are running a recent Ubuntu version (9 or above) or the latest Fedora (Fedora 14), and are comfortable installing a few packages, this document should get you on your way to a working Veracity build.

Getting/Unpacking the Source

There are two options.

or

Unpack or checkout in the directory of your choice - for brevity, we'll pretend you unpacked it under ~/v, and so your source tree begins at ~/v/veracity

Prerequisites

Ubuntu Packages

Install packages using apt-get:

sudo apt-get install build-essential cmake curl zlib1g-dev libicu-dev uuid-dev libcurl4-openssl-dev libnspr4-dev unzip

Install the following packages:

  • build-essential
  • cmake
  • curl
  • zlib1g-dev
  • libicu-dev
  • uuid-dev
  • libcurl4-openssl-dev
  • libnspr4-dev
  • unzip (only needed if you want to run the test suite)

Fedora Packages

Install Fedora packages with yum:

sudo yum install cmake gcc gcc-c++ nspr-devel zlib-devel libicu-devel libcurl-devel libuuid-devel

Install the following packages:

  • cmake
  • gcc
  • gcc-c++
  • nspr-devel
  • zlib-devel
  • libicu-devel
  • libcurl-devel
  • libuuid-devel

Creating the Build Directory

cmake will handle the creation of Makefiles, etc. You just need to give it a place to work.

For example, let's create a ~/v/debug, a neighbor of our source directory.

cd to this folder, then run:

cmake -G "Unix Makefiles" ../veracity

... or, if you'd also like an Eclipse project:

cmake -G "Eclipse CDT4 - Unix Makefiles" ../veracity

(Installing Eclipse is left as an exercise to the reader.)

Building Veracity

You now have a build tree, replete with Makefiles. You'll only need to run the top-level one. So:

cd ~/v/debug
make

Updating your PATH to find Veracity Command Line Tools

To make your life easier at this point, you'll want to add the following to your PATH:

~/v/debug/src/cmd
~/v/debug/src/script

the homes of vv (the Veracity command-line app) and vscript (the scripting engine), respectively.

Running the Test Suite

To run the test suite:

cd ~/v/debug
make test

All tests should pass. If there are failures, you can consult the logs.

link
This answer is marked "community wiki".

answered Jul 15 '11 at 09:38

Ian%20Olsen's gravatar image

Ian Olsen ♦♦
2.7k93355

edited Jan 09 at 09:07

Troy%20Stanger's gravatar image

Troy Stanger ♦♦
9514

Does not compile for me. This is on a Debian stable ("squeeze"). The error message means nothing to me. Am I supposed to populate this VVTHIRDPARTY directory myself? With what?

~/tmp/v % cmake -G "Unix Makefiles" ../veracity 
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Machine Type: i686
-- Found vv-thirdparty path: /home/stephane/tmp/veracity/../vv-thirdparty/i686
CMake Error at CMakeLists.txt:124 (MESSAGE):
  Missing or invalid VVTHIRDPARTY directory.  Set cmake variable VVTHIRDPARTY
  to point to 'vv-thirdparty/<architecture>'.

-- Configuring incomplete, errors occurred!
link

answered Jul 18 '11 at 03:10

bortzmeyer's gravatar image

bortzmeyer
301

1

The build_linux.sh script is supposed to build the vv-thirdparty directory. Did it run successfully?

(Jul 18 '11 at 08:52) Ian Olsen ♦♦
1

Actually, I missed the paragraph about this script in the installation instructions. Now, it works. Thanks.

(Jul 18 '11 at 11:09) bortzmeyer

Be carefull, with gcc 4.6, the -Werror causes a build fail, because of variable ‘*’ set but not used [-Wunused-but-set-variable]

I removed the -Werror, and everything went well

link

answered Jul 20 '11 at 03:08

judu's gravatar image

judu
162

The GCC 4.6 errors have since been resolved.

(Aug 15 '11 at 09:40) Paul Roub ♦♦

concretely speaking, remove the option '-Wall' from '~/v/veracity/common-CMakeLists.txt'

(Oct 04 '11 at 12:17) Takayuki Goto

Still doesn't build out-of-the-box on Fedora 15. Here are my updated workaround instructions:

  1. To solve the spidermonkey build issue:

    cd /usr/include

    su -c 'ln -s nspr{4,}'

  2. To help CMake find the built copy of spidermonkey, from the build dir (only needed on x86):

    cd ../vv-thirdparty/

    ln -s i686/ i386

  3. To prevent the build failing due to warnings being treated as errors, edit ../veracity/common-CMakeLists.txt and remove the word -Werror from the line that begins with "set(CMAKE_C_FLAGS".

link
This answer is marked "community wiki".

answered Aug 13 '11 at 16:55

Robin%20Green's gravatar image

Robin Green
11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×13
×5
×4
×2

Asked: Jul 15 '11 at 09:36

Seen: 2,037 times

Last updated: Jan 09 at 09:07

powered by OSQA