diff --git a/README b/README index 2832cf9..066dd2e 100644 --- a/README +++ b/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 + +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 diff --git a/frameserver/Makefile b/frameserver/Makefile index 38282dd..a0216d4 100644 --- a/frameserver/Makefile +++ b/frameserver/Makefile @@ -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` diff --git a/frameserver/test.cpp b/frameserver/test.cpp index 23f851f..2d97c4d 100644 --- a/frameserver/test.cpp +++ b/frameserver/test.cpp @@ -31,8 +31,8 @@ int main(void) buffers = new Buffers(NUMBUFS); - vector readers; - vector writers; + vector readers; + vector writers; for(int i = 0; i < NUMTHREADS; i++) {