Difference between revisions of "Advanced Set up new FieldWorks development workstation"

From LSDevLinux
Jump to: navigation, search
(Set up)
m (Categorize)
Line 1: Line 1:
 +
[[Category:Building(FieldWorks)]]
 
Instructions to set up a new FieldWorks development workstation. Should work for Ubuntu 10.04 Lucid and 10.10 Maverick.
 
Instructions to set up a new FieldWorks development workstation. Should work for Ubuntu 10.04 Lucid and 10.10 Maverick.
 
__TOC__
 
__TOC__

Revision as of 13:26, 14 March 2011

Instructions to set up a new FieldWorks development workstation. Should work for Ubuntu 10.04 Lucid and 10.10 Maverick.

Contents

Set up

  1. Download the latest Ubuntu Desktop ISO.
  2. Install Ubuntu onto your host or in a virtual machine.
  3. Append the following to your .bashrc, changing http_proxy and optionally P4USER and P4CLIENT.
  4. # Proxy for wget if using a proxy
    export http_proxy=http://proxy.example.com:4128
    # Perforce workspace name
    export P4CLIENT=$(hostname)
    # Perforce server
    export P4PORT=src.sil.org:1934  # or hydra:1935
    export P4USER=anonymous
    export PATH=~/bin:$PATH
    
  5. Set up Perforce for FieldWorks to install p4v. If you chose a different username or workspace name, update the P4USER and P4CLIENT settings in ~/.bashrc to match.
  6. $ cd ~/p4repo/Calgary && for dir in ~/gp/Calgary/{COM,Win32Base,Win32More}; do ln -s $dir; done
    
  7. Configure public git name and email, and other settings by editing ~/.gitconfig and inserting the following, changing name and email:
  8. [user]
    	name = Bob Smith
    	email = bob.smith@example.com
    [gui]
    	editor = gedit
    [diff]
    	tool = meld
    [merge]
    	conflictstyle = diff3
    	tool = kdiff3
    [cola]
    	tabwidth = 4
    	fontdiff = DejaVu Sans Mono,8,-1,5,50,0,0,0,0,0
    
  9. Configure git cola by creating the file ~/.cola with the contents:
  10. {
        "py/object": "cola.settings.SettingsModel", 
        "gui_state": {
            "mainview": {
                "y": 24, 
                "width": 1678, 
                "windowstate": "AAAA/wAAAAH9AAAAAQAAAAIAAAaOAAADy/wBAAAAAvwAAAAAAAACdQAAAXcA/////AIAAAAD+wAAACIAUgBlAHAAbwBzAGkAdABvAHIAeQAgAFMAdABhAHQAdQBzAQAAABcAAAIkAAAAbQD////7AAAAKgBDAG8AbQBtAGkAdAAgAE0AZQBzAHMAYQBnAGUAIABFAGQAaQB0AG8AcgEAAAJBAAAAhgAAADsA/////AAAAs0AAAEVAAAA1QD////8AQAAAAL7AAAAHABDAG8AbQBtAGEAbgBkACAATwB1AHQAcAB1AHQBAAAAAAAAAecAAABaAP////sAAAAOAEEAYwB0AGkAbwBuAHMBAAAB7QAAAIgAAABfAP////sAAAAWAEQAaQBmAGYAIABWAGkAZQB3AGUAcgEAAAJ7AAAEEwAAAE8A////AAAGjgAAAAAAAAAEAAAABAAAAAgAAAAI/AAAAAA=", 
                "height": 994, 
                "x": 0
            }
        }, 
        "bookmarks": [], 
        "bookmarks_item": ""
    }
    
  11. Close and reopen a new terminal. Install build dependencies and build FieldWorks:
  12. $ sudo aptitude update
    $ sudo aptitude safe-upgrade
    $ sudo aptitude install terminator git-cola meld kdiff3-qt
    $ git config --global git-p4.detectRename true
    $ cd && git clone git://git.lsdev.sil.org/fieldworks-build.git && cd fieldworks-build
    fieldworks-build$ ./build-fw-on-new-machine
    
  13. Install Monodevelop.
  14. The FieldWorks code is in ~/gp/Calgary/WW in a git-p4 repository.

Update

To later update the whole range of your dependencies, tools, code, and rebuild:

  1. Upgrade your system packages.
  2. First make sure the Calgary/WW repository has no modified files.
  3. Update tools and source, and rebuild:
$ cd ~/fieldworks-build && git pull
$ cd ~/git-p4 && git pull
$ cd ~/mono-calgary && git pull
# Only rebuild mono if it was updated
mono-calgary$ ./checkout-and-build-mono && \
  sudo cp /usr/local/bin/mono{,-real} && sudo cp ~/fieldworks-build/mono-fw /usr/local/bin/mono
$ cd ~/gp/Calgary && svn up COM Win32Base Win32More
$ cd ~/gp/Calgary/WW/Bld && git p4 rebase && (pushd .. && . environ && popd && NAnt.exe buildtest remakefw)