- Solace Messaging C API(please select for your relevant machine type).
- C++11 or later 1
- CMake ≥ 3.1 1
- Download the Solace C Messaging API.
- Set
SOLACE_INSTALL_DIR
to the instalation directory of the Solace Messaging C API whereinclude
andlib
exist. This environmental variable will be used to link the library to Solace-kdb+ interface. - Add
SOLACE_INSTALL_DIR/lib
toLD_LIBRARY_PATH
(Linux) orDYLD_LIBRARY_PATH
(MacOSX).
]$ mkdir solclient
]$ tar xzf solclient_[machine and version].tar.gz -C ./solclient --strip-components=1
]$ cd solclient
solclient]$ export SOLACE_INSTALL_DIR=$(pwd)
- Clone Solace-kdb+ repository and build with
cmake
.
]$ git clone https://github.com/KxSystems/solace.git
]$ cd solace
solace]$ mkdir build && cd build
build]$ cmake ../
build]$ cmake --build . --target install
Note: cmake --build . --target install
as used in the Linux/MacOS builds installs the required share object and q files to the QHOME/[ml]64
and QHOME
directories respectively. If you do not wish to install these files directly, you can execute cmake --build .
instead of cmake --build . --target install
and move the files from their build location at build/kdbsolace
.
-
Download the Solace C Messaging API.
-
Set
SOLACE_INSTALL_DIR
to the installation directory of the Solace Messaging C API whereinclude
andlib
exist. This environmental variable will be used to link the library to Solace-kdb+ interface. -
Add the
libsolclient.dll
to the kdb+ lib directory e.g.C:\q\w64
for 64-bit> 7z e solclient_[machine and version].tar.gz && 7z x solclient_[machine and version].tar -spe > rename solclient-[version] solclient > cd solclient solclient> set SOLACE_INSTALL_DIR=%cd% solclient> cd %QHOME%\w64 w64> MKLINK libsolclient.dll %SOLACE_INSTALL_DIR%\bin\Win64\libsolclient.dll
-
Clone Solace-kdb+ repository and build with
cmake
. Building the interface from source requires Visual Studio (assuming-G "Visual Studio 15 2017 Win64"
is not necessary).> git clone https://github.com/KxSystems/solace.git > cd solace solace> mkdir build && build build> cmake --config Release .. build> cmake --build . --config Release --target install
Notes:
cmake --build . --config Release --target install
installs the required share object and q files to theQHOME\w64
andQHOME
directories respectively. If you do not wish to install these files directly, you can executecmake --build . --config Release
instead ofcmake --build . --config Release --target install
and move the files from their build location atbuild/kdbsolace
.- You can use flag
cmake -G "Visual Studio 16 2019" -A Win32
if building 32-bit version.