Build EMA 2.0.3.L2 with Visual Studio 2019

I need to compile EMA 2.0.3.L2 on Windows because we use an extra "Debug" build with _ITERATOR_DEBUG_LEVEL=1 , which is not compatible with the Debug build that Refinitiv provides. Before making any changes to the build process to make this new Debug library, I tried to build the existing libraries. I followed the instructions in Section 5 CMake of the RTSDK_C_Installation_Guide.pdf, running the following command to generate the VS solution and project files:
cmake -H. -Bbuild -G "Visual Studio 16 2019" -A x64 -DBUILD_UNIT_TESTS=OFF -DBUILD_EMA_DOXYGEN=OFF -DBUILD_EMA_EXAMPLES=OFF -DBUILD_EMA_PERFTOOLS=OFF -DBUILD_EMA_TRAINING=OFF -DBUILD_EMA_UNIT_TESTS=OFF -DBUILD_ETA_APPLICATIONS=OFF -DBUILD_ETA_DOXYGEN=OFF -DBUILD_ETA_EXAMPLES=OFF -DBUILD_ETA_PERFTOOLS=OFF -DBUILD_ETA_TRAINING=OFF -DBUILD_ETA_UNIT_TESTS=OFF -DBUILD_32_BIT_ETA=OFF -DBUILD_RTSDK-BINARYPACK=OFF
I opened the rtsdk.sln file in the "build" directory that the above command created, and built the solution (selecting the Build / Build Solution menu option). I expected the library files to be built, but none were.
The following text was shown in the output:
1>------ Build started: Project: ZERO_CHECK, Configuration: Release_MD x64 ------
1>Checking Build System
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Release_MD x64 ------
2>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 1 skipped ==========
Any ideas why no build was done? This is the first time I have built Refinitiv libraries, so I'm probably making a basic mistake.
Best Answer
-
Please add -DRTSDK_OPT_BUILD_ETA_EMA_LIBRARIES=ON and -DBUILD_EMA_LIBRARY=ON.
With these options, you see the libema and librssl projects in the rtsdk solution file.
0
Answers
-
Hello @Tony Marshall ,
Some of the libraries are part of binary pack. So "-DBUILD_RTSDK-BINARYPACK=OFF " is probably what's getting in the way of building them.
Thinking further, that for your development and testing, you may wish to have on hand doxygen docs, examples, potentially perftools, EMA and ETA. So you may wish to just leave "-DBUILD_UNIT_TESTS=OFF " and remove the other switches after it, to obtain the complete SDK build from source code, if you have the space, it should be roughly 1.5G in total.
0 -
Thanks for the reply. I added -DRTSDK_OPT_BUILD_ETA_EMA_LIBRARIES=ON and -DBUILD_EMA_LIBRARY=ON and it did as you said. I then open the rtsdk.sln in VS and built the solution. It reported the following error:
10>C:\rtsdk\2.0.3.L2\Cpp-C\Ema\Src\Access\Ema.rc(9): fatal error RC1015: cannot open include file 'afxres.h'.
10>Done building project "libema_shared.vcxproj" -- FAILED.Do you know why it failed?
0 -
@Tony Marshall
I may relate to the MFC library, as mentioned in this thread.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 280 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 721 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛