- 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_DIRto the instalation directory of the Solace Messaging C API whereincludeandlibexist. This environmental variable will be used to link the library to Solace-kdb+ interface. - Add
SOLACE_INSTALL_DIR/libtoLD_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 installNote: 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_DIRto the installation directory of the Solace Messaging C API whereincludeandlibexist. This environmental variable will be used to link the library to Solace-kdb+ interface. -
Add the
libsolclient.dllto the kdb+ lib directory e.g.C:\q\w64for 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 installinstalls the required share object and q files to theQHOME\w64andQHOMEdirectories respectively. If you do not wish to install these files directly, you can executecmake --build . --config Releaseinstead ofcmake --build . --config Release --target installand move the files from their build location atbuild/kdbsolace.- You can use flag
cmake -G "Visual Studio 16 2019" -A Win32if building 32-bit version.