For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles


3 1 0 0

issues with Elektron-SDK C/C++ Build

while running $cmake -HElektronSDK -Bbuild-esdk -DCMAKE_BUILD_TYPE=Debug the following error occurs.

CMake Error at /mnt/c/Users/u6079328/OneDrive - Refinitiv/Fuzzing/build-esdk/external/BUILD/elektron-sdk-binarypack/build/elektron-sdk-binarypack-prefix/src/elektron-sdk-binarypack-stamp/extract-elektron-sdk-binarypack.cmake:26 (execute_process):
execute_process given unknown argument "-".

CMakeFiles/elektron-sdk-binarypack.dir/build.make:90: recipe for target 'elektron-sdk-binarypack-prefix/src/elektron-sdk-binarypack-stamp/elektron-sdk-binarypack-download' failed
make[2]: *** [elektron-sdk-binarypack-prefix/src/elektron-sdk-binarypack-stamp/elektron-sdk-binarypack-download] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/elektron-sdk-binarypack.dir/all' failed
make[1]: *** [CMakeFiles/elektron-sdk-binarypack.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
CMake Error at CMake/rcdevExternalUtils.cmake:189 (message):
External Project Build step for elektron-sdk-binarypack in
/mnt/c/Users/u6079328/OneDrive -
Refinitiv/Fuzzing/build-esdk/external/BUILD/elektron-sdk-binarypack failed:
Call Stack (most recent call first):
CMake/addExternal_elektron-sdk-binarypack.cmake:120 (rcdev_config_build_ep)
CMakeLists.txt:24 (include)

-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/u6079328/OneDrive - Refinitiv/Fuzzing/build-esdk/CMakeFiles/CMakeOutput.log".

How can this be solved?

I followed the error mentioned at the beginning and removed the unknown argument mentioned. This didnt seem to solve the problem.

the elektron sdk binarypack is already downloaded as well within the same directory. Why isnt the build able to detect that? As it still tries download a binary pack and unzip it.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

45.3k 103 44 60


I used the steps shown in this docker file and it works fine.

sh-4.2# pwd
sh-4.2# ls
Elektron-SDK  cmake-3.11.2-Linux-x86_64         libxml2-2.9.9.tar.gz
sh-4.2# cd Elektron-SDK/
sh-4.2# ls
CMake           Elektron API Entity Contributor License Agreement.pdf      Java        esdk
CMakeLists.txt  Elektron API Individual Contributor License Agreement.pdf
Cpp-C           Elektron-SDK-BinaryPack                          
sh-4.2# cd ..
sh-4.2# pwd
sh-4.2# cmake -HElektron-SDK -Bbuild-esdk -DCMAKE_BUILD_TYPE=Debug

Elektron-SDK-BinaryPack is under the Elektron-SDK directory.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks for the answer, seems like my directories got mixed up

28.4k 30 11 15

Hello @Kristiyan.Ohotski,

You are building Elektron SDK C/C++ from code, via cmake, and I do not see included in the command line a platform-specific target for the build, which results in not being built.

Have you had a chance to review Elektron SDK Installation Guide, that comes with SDK within Cpp-C\Eta\Docs folder?

Depending on the platform, something like the following should work from the top level of the SDK download:

cmake -G "Visual Studio 16 2019" -A x64 

You may wish to include other, optional parameters.

Once the overall build succeeds, you may wish to build other targets, specific to projects included within SDK, please see more on targets in ESDK Installation Guide's section Targets.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.