blob: 823f12dd1ad5e262cde03b9214f68b04d318997c [file] [log] [blame]
Apache Ignite C++ Examples
==================================
Common requirements
----------------------------------
* Java Development Kit (JDK) must be installed: https://java.com/en/download/index.jsp
* JAVA_HOME environment variable must be set pointing to Java installation directory.
* IGNITE_HOME environment variable must be set to Ignite installation directory.
* Ignite must be built and packaged using Maven. You can use the following Maven command: mvn clean package -DskipTests
* Apache Ignite C++ must be built according to instructions for your platform. Refer to
$IGNITE_HOME/platforms/cpp/DEVNOTES.txt for instructions.
* For odbc-example additionally ODBC Driver Manager must be present and installed on your platform and
Apache Ignite ODBC driver must be built and installed according to instructions for your platform. Refer to
$IGNITE_HOME/platforms/cpp/DEVNOTES.txt for build instructions and to $IGNITE_HOME/platforms/cpp/odbc/README.txt.
for installation instructions.
Running examples on Linux
----------------------------------
Prerequisites:
* GCC, g++, autotools, automake, and libtool must be installed.
To build examples execute the following commands one by one from examples root directory:
* libtoolize && aclocal && autoheader && automake --add-missing && autoreconf
* ./configure
* make
As a result executables will appear in every example's directory.
Before running examples ensure that:
* LD_LIBRARY_PATH environment variable is set and pointing to a directory with "libjvm.so" library. Typically this
library is located in $JAVA_HOME/jre/lib/amd64/server directory.
* For odbc-example additionaly ODBC Driver Manager must be present and installed on your platform and
Apache Ignite ODBC driver must be built and installed according to instructions for your platform.
* For odbc-example make sure that path to Ignite libraries is added to LD_LIBRARY_PATH (usually it is /usr/local/lib).
Running examples on Windows
----------------------------------
Prerequisites:
* Microsoft Visual Studio (tm) 2010 or higher must be installed.
* Windows SDK 7.1 must be installed.
Open Visual Studio solution %IGNITE_HOME%\platforms\cpp\examples\project\vs\ignite-examples.sln and select proper
platform (x64 or x86). Run the solution.