terryzhao127 / tensorflow-windows-build-script

A script to automate building Tensorflow on Windows and solve some problems
GNU General Public License v3.0
102 stars 35 forks source link

Unable to read tensorflow_cc.dll after linking #40

Closed mohapatras closed 4 years ago

mohapatras commented 4 years ago

tf version: 13.1 Type: CPU

I have successfully built the tensorflow using the script here. I have the following files, tensorflow_cc.lib tensorflow_cc.dll added them to Linker -> Input -> Additional Dependencies, .lib file paths to Linker -> General -> Additional Library Directories Note: I have linked required C++ headers also.

My issue is VS2017 is unable to read tensorflow_cc.dll while building solution.

Error: LNK1107 invalid or corrupt file: cannot read at 0x358 tf demo 1 C:\tf13\tensorflow-windows-build-script\source\bazel-bin\tensorflow\tensorflow_cc.dll 1

https://drive.google.com/open?id=1pVO73wGxjJZJdMBX16FxowpXJwkyoH69

@guikarist Anything I am missing here ?

mohapatras commented 4 years ago

Looks like I linked at the wrong place. Fixed.