Difference between revisions of "Including SDK Library"

From Neurotech Software Development Kit
Jump to: navigation, search
(XCode)
(XCode)
Line 8: Line 8:
 
On your project settings page go to the '''Build Settings''' tab.
 
On your project settings page go to the '''Build Settings''' tab.
 
[[File:example.jpg|подпись]]
 
[[File:example.jpg|подпись]]
In '''Search Paths''' section find '''Library Search Paths''' property and set it with path to neurosdk library directory (directory where you downloaded libray to). Then go to '''Swift Compiler General''' section and set path to neurosdk.h file in '''Objective-C Briging''' header. This header contains all interfaces of neurosdk library and should be in '''include''' subdirectory of neurosdk library download path.
+
In '''Search Paths''' section find '''Library Search Paths''' property and set it with path to neurosdk library directory (directory where you downloaded libray to). Then go to '''Swift Compiler General''' section and set path to neurosdk.h file in '''Objective-C Briging''' header. This header contains all interfaces of neurosdk library and should be in '''include''' subdirectory of neurosdk library download path. Go to the Build Phases tab and find Link Binary With Libraries section. Click plus button to add needed libs. You need to add Bluetooth framework (CoreBluetooth.framework) and C++ standard library (libstdc++.tbd), use search to get them. Then add sdk library (libneurosdk.a), click Add Other to find it in download directory. After that you can use SDK in your project.
 +
 
 +
=== Build from sources ===
 +
You can also build neurosdk library from sources in cloned or forked repo.
 +
 
 +
To do this open project neurosdk with XCode from ios/libneurosdk directory. Select libneurosdk aggregate target and run project build. Output files will be in ios/libneurosdk/out directory.

Revision as of 09:51, 4 March 2017

Android Studio

XCode

Here described neurosdk library linking for XCode Swift project.

Dowload latest library version here

On your project settings page go to the Build Settings tab. подпись In Search Paths section find Library Search Paths property and set it with path to neurosdk library directory (directory where you downloaded libray to). Then go to Swift Compiler General section and set path to neurosdk.h file in Objective-C Briging header. This header contains all interfaces of neurosdk library and should be in include subdirectory of neurosdk library download path. Go to the Build Phases tab and find Link Binary With Libraries section. Click plus button to add needed libs. You need to add Bluetooth framework (CoreBluetooth.framework) and C++ standard library (libstdc++.tbd), use search to get them. Then add sdk library (libneurosdk.a), click Add Other to find it in download directory. After that you can use SDK in your project.

Build from sources

You can also build neurosdk library from sources in cloned or forked repo.

To do this open project neurosdk with XCode from ios/libneurosdk directory. Select libneurosdk aggregate target and run project build. Output files will be in ios/libneurosdk/out directory.