commit | b4b9229d74b6b02d5346e084aa2e9604bc96f3d3 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Jul 09 13:54:59 2013 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Jul 09 13:54:59 2013 -0700 |
tree | b9df8b6517e3710c281ebe078ffc7a6d67af93dd | |
parent | d74818b1b39742ddba09e79cbbe32d20c890234b [diff] |
Changing build system to waf
ChronoChat is a multiparty chat application that demostrates our synchronization primitive that we call ChronoSync.
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).
You need pkg-config, protobuf, boost, and qt to compile this app. All of them can be installed through macports. The following command should do it: $ sudo port install pkg-config protobuf-cpp boost qt4-mac
To compile this app:
in the top directory, check out the "sync" submodule
$ git submodule update --init
go to sync directory, do:
$ ./waf configure $ ./waf $ sudo ./waf install
back to the top directory, set up environment for pkg-config, make sure libsync.pc is searchable, this is mine:
$ export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
compile Chronos:
$ ./waf configure $ ./waf
Congratulations! build/ChronoChat.app is ready to use (on a Mac).