parkslab / labstreaminglayer

Automatically exported from code.google.com/p/labstreaminglayer
0 stars 0 forks source link

Compile Cognionics app on Mac #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

We would like to be able to use the Cognionics application on a Mac running OS 
X 10.8.5.  It appears that the application has only been compiled for a PC.  In 
order to run on a Mac,  we would need a Makefile (or xcode project file) for 
the application itself and the accompanying Mac-compatible libraries (e.g., Qt 
libraries for Mac).  Do these items currently exist or will they be made 
available soon?  

Thanks for your help!

Original issue reported on code.google.com by ndren...@gmail.com on 5 Aug 2014 at 8:11

GoogleCodeExporter commented 8 years ago
The Cognionics application has indeed not yet been compiled for mac, so you 
would have to create the Makefile by hand or possibly generate project files 
using a Qt tool. All that's needed besides liblsl.dylib and its header is the 
Qt SDK and a recent version of boost (which are available from the official 
sources).

Note that, as long as you do not intend to change the UI, it might be 
relatively straightforward to add the .cpp files in the App folder, the include 
path containing liblsl, Qt and boost headers, the Qt libraries in the project 
folder, and the liblsl library (taken from the binary distribution of liblsl). 

If you have a working Qt toolchain a simpler approach might be to auto-generate 
the Xcode project file based on a Qt project file (.pro), which would take care 
of including whatever machinery is needed in the Xcode project to ensure that 
the GUI code gets automatically re-generated when necessary. There is a 
template .pro file included with the PhaseSpace app, which should be usable for 
that purpose with minimal adaptation (rename PhaseSpace to Cognionics, adapt 
boost path).

Note that one caveat is that you would have to replace the CreateFile and 
ReadFile calls in the app by asio::serial_port or some other Mac OS serial-port 
API (which is then rerouted by the OS to Bluetooth).

Original comment by christia...@gmail.com on 5 Aug 2014 at 8:35

GoogleCodeExporter commented 8 years ago
Also, note that Cognionics might have LSL support directly in their Mac OS 
compatible recording software, which would potentially save you a lot of work 
(though we'd certainly be interested in a Mac port of our this app).

Original comment by christia...@gmail.com on 5 Aug 2014 at 8:37