question

Upvotes
Accepted
171 3 3 4

Sample Link error with libxml2.lib (not found)

I have downloaded the windows source and for example

and run

C:\Users\iliak\Elektron-SDK-1.5.0.L1.win.rrg>cmake CMakeLists.txt -G "Visual Studio 12 2013 Win64"

without errors.


in the first example from : https://developers.refinitiv.com/elektron/elektron-sdk-cc/learning

and tried to compile example 1, and received the following error

LINK : fatal error LNK1181: cannot open input file 'C:\Users\iliak\Elektron-SDK-1.5.0.L1.win.rrg\Cpp-C\Eta\Libs\WIN_64_VS120\Debug_MDd\libxml2.lib'
the file is missing? how can I build it or where can I download it?

elektronrefinitiv-realtimeelektron-sdkc++
icon clock
10 |1500

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

Upvotes
Accepted
7.6k 15 6 9

@iliak

It looks like the example you want to try is an external MRN example(EMA Tutorials\step5), correct? It's a separate package from the original package from ESDK devkit. The CMake command I mentioned in the first post is for building an example in the ESDK package.

Anyway, if you just want to build EMA MRN example, you can follow instruction from

Section to setup environment variable for the EMA Tutorial example.

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

and you need to download zlib from the external site for MRN example as described in the following link

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

It uses the lib to unpack MRN data to JSON message.

icon clock
10 |1500

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

Upvotes
7.6k 15 6 9

@iliak

It looks like the project files from the example do not update to match with the structure of the new version of ESDK.


In ESDK version 1.5, it looks like the XML library has been moved to folder <Elektron-SDK-1.5.0.L1.win.rrg>\installdb\WIN_64_VS120\lib. So you might need to modify the link option in the project to a new path. Anyway I would recommend you to generate a makefile for all examples in ESDK using the instruction from


https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-cc/quick-start?content=42817&type=quick_start

And then, you can open the visual studio solution file from the example folder to see the setting.

icon clock
10 |1500

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

Upvotes
171 3 3 4

i tried that, and then run the solution with around 250 project and build them (there were few warnings, but no errors)
then i open the tutorial step 1 that i downloaded , (i did not find match example in the large folder, we need to integrate to MRN so if you have a better example as part of the 250 projects that would be great)

i Run:

cmake -HC:\Users\iliak\Elektron-SDK-1.5.0.L1.win.rrg\Elektron-SDK-1.5.0.L1.win.rrg -Bcmake_vs2013 -G "Visual Studio 12 2013 Win64"

and when i update the linkes (include dirs and libraries to the new generated folder at

C:\cmake_vs2013

i have another error, Ema.h does not exists (and i check there are no include dir inside Ema of the new generated folder (C:\cmake_vs2013)

@moragodkrit

icon clock
10 |1500

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

Click below to post an Idea Post Idea