question

Upvotes
Accepted
3 0 3 3

EMA Consumer - Posting data to Contribution Channel - [Example] CMakeLists.txt file missing

Hello everyone,

I've been trying run that example on Linux, but example doesn't have CMakeList.txt.


How could I compile that example?

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apic++rcc-api
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.

1 Answer

Upvotes
Accepted
7.6k 15 6 9

@Bruno.Pereira

Have you run CMake to generate make files for all examples in the EMA C++ package?

You have to use Cmake to generate make files for the examples in the EMA package first as mentioned on the page.

https://developers.refinitiv.com/elektron/elektron-sdk-cc/learning?content=6148&type=learning_material_item

Then you have to copy source files under folder <EMA_CPP_RCC_Tutorial>/rcc to 341__MarketPrice__OffStreamPost as mentioned in the below section. And compile and build makefile for OffStremPost example instead.

Linux
Extract the zip file and place the source folder: EMA_CPP_RCC_Tutorial in the EMA examples directory Ema/Examples/Training/Consumer/300_Series_Examples so that it is alongside the EMA example used as the starting point (i.e. 341__MarketPrice__OffStreamPost).

Actually the RCC example source files were created on top of Consumer.cpp and Consumer.h from the OffStreamPost examples folder therefore you can replace the source files with the codes from the RCC example. And then you can use the same makefile you used to build the OffStreamPost example.


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.

That's right, It worked here! Thank you.