Git Product home page Git Product logo

libgen4dll's Introduction

libgen4dll

A simple tool for generating .lib file from .dll

Notes

You need to either include the VC binaries in your path or use the VS command prompt to use.

Usage:

libgen4dll <dll-files>

If you have VC binaries in your path, you can simply drag and drop.

Reasoning

I have failed many times to compile the tensorflow C++ bindings from source using bazel. The inconsistency is overwhelming, and bazel builds require specific version of python and bazel, and configuring an environment just for that seemed overwhelming.

I found out that the C binding binaries here was in fact a C++ binding with VC name mangling conventions. But the download did not include a .lib file, and thus requires the caller to call LoadLibrary() and GetProcAddress() for every called function. The C++ functions requires using mangled names and calling member functions with __thiscall convention seemed really difficult.

Thus creating a lib file for the dll seemed the right approach. As suggested here, I made a simple tool that will automate this process, since accoring to the tensorflow page, the C and C++ API is subject to change in future versions, thus requires a automated approach to do this.

License

This tool is free to use and modify as long as the derived forms are still open-source.(GPL-v3)

libgen4dll's People

Contributors

shangjiaxuan avatar

Stargazers

小沙盒工作室-室长 avatar popy32 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.