[Bug 267233] graphics/tesseract: fails to build if science/py-tensorflow is installed
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267233] graphics/tesseract: fails to build if science/py-tensorflow is installed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267233] graphics/tesseract: fails to build if science/py-tensorflow is installed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 267233] graphics/tesseract: fails to build if science/py-tensorflow is installed"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Oct 2022 04:45:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267233 Bug ID: 267233 Summary: graphics/tesseract: fails to build if science/py-tensorflow is installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: jinxiaoyong@gmail.com CC: amzo1337@gmail.com, pkubaj@FreeBSD.org CC: amzo1337@gmail.com, pkubaj@FreeBSD.org Created attachment 237494 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237494&action=edit add --without-tensorflow to CONFIGURE_ARGS By default tesseract configure checks for tensorflow. Tensorflow installed from port breaks the build of tesseract, see error messages below. The fault is in the tensorflow port, though I'm not sure how to fix that. For tesseract to build, it's enough to patch the Makefile and add CONFIGURE_ARGS+=--without-tensorflow --- src/lstm/libtesseract_lstm_la-tfnetwork.pb.lo --- In file included from src/lstm/tfnetwork.pb.cc:4: ./src/lstm/tfnetwork.pb.h:17:4: error: This file was generated by an older version of protoc which is # error This file was generated by an older version of protoc which is ^ ./src/lstm/tfnetwork.pb.h:18:4: error: incompatible with your Protocol Buffer headers. Please # error incompatible with your Protocol Buffer headers. Please ^ ./src/lstm/tfnetwork.pb.h:19:4: error: regenerate this file with a newer version of protoc. # error regenerate this file with a newer version of protoc. ^ --- src/lstm/libtesseract_lstm_la-tfnetwork.pb.lo --- ./src/lstm/tfnetwork.pb.h:25:10: fatal error: 'google/protobuf/generated_message_table_driven.h' file not found #include <google/protobuf/generated_message_table_driven.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- src/lstm/libtesseract_lstm_la-network.lo --- In file included from src/lstm/network.cpp:42: In file included from ./src/lstm/tfnetwork.h:30: In file included from /usr/local/include/tensorflow/core/public/session.h:24: /usr/local/include/tensorflow/core/framework/tensor.h:22:10: fatal error: 'third_party/eigen3/unsupported/Eigen/CXX11/Tensor' file not found #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- src/lstm/libtesseract_lstm_la-tfnetwork.lo --- In file included from src/lstm/tfnetwork.cpp:20: In file included from ./src/lstm/tfnetwork.h:30: In file included from /usr/local/include/tensorflow/core/public/session.h:24: /usr/local/include/tensorflow/core/framework/tensor.h:22:10: fatal error: 'third_party/eigen3/unsupported/Eigen/CXX11/Tensor' file not found #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- You are receiving this mail because: You are the assignee for the bug.