FS#72144 - tensorflow, tensorflow-cuda, and tensorflow-opt-cuda not being detected / include files not found
Attached to Project:
Arch Linux
Opened by Alexander Farley (Inverarity) - Wednesday, 15 September 2021, 18:16 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 15 September 2021, 20:07 GMT
Opened by Alexander Farley (Inverarity) - Wednesday, 15 September 2021, 18:16 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 15 September 2021, 20:07 GMT
|
Details
Description:
The tensorflow, tensorflow-cuda, and tensorflow-opt-cuda libraries are not found when trying to link libtensorflow library into a program. That is for example: "tensorflow/c/c_api.h: No such file or directory". If however, the folders in "/usr/include/tensorflow/tensorflow" are all moved to "/usr/include/tensorflow" then the program can link to the tensorflow library. The packagekit file looks fine in terms of describing the path to the header files, but clearly something is off locally in how the path is defined going from the .pc file to the .h files. I don't have an easy way to test the actual consequences of moving the include files, but the programs do link in the libraries and compile. Additional info: * package version(s) 2.6.0-5 * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: 1.) Try to compile sample Hello_tf program from Tensorflow C website ...or ffmpeg with "--enable-libtensorflow". 2.) Output: hello_tf.c:2:10: fatal error: tensorflow/c/c_api.h: No such file or directory 2 | #include <tensorflow/c/c_api.h> | ^~~~~~~~~~~~~~~~~~~~~~ 3.) Move folders in /usr/include/tensorflow/tensorflow up to parent directory /usr/include/tensorflow and the program compiles |
This task depends upon
Closed by Antonio Rojas (arojas)
Wednesday, 15 September 2021, 20:07 GMT
Reason for closing: Duplicate
Additional comments about closing: Please do not file duplicates
Wednesday, 15 September 2021, 20:07 GMT
Reason for closing: Duplicate
Additional comments about closing: Please do not file duplicates