GithubHelp home page GithubHelp logo

Comments (9)

Neargye avatar Neargye commented on June 12, 2024

Have you tried to create a project from a cmake project?
Or try like in example https://wiki.qt.io/How_to_link_to_a_dll

The project visual studio build and run successfully.

from hello_tf_c_api.

Neargye avatar Neargye commented on June 12, 2024

Also what version did you download and what is in the folders?

from hello_tf_c_api.

HackersSpirit avatar HackersSpirit commented on June 12, 2024

No, I did not use cmake I downloaded the following folder: libtensorflow-cpu-windows-x86_64-1.11.0.zip
I have linked all the dll in my pro file.
I will try to run it on visual studio. I have visual studio 2017 will it work?

from hello_tf_c_api.

Neargye avatar Neargye commented on June 12, 2024

With vs2017 work, run cmake to build project

from hello_tf_c_api.

Neargye avatar Neargye commented on June 12, 2024

@HackersSpirit You can try folow step:

git clone https://github.com/Neargye/hello_tf_c_api
cd hello_tf_c_api
mkdir build
cd build
cmake -G "Visual Studio 15 2017" -A x64 ..
cmake --build . --config Debug

from hello_tf_c_api.

HackersSpirit avatar HackersSpirit commented on June 12, 2024

@Neargye : Sure will try and let you know.

from hello_tf_c_api.

finger563 avatar finger563 commented on June 12, 2024

@Neargye how did you configure / run the bazel build for generating the .dll, .lib, .exp, and .def? I've downloaded the official google release which contains only the .dll which I'm unable to properly compile with using vs2017, and I've not been able to figure out how to get bazel to build the windows library files

That being said - I've tried replacing my .dll I downloaded from the google release with your .{dll, lib, exp, def} and my solution is able to compile so at least i know that's all that's missing.

from hello_tf_c_api.

finger563 avatar finger563 commented on June 12, 2024

Ah nevermind - I figured out why my commands to turn the .dll into .lib using dumpbin and such weren't working - my regex to get just the names was missing some of the names :P

from hello_tf_c_api.

Neargye avatar Neargye commented on June 12, 2024

@finger563 i use dumpbin too.

from hello_tf_c_api.

Related Issues (20)

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.