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.
1
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
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛