Building QtJsonDb from Git
English
Building QtJsonDb from Git
Introduction
Todo.
System Requirements
QtJsonDb is one of the addons of Qt 5, hence before building qtjsondb you need to build dependent modules – qtbase, qtxmlpatterns, qtjsbackend and qtdeclarative. See Building_Qt_5_from_Git for more information.
At this moment the only supported platforms for qtjsondb are Linux and Mac OS X
Linux/X11
QtJsonDb depends on libedit and libicu(optionally):
QtJsonDb dependencies on Ubuntu/Debian:
QtJsonDb dependencies on Mandriva/ROSA/Unity:
Mac OS X
QtJsonDb depends on libicu(optionally).
Via HomeBrew [mxcl.github.com]
You need to have HomeBrew installed at first.
Via MacPorts [macports.org]
Getting the source code
First clone the QtJsonDb git repository(for example, under
~/dev/git
):
Current temporary patch
Only for enable collation feature based on whether ICU header files are available or not on Mac.
Mac OS X
For HomeBrew users, patch this file [gist.github.com] or download the patch directly [gist.github.com] .
For MacPorts users, patch this file [gist.github.com] or download the patch directly [gist.github.com] .
Qmakeing and building
Now start to qmake and make a shadow build:
If you have seen following output, then the ICU was enabled successfully:
How to run examples
Launch jsondb daemon in a terminal(the first):
Run the example code in another terminal(the second):
If want to clean the db files after running(in the first terminal):