- Amended Makefile so it compiles on Ubuntu 13.04 (tested and frameserver runs and compiles…)
- Added more config details to README - Adapted test.cpp but it still doesn't compilemaster
parent
6b3899c141
commit
9d3450a5e6
22
README
22
README
|
@ -2,3 +2,25 @@ Install dependencies:
|
|||
|
||||
sudo apt-get install libboost-all-dev libncurses5-dev libglibmm-2.4-dev build-essential
|
||||
|
||||
= Building configuration =
|
||||
|
||||
The main configuration of the frameserver is done in <defines.h>
|
||||
|
||||
Main tuneables:
|
||||
|
||||
#define REMOTE_IP "127.0.0.1"
|
||||
#define REMOTE_PORT 1234
|
||||
|
||||
#define HASH "abcdefghij"
|
||||
// one byte number + 10 character hash plus newline
|
||||
#define HEADEROFFSET 12
|
||||
|
||||
// 12 windows per floor, 7 floors, Value:Alpha
|
||||
#define WIDTH 12
|
||||
#define HEIGHT 7
|
||||
#define CHANNELS 2
|
||||
|
||||
// 8 segments per window, 12 segments per floor, RGBA
|
||||
#define SEGNUM 8
|
||||
#define SEGWIDTH 12
|
||||
#define SEGCHANNELS 4
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
frameserver:
|
||||
g++ -O2 -ggdb -lncurses Buffer.cpp Buffers.cpp Server.cpp frameserver.cpp `pkg-config --libs --cflags glibmm-2.4` `pkg-config --libs --cflags gthread-2.0` -lboost_system -o frameserver
|
||||
g++ -O2 -ggdb Buffer.cpp Buffers.cpp Server.cpp frameserver.cpp `pkg-config --libs --cflags ncurses` `pkg-config --libs --cflags glibmm-2.4` `pkg-config --libs --cflags gthread-2.0` -lboost_system -o frameserver
|
||||
test:
|
||||
g++ -O2 -pipe -fomit-frame-pointer Buffer.cpp Buffers.cpp test.cpp `pkg-config --libs --cflags glibmm-2.4` `pkg-config --libs --cflags gthread-2.0` -o test
|
||||
g++ -O2 -pipe -fpermissive -fomit-frame-pointer Buffer.cpp Buffers.cpp test.cpp `pkg-config --libs --cflags glibmm-2.4` `pkg-config --libs --cflags gthread-2.0` -o test
|
||||
thread_test:
|
||||
g++ -O2 -pipe -fomit-frame-pointer thread.cc -o thread `pkg-config --cflags --libs glibmm-2.4`
|
||||
|
|
|
@ -31,8 +31,8 @@ int main(void)
|
|||
|
||||
buffers = new Buffers(NUMBUFS);
|
||||
|
||||
vector<Glib::Threads::Thread::*> readers;
|
||||
vector<Glib::Threads::Thread::*> writers;
|
||||
vector<Glib::Threads::Thread*> readers;
|
||||
vector<Glib::Threads::Thread*> writers;
|
||||
|
||||
for(int i = 0; i < NUMTHREADS; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue