confluentinc / libserdes

Avro Serialization/Deserialization C/C++ library with Confluent schema-registry support
Apache License 2.0
5 stars 64 forks source link

Add Windows and CMake support #54

Open glywk opened 1 year ago

glywk commented 1 year ago

This update purpose many improvements:

bayueqiankong commented 1 year ago

CMake Error at CMakeLists.txt:19 (find_package): By not providing "Findlibavrocpp.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libavrocpp", but CMake did not find one.

Could not find a package configuration file provided by "libavrocpp" with any of the following names:

libavrocppConfig.cmake
libavrocpp-config.cmake

Add the installation prefix of "libavrocpp" to CMAKE_PREFIX_PATH or set "libavrocpp_DIR" to a directory containing one of the above files. If "libavrocpp" provides a separate development package or SDK, be sure it has been installed.

glywk commented 1 year ago

Hi, Thanks for your answer. To install and generate all libserdes CMake dependencies, I have purpose a Conan based solution. You can see the command line example for Windows in the README.md.


cd build
conan install -pr:b win_x86_64_release -pr:h win_x86_64_release ../conan/conanfile.txt
cmake .. --toolchain=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
cmake -P cmake_install.cmake```

Regards
glywk commented 1 year ago

@edenhill

glywk commented 1 year ago

@emasab