Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Obtain libtensorflow_cc.lib in MSYS2 MinGW64 Environment with Bazel #104

Open
TaiHaoMedAI opened this issue Nov 30, 2023 · 0 comments

Comments

@TaiHaoMedAI
Copy link

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows10
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: None
  • TensorFlow installed from (source or binary): source
  • TensorFlow version: v1.15.4+nv20.12
  • Python version: 3.8
  • Installed using virtualenv? pip? conda?: conda
  • Bazel version (if compiling from source): 0.24.0
  • GCC/Compiler version (if compiling from source): msvc 2019.16
  • CUDA/cuDNN version:cuda11.8/cudnn8.8.1
  • GPU model and memory: 3060ti

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem
I am working in an MSYS2 and MinGW64 environment and trying to build TensorFlow using Bazel to obtain libtensorflow_cc.lib. Here is the command I am using:

bazel build --config=v1 --config=cuda --define=no_tensorflow_py_deps=true --copt=-nvcc_options=disable-warnings //tensorflow:libtensorflow_cc.so //tensorflow:install_headers

I have successfully generated libtensorflow_cc.so, libtensorflow_cc.dll, and numerous .cc files using this command. Attached is a screenshot showing the current file structure produced by this command. However, I am still looking for how to adjust this command or my environment settings to generate the libtensorflow_cc.lib file for Windows and an include folder containing only .h header files.
image

I am not finding the specific files I need in the bazel-out directory. Could you please guide me on how to obtain the libtensorflow_cc.lib file and the necessary header files?

Thank you for your help!

Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

@TaiHaoMedAI TaiHaoMedAI changed the title Not get libtensorflow_cc.lib while i has used bazel build on windows system How to Obtain libtensorflow_cc.lib in MSYS2 MinGW64 Environment with Bazel Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant