labatrockwell/openTSPS — pull request #19 by manuelgeoffray (2011-11-27 20:29:41+00:00)
Title: Compile & run on linux!

Hello,
As discussed by email, here is my pull request for TSPS linux compatible.

Here is a small review of the changes I did to make it compile on linux. I'm currently on linux Mint 64 bit. It should work on other distribs.

1/ added Makefile, addons.make and config.make,

2/ for three addons, I moved files to src.
ie. source files in ofxCvHaarTracker/ are now in ofxCvHaarTracker/src
This way, you can move the folder to oF/addons/ofxCvHaarTracker, add the line ofxCvHaarTracker in addons.make, and the TSPS Example will compile ok.

3/ I removed an include to ofxFileDialog. I noticed it's not used anymore and it's great news for me since it was osx/win only.

4/ There was some case-sensitive issues, I guess that darwin's gcc is not case-sensitive for includes.

Remarks:
1/ libwebsockets is working good. All I had to do was git clone git://git.warmcat.com/libwebsockets; ./configure; make; make install
I tested the server from another computer. No issues.

2/ I get a lot (hundreds) of warnings because of comparison between signed and unsigned integer expressions. Here's one of them:
../../../../addons/ofxLabGui/src/ofxLabGui.h:112:57: warning: comparison between signed and unsigned integer expressions

3/ Directory structure: I have a couple of questions, but we'll talk about this later :)