Photon C++ Client API
4.1.12.2
|
Photon supports Blackberry NDK version 10 and newer. Photons IDE of choice for Blackberry currently is QNX Momentics.
1. Right-click on your project, go to "Configure" -> "Add Library", choose "Standard BlackBerry Platform Library" and add the following libraries to your project:
a) Common Services -> Math - libm
b) Localization -> Iconv - libiconv
c) Networking -> Socket - libsocket
2. Right-click on your project, go to "Configure" -> "Add Library", choose "External Library" and add the Common C++ library to your project:
Device Library: ../../Common-cpp/libcommon-cpp-debug_blackberry.a or ../../Common-cpp/libcommon-cpp-release_blackberry.a
Simulator Library: ../../Common-cpp/libcommon-cpp-debug_blackberry_simulator.a or ../../Common-cpp/libcommon-cpp-release_blackberry_simulator.a
Include folders: ../..
3. Right-click on your project, go to "Configure" -> "Add Library", choose "External Library" and add the Photon C++ library to your project:
Device Library: ../../Photon-cpp/libphoton-cpp-debug_blackberry.a or ../../Photon-cpp/libphoton-cpp-release_blackberry.a
Simulator Library: ../../Photon-cpp/libphoton-cpp-debug_blackberry_simulator.a or ../../Photon-cpp/libphoton-cpp-release_blackberry_simulator.a
Include folders: ../..
4. Right-click on your project, go to "Properties" -> "C/C++ General" -> "Paths and Symbols" -> "Libraries" and make sure, that the Photon lib is listed above the Common lib and the Common lib above all standard blackberry platform libs
5. Add the following #include directive to your source-code:
#include "Photon-cpp/inc/PhotonPeer.h"