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

Compiling for raspberry PI 3 B #1365

Open
luukvankooten opened this issue Aug 14, 2023 · 0 comments
Open

Compiling for raspberry PI 3 B #1365

luukvankooten opened this issue Aug 14, 2023 · 0 comments

Comments

@luukvankooten
Copy link

Hello,

I have checkout at commit: 07d089f
and also tried the master branch.

I'm building this with TensorFlow support, and installed it from the following third-party repo:

https://github.com/PINTO0309/Tensorflow-bin

the tensorflow version is: 1.15.0

Also, i tried the --kk option no luck.

I followed this blog post:

https://mtg.github.io/essentia-labs/news/tensorflow/2019/10/19/tensorflow-models-in-essentia/

The commit 07d089f and master are giving the same build error:
Also with different tensorflow version:

for commit 07d089f i have used tensorflow 1.15.0
for master i have used version 2.5.0

Al this has been build from my raspberry pi/

In file included from /usr/include/eigen3/unsupported/Eigen/CXX11/Tensor:147,
                 from ../src/essentia/types.h:33,
                 from ../src/essentia/algorithm.h:23,
                 from ../src/algorithms/machinelearning/tensorflowpredict.h:23,
                 from ../src/algorithms/machinelearning/tensorflowpredict.cpp:20:
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h: In instantiation of ‘Eigen::TensorMap<PlainObjectType, Options_, MakePointer_>::TensorMap(Eigen::TensorMap<PlainObjectType, Options_, MakePointer_>::PointerArgType, const Dimensions&) [with Dimensions = std::array<long int, 4>; PlainObjectType = Eigen::Tensor<const float, 4, 1, int>; int Options_ = 0; MakePointer_ = Eigen::MakePointer; Eigen::TensorMap<PlainObjectType, Options_, MakePointer_>::PointerArgType = const float*]’:
../src/algorithms/machinelearning/tensorflowpredict.cpp:362:49:   required from here
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h:103:49: error: no matching function for call to ‘Eigen::DSizes<int, 4>::DSizes(const std::array<long int, 4>&)’
  103 |       : m_data(dataPtr), m_dimensions(dimensions)
      |                                                 ^
In file included from /usr/include/eigen3/unsupported/Eigen/CXX11/Tensor:97,
                 from ../src/essentia/types.h:33,
                 from ../src/essentia/algorithm.h:23,
                 from ../src/algorithms/machinelearning/tensorflowpredict.h:23,
                 from ../src/algorithms/machinelearning/tensorflowpredict.cpp:20:
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:287:32: note: candidate: ‘template<class ... IndexTypes> Eigen::DSizes<DenseIndex, NumDims>::DSizes(DenseIndex, DenseIndex, IndexTypes ...) [with IndexTypes = {IndexTypes ...}; DenseIndex = int; int NumDims = 4]’
  287 |   EIGEN_STRONG_INLINE explicit DSizes(DenseIndex firstDimension, DenseIndex secondDimension, IndexTypes... otherDimensions) : Base({{firstDimension, secondDimension, otherDimensions...}}) {
      |                                ^~~~~~
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:287:32: note:   template argument deduction/substitution failed:
In file included from /usr/include/eigen3/unsupported/Eigen/CXX11/Tensor:147,
                 from ../src/essentia/types.h:33,
                 from ../src/essentia/algorithm.h:23,
                 from ../src/algorithms/machinelearning/tensorflowpredict.h:23,
                 from ../src/algorithms/machinelearning/tensorflowpredict.cpp:20:
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h:103:49: note:   candidate expects at least 2 arguments, 1 provided
  103 |       : m_data(dataPtr), m_dimensions(dimensions)
      |                                                 ^
In file included from /usr/include/eigen3/unsupported/Eigen/CXX11/Tensor:97,
                 from ../src/essentia/types.h:33,
                 from ../src/essentia/algorithm.h:23,
                 from ../src/algorithms/machinelearning/tensorflowpredict.h:23,
                 from ../src/algorithms/machinelearning/tensorflowpredict.cpp:20:
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:280:30: note: candidate: ‘Eigen::DSizes<DenseIndex, NumDims>::DSizes(DenseIndex) [with DenseIndex = int; int NumDims = 4]’
  280 |   EIGEN_DEVICE_FUNC explicit DSizes(const DenseIndex i0) {
      |                              ^~~~~~
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:280:54: note:   no known conversion for argument 1 from ‘const std::array<long int, 4>’ to ‘int’
  280 |   EIGEN_DEVICE_FUNC explicit DSizes(const DenseIndex i0) {
      |                                     ~~~~~~~~~~~~~~~~~^~
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:278:30: note: candidate: ‘Eigen::DSizes<DenseIndex, NumDims>::DSizes(Eigen::array<DenseIndex, NumDims>&) [with DenseIndex = int; int NumDims = 4; Eigen::array<DenseIndex, NumDims> = std::array<int, 4>]’
  278 |   EIGEN_DEVICE_FUNC explicit DSizes(const array<DenseIndex, NumDims>& a) : Base(a) { }
      |                              ^~~~~~
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:278:71: note:   no known conversion for argument 1 from ‘const std::array<long int, 4>’ to ‘Eigen::array<int, 4>&’ {aka ‘const std::array<int, 4>&’}
  278 |   EIGEN_DEVICE_FUNC explicit DSizes(const array<DenseIndex, NumDims>& a) : Base(a) { }
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:273:41: note: candidate: ‘Eigen::DSizes<DenseIndex, NumDims>::DSizes() [with DenseIndex = int; int NumDims = 4]’
  273 |   EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DSizes() {
      |                                         ^~~~~~
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:273:41: note:   candidate expects 0 arguments, 1 provided
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:261:8: note: candidate: ‘constexpr Eigen::DSizes<int, 4>::DSizes(const Eigen::DSizes<int, 4>&)’
  261 | struct DSizes : array<DenseIndex, NumDims> {
      |        ^~~~~~
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:261:8: note:   no known conversion for argument 1 from ‘const std::array<long int, 4>’ to ‘const Eigen::DSizes<int, 4>&’
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:261:8: note: candidate: ‘constexpr Eigen::DSizes<int, 4>::DSizes(Eigen::DSizes<int, 4>&&)’
/usr/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h:261:8: note:   no known conversion for argument 1 from ‘const std::array<long int, 4>’ to ‘Eigen::DSizes<int, 4>&&’```
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