Skip to content

Building from latest Git source code

artmg edited this page Sep 2, 2014 · 5 revisions

work in progress

These instructions are to help users create a working build of NixNote2 from the current source on GitHub. Although the User Documentation gives details of how to build a development environment, these instructions are aimed at users who simply wish to benefit from the latest updates to the code, without having to wait for a formal build to be released.

Needless to say, by following these instructions you will create an unsupported version of the software, that has not been fully regression tested, and you should therefore treat your data with caution when using the compiled program.

Table of Contents

Install Dependencies

These commands are for Ubuntu and derivatives

# requires at least 400MB free space (perhaps more depending on package sizes)

# I chose qt4 as I have more of that version already installed
sudo apt-get install -y git-core qt4-default 

# install dependencies
sudo apt-get install -y libpoppler-qt4-dev libopencv-dev libhunspell-dev libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev 

Obtain latest Source

# create the working folder
cd ~/bin

git clone https://github.com/baumgarr/Nixnote2 Nixnote2

Modify source

This will allow you to run a test copy of NixNote2 separately from the main copy from the repos, with different settings and databases. In each file search and replace the first string with the second

  • settings/startupconfig.cpp
    • "/.nixnote/"
    • "/.nixnote-test/"
  • nixnote.cpp
    • "NixNote - "
    • "NixNote TEST - "
  • NixNote2.pro
    • TARGET = nixnote2
    • TARGET = nixnote2-test
One day it would be nice to make a Patch File to do this automatically from the CLI :)

Compile

qmake
make

Prepare for execution

# you could also rename the executable from nixnote2 to nixnote2-test 
# you can move this into a separate executable folder (e.g. ~/bin/nixnote2-test/ )
# copy the following files and folders into it
 certs
 help
 images
 java
 qss
 (spell)
 translations

 changelog.txt
 license.html
 shortcuts.txt

Shortcut

$HOME/.local/share/applications/nixnote2.TEST.desktop

[Desktop Entry]
Name=NixNote2 TEST
Comment=NixNote test version
GenericName=NixNote TEST
Exec=$HOME/bin/Nixnote2-test/nixnote2-test
Icon=/usr/share/nixnote2/images/windowIcon6.png
StartupNotify=true
Terminal=true
Type=Application
Categories=Network;
Clone this wiki locally