Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 1 | ChronoChat |
| 2 | ========== |
| 3 | |
| 4 | ChronoChat is a multiparty chat application that demostrates our synchronization primitive that we call ChronoSync. |
| 5 | |
| 6 | Note 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 | |
| 11 | 1. 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. |
| 12 | 2. 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 Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 17 | ### Compilation steps for OSX |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 18 | |
Alexander Afanasyev | 49abb91 | 2014-05-09 15:23:48 -0700 | [diff] [blame] | 19 | 1. Install MacPorts, if not yet installed (http://www.macports.org/), configure [NDN ports repository](http://named-data.net/doc/NFD/current/FAQ.html#how-to-start-using-ndn-macports-repository-on-osx) and install NFD if you don't have it yet. |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 20 | |
Alexander Afanasyev | 49abb91 | 2014-05-09 15:23:48 -0700 | [diff] [blame] | 21 | sudo port install nfd |
| 22 | sudo nfd-start |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 23 | |
Alexander Afanasyev | 49abb91 | 2014-05-09 15:23:48 -0700 | [diff] [blame] | 24 | 2. Install ChronoChat dependencies |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 25 | |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 26 | sudo port install pkgconfig protobuf-cpp boost qt4-mac |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 27 | |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 28 | 3. Fetch source code with submodules |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 29 | |
Alexander Afanasyev | df7e569 | 2013-07-15 12:43:12 -0700 | [diff] [blame] | 30 | git clone --recursive git://github.com/named-data/ChronoChat |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 31 | |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 32 | If you already cloned repository, you can update submodules this way: |
| 33 | |
Alexander Afanasyev | df7e569 | 2013-07-15 12:43:12 -0700 | [diff] [blame] | 34 | git submodule update --init |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 35 | |
Alexander Afanasyev | df7e569 | 2013-07-15 12:43:12 -0700 | [diff] [blame] | 36 | 4. Configure and install ChronoSync |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 37 | |
Alexander Afanasyev | df7e569 | 2013-07-15 12:43:12 -0700 | [diff] [blame] | 38 | cd ChronoChat/ChronoSync |
| 39 | ./waf configure |
| 40 | ./waf |
| 41 | sudo ./waf install |
| 42 | |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 43 | 5. Configure and build ChronoChat |
| 44 | |
| 45 | cd .. |
| 46 | PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig ./waf configure |
| 47 | ./waf |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 48 | |
| 49 | Congratulations! build/ChronoChat.app is ready to use (on a Mac). |
| 50 | |
Alexander Afanasyev | 49abb91 | 2014-05-09 15:23:48 -0700 | [diff] [blame] | 51 | ### Compilation steps for Ubuntu 12.04, 13.10, 14.04 |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 52 | |
Alexander Afanasyev | 49abb91 | 2014-05-09 15:23:48 -0700 | [diff] [blame] | 53 | 1. Configure [NDN PPA repository](http://named-data.net/doc/NFD/current/FAQ.html#how-to-start-using-ndn-ppa-repository-on-ubuntu-linux) and install NFD if you don't have it yet. |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 54 | |
Alexander Afanasyev | 49abb91 | 2014-05-09 15:23:48 -0700 | [diff] [blame] | 55 | sudo apt-get install nfd |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 56 | |
Alexander Afanasyev | 49abb91 | 2014-05-09 15:23:48 -0700 | [diff] [blame] | 57 | 2. Install ChronoChat dependencies |
| 58 | |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 59 | sudo apt-get install libprotobuf-dev protobuf-compiler libevent-dev |
| 60 | sudo apt-get install libboost1.48-all-dev |
| 61 | sudo apt-get install qt4-dev-tools |
| 62 | |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 63 | 3. Fetch source code with submodules |
| 64 | |
Alexander Afanasyev | df7e569 | 2013-07-15 12:43:12 -0700 | [diff] [blame] | 65 | git clone --recursive git://github.com/named-data/ChronoChat |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 66 | |
| 67 | If you already cloned repository, you can update submodules this way: |
| 68 | |
Alexander Afanasyev | df7e569 | 2013-07-15 12:43:12 -0700 | [diff] [blame] | 69 | git submodule update --init |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 70 | |
Alexander Afanasyev | df7e569 | 2013-07-15 12:43:12 -0700 | [diff] [blame] | 71 | 4. Configure and install ChronoSync |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 72 | |
Alexander Afanasyev | df7e569 | 2013-07-15 12:43:12 -0700 | [diff] [blame] | 73 | cd ChronoChat/ChronoSync |
| 74 | ./waf configure |
| 75 | ./waf |
| 76 | sudo ./waf install |
Alexander Afanasyev | eb7ee6b | 2013-07-13 16:20:09 -0700 | [diff] [blame] | 77 | sudo ldconfig |
| 78 | |
| 79 | 5. Configure and build ChronoChat |
| 80 | |
| 81 | cd .. |
| 82 | ./waf configure |
| 83 | ./waf |
| 84 | |
| 85 | Congratulations! build/ChronoChat is ready to use. Do not forget to start ccnd and configure FIB before using ChronoChat. |