Skip to content

Updated v2 fork with latest libraries, bug fixes and vcpkg manifest integration #54

@sukesh-ak

Description

@sukesh-ak

I have fixed bugs and have an updated fork of v2 here

https://github.com/Zdhaa/cppkiteconnect/commits/v2

I have tested on Ubuntu for now.
It should work on all platforms as well viz (Windows, Linux & Mac).

Completed tasks

  • Removed external dependency of submodules
  • Added vcpkg as submodule with manifest mode ( vcpkg.json )
  • Upgraded all the dependencies to latest version - fmt,picosha2,rapidjson,cpp-httplib
  • Fixed few bugs connected to fmt upgrade to fmt 9.x
  • Updated Kite related header files with proper header file path for vcpkg changes
  • Updated httplib error code to strings which was marked as TODO
  • Updated CMakeLists.txt with find_package for components coming from vcpkg.

Have added vcpkg as cmake toolchain here in CMakeLists.txt

Clone, compile and test

# Clone recursive v2 branch
$ git clone --recursive https://github.com/Zdhaa/cppkiteconnect -b v2

# pre-compiled (Ubuntu x64) libuWS.a is in uWS folder - since this is an older version with client support
$ cmake . -B build -DBUILD_EXAMPLES=On -DUWS_LIB=uWS/libuWS.a && cmake --build build

Here is the content of vcpkg.json

{
    "name": "cppkiteconnect",
    "version-string": "2.0.0",
    "homepage": "https://github.com/zerodha/cppkiteconnect",
    "description": "C++ Kite Connect API library / SDK",
    "dependencies": [
      "fmt",
      "cpp-httplib",
      "picosha2",
      "rapidjson",
      "zlib",
      "gtest",
      "libuv",
      "openssl"
    ]
  }

Will send PR if its ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions