blob: c8f70e746b1a0d3149bc52db48da5f2c15372e08 [file] [log] [blame] [view]
Alexander Afanasyevb4b92292013-07-09 13:54:59 -07001ChronoChat
2==========
3
4ChronoChat is a multiparty chat application that demostrates our synchronization primitive that we call ChronoSync.
5
6Note that after you click to close ChronoChat, it will keep running on your system tray. To restore it to normal size window, you have to click on the system tray icon (normally on the upper right corner of your screen). Clicking on the dock won't work for now and is still on the to-do list (because I'm using qt for gui, not the native Cocoa framework).
7
8## Known Issues
9---------------
10
111. When you switch to a new room, you'll temporarily see yourself in two nodes for a minute or so. It won't affect others, just yourself. Hopefully it's not so disturbing.
122. Sometimes you may not get the most up-to-date chat history.
13
14## For those who wants (or is forced to) compile from source code
15-----------------------------------------------------------------
16
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -070017### Compilation steps for OSX
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070018
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -0700191. Install MacPorts, if not yet installed (http://www.macports.org/) and configure NDN ports repository (https://github.com/named-data/ccnx/wiki/Using-ccnx-with-macports). If your Macports are installed in `/opt/local`, add the following line at the end of `/opt/local/etc/macports/sources.conf` before the default port repository:
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070020
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -070021 rsync://macports.named-data.net/macports/
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070022
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -0700232. Update port definitions and install (+load) required packages
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070024
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -070025 $ sudo port selfupdate
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070026
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -070027 # Install and CCNx
28 sudo port install ccnx
29 sudo port load ccnx
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070030
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -070031 # Install ChronoChat dependencies
32 sudo port install pkgconfig protobuf-cpp boost qt4-mac
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070033
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -0700343. Fetch source code with submodules
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070035
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -070036 git clone --recursive git://github.com/named-data/ChronoChat
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070037
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -070038If you already cloned repository, you can update submodules this way:
39
40 git submodule update --init
41
424. Configure and install libsync
43
44 cd ChronoChat/sync
45 ./waf configure
46 ./waf
47 sudo ./waf install
48
495. Configure and build ChronoChat
50
51 cd ..
52 PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig ./waf configure
53 ./waf
Alexander Afanasyevb4b92292013-07-09 13:54:59 -070054
55Congratulations! build/ChronoChat.app is ready to use (on a Mac).
56
Alexander Afanasyeveb7ee6b2013-07-13 16:20:09 -070057### Compilation steps for Ubuntu 12.04
58
591. Install dependencies
60
61 # General dependencies (build tools and dependencies for CCNx)
62 sudo apt-get install git libpcap-dev libxml2-dev make libssl-dev libexpat-dev g++ pkg-config
63
64 # ChronoSync/ChronoChat dependencies
65 sudo apt-get install libprotobuf-dev protobuf-compiler libevent-dev
66 sudo apt-get install libboost1.48-all-dev
67 sudo apt-get install qt4-dev-tools
68
69**NOTE** Only 1.48 version of boost libraries should be installed from packages. Since Ubuntu 12.04 ships with two versions, please make sure that 1.46 is not present, otherwise result is not guaranteed.
70
712. Download and install NDN fork of CCNx software
72
73 git clone git://github.com/named-data/ccnx
74 cd ccnx
75 ./configure
76 make
77 sudo make install
78
793. Fetch source code with submodules
80
81 git clone --recursive git://github.com/named-data/ChronoChat
82
83If you already cloned repository, you can update submodules this way:
84
85 git submodule update --init
86
874. Configure and install libsync
88
89 cd ChronoChat/sync
90 ./waf configure
91 ./waf
92 sudo ./waf install
93 sudo ldconfig
94
955. Configure and build ChronoChat
96
97 cd ..
98 ./waf configure
99 ./waf
100
101Congratulations! build/ChronoChat is ready to use. Do not forget to start ccnd and configure FIB before using ChronoChat.
102
103