-
Notifications
You must be signed in to change notification settings - Fork 114
Set up CI testing for windows. #85
Comments
I am working on it. I should have something in few hours. |
Just let me know if you need anything from the AppVeyor account! |
@mdouaihy you found the issue for ctests ? |
it's taking a bit more time than expected because MSVC handle the shared libraries differently than Linux. Also, MSVC requires to declare the exported and imported symbols using declspec(export) and declspec(import) while compiling the shared lib but not when compiling the static lib, etc. I should have a working version running and tested on Appveyor by the end of this week end |
@mdouaihy - how's this going? It looks like your branch also adds dynamic loading support for windows -- that's cool; but could we maybe break that out into a separate PR and put in a smaller PR that just adds windows CI support without dynamic loading to get started? |
@rnburn, I took time before submitting any PR because in parallel, I worked on building Jaeger on Windows also (https://github.com/mdouaihy/jaeger-client-cpp). As for your suggestion, here are the problems:
|
Great work from @mdouaihy who worked hard on it ! |
It's the test TEST_CASE("json"): The problem is that SpanData contains a tags which is an std::unordered_map<std::string, Value and SpanContextData contains baggage which is std::unordered_map<std::string, std::string>. The order is not guaranteed. As for the Dynamic loading, you're right about the cmake check. However, I needed it while building Jaeger. That's why I included it in the change. Just to be sure, the code is in the branch windowsbuild the repo I forked https://github.com/mdouaihy/opentracing-cpp/tree/windowsbuild |
* Support build on Windows with MSVC 15.7 (#85) * Export Symbols * Add Runtime targets to the install steps * Fix failing unit test under Windows * Add some MSVC compile options * Add appveyor build file * add output directory and ignore build folder in git * Exclude dynamic_load_windows.cpp from bazel build. * Handlle multiple symbols problem when linking directly with tracer implementations. * Format the error message when doing Windows calls. * Enrich the README with instructions to build and test under Windows. * Dont declare the Fontions when registering them for OpenTracing dynamic loading.
AppVeyor was set up for the repository (See #80), but the build tests still need to be written.
The text was updated successfully, but these errors were encountered: