Package Details: openvino 2024.0.0-1

Git Clone URL: https://aur.archlinux.org/openvino.git (read-only, click to copy)
Package Base: openvino
Description: A toolkit for developing artificial inteligence and deep learning applications
Upstream URL: https://docs.openvinotoolkit.org/
Licenses: Apache-2.0
Conflicts: intel-openvino
Provides: intel-openvino
Replaces: intel-openvino
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 10
Popularity: 1.63
First Submitted: 2020-12-23 22:29 (UTC)
Last Updated: 2024-03-06 22:18 (UTC)

Dependencies (23)

Sources (26)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

WSDMatty commented on 2023-07-18 10:58 (UTC)

Build fails with the error:

In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /usr/include/google/protobuf/stubs/common.h:44,
                 from /home/AUR/openvino/src/openvino/src/frontends/common/shutdown_protobuf/shutdown_protobuf.cpp:5:
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."
      |  ^~~~~
/usr/include/absl/strings/string_view.h:52:26: error: ‘string_view’ in namespace ‘std’ does not name a type
   52 | using string_view = std::string_view;
      |                          ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:52:21: note: ‘std::string_view’ is only available from C++17 onwards
   52 | using string_view = std::string_view;
      |                     ^~~
/usr/include/absl/strings/string_view.h:686:8: error: ‘string_view’ does not name a type
  686 | inline string_view ClippedSubstr(string_view s, size_t pos,
      |        ^~~~~~~~~~~
/usr/include/absl/strings/string_view.h:697:11: error: ‘string_view’ does not name a type
  697 | constexpr string_view NullSafeStringView(const char* p) {
      |           ^~~~~~~~~~~
In file included from /usr/include/google/protobuf/stubs/port.h:45,
                 from /usr/include/google/protobuf/stubs/common.h:46:
/usr/include/google/protobuf/port_def.inc:205:15: error: static assertion failed: Protobuf only supports C++14 and newer.
  205 | static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
      |               ^~~~~~~~~~~~~~~~~~~~~~

Adding -DCMAKE_CXX_STANDARD='17' to the pkgbuild with the rest of the cmake flags when running cmake -B build -S openvino fixes the build errors.

dbermond commented on 2023-06-20 01:58 (UTC)

@Eugine_Nier Package updated. Building fine.

@msa81 Package updated. Building fine. No need to use gcc12, I've added the needed fixes to build with the current gcc13.

msa81 commented on 2023-06-09 15:57 (UTC) (edited on 2023-06-09 15:59 (UTC) by msa81)

Also, I keep getting the error: "uint8 t" was not declared in this scope.

It's caused by gcc13 and can be fixed by installing gcc12 and exporting it to the environment. In short, openvino builds successfully by doing the workaround:

yay -S gcc12 gcc12-libs

export CC=gcc-12 CXX=g++-12

yay -S openvino

Eugine_Nier commented on 2023-05-18 06:29 (UTC) (edited on 2023-05-18 06:33 (UTC) by Eugine_Nier)

I keep getting this error:

[ 46%] Building CXX object src/common/util/CMakeFiles/util.dir/src/file_util.cpp.o
In file included from /home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:4:
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/include/openvino/util/file_util.hpp:250:13: error: ‘uint8_t’ was not declared in this scope
  250 | std::vector<uint8_t> load_binary(const std::string& path);
      |             ^~~~~~~
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/include/openvino/util/file_util.hpp:13:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   12 | #include "openvino/util/util.hpp"
  +++ |+#include <cstdint>
   13 | 
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/include/openvino/util/file_util.hpp:250:20: error: template argument 1 is invalid
  250 | std::vector<uint8_t> load_binary(const std::string& path);
      |                    ^
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/include/openvino/util/file_util.hpp:250:20: error: template argument 2 is invalid
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/include/openvino/util/file_util.hpp:256:55: error: ‘uint8_t’ was not declared in this scope
  256 | void save_binary(const std::string& path, std::vector<uint8_t> binary);
      |                                                       ^~~~~~~
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/include/openvino/util/file_util.hpp:256:55: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/include/openvino/util/file_util.hpp:256:62: error: template argument 1 is invalid
  256 | void save_binary(const std::string& path, std::vector<uint8_t> binary);
      |                                                              ^
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/include/openvino/util/file_util.hpp:256:62: error: template argument 2 is invalid
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:461:13: error: ‘uint8_t’ was not declared in this scope
  461 | std::vector<uint8_t> ov::util::load_binary(const std::string& path) {
      |             ^~~~~~~
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:43:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   42 | #        include <locale>
  +++ |+#include <cstdint>
   43 | #    endif
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:461:20: error: template argument 1 is invalid
  461 | std::vector<uint8_t> ov::util::load_binary(const std::string& path) {
      |                    ^
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:461:20: error: template argument 2 is invalid
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp: In function ‘int ov::util::load_binary(const std::string&)’:
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:482:21: error: ‘uint8_t’ was not declared in this scope
  482 |         std::vector<uint8_t> ret(nsize);
      |                     ^~~~~~~
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:482:21: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:482:28: error: template argument 1 is invalid
  482 |         std::vector<uint8_t> ret(nsize);
      |                            ^
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:482:28: error: template argument 2 is invalid
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:484:30: error: request for member ‘data’ in ‘ret’, which is of non-class type ‘int’
  484 |         auto res = fread(ret.data(), sizeof(uint8_t), nsize, fp);
      |                              ^~~~
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp: At global scope:
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:493:65: error: ‘uint8_t’ was not declared in this scope
  493 | void ov::util::save_binary(const std::string& path, std::vector<uint8_t> binary) {
      |                                                                 ^~~~~~~
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:493:65: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:493:72: error: template argument 1 is invalid
  493 | void ov::util::save_binary(const std::string& path, std::vector<uint8_t> binary) {
      |                                                                        ^
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:493:72: error: template argument 2 is invalid
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp: In function ‘void ov::util::save_binary(const std::string&, int)’:
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:502:61: error: invalid types ‘int[int]’ for array subscript
  502 |         out_file.write(reinterpret_cast<const char*>(&binary[0]), binary.size());
      |                                                             ^
/home/enier/.cache/yay/openvino/src/openvino/src/common/util/src/file_util.cpp:502:74: error: request for member ‘size’ in ‘binary’, which is of non-class type ‘int’
  502 |         out_file.write(reinterpret_cast<const char*>(&binary[0]), binary.size());
      |                                                                          ^~~~
make[2]: *** [src/common/util/CMakeFiles/util.dir/build.make:104: src/common/util/CMakeFiles/util.dir/src/file_util.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2734: src/common/util/CMakeFiles/util.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: openvino-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
openvino - exit status 4

dbermond commented on 2023-04-02 15:23 (UTC)

@Eirikr I've pushed a fix. My guess is that this is some incompatibility with newer cmake versions. Building fine now.

Eirikr commented on 2023-04-01 22:00 (UTC)

I keep receiving this message:

CMake Warning at cmake/developer_package/python_requirements.cmake:108 (message):
  Python requirement file
  /home/eric/.cache/yay/openvino/src/openvino/src/bindings/python/wheel/requirements-dev.txt
  is not installed,
Call Stack (most recent call first):
  src/bindings/python/CMakeLists.txt:129 (ov_check_pip_packages)


-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Python version=python3.10
-- Python version=python3.10
-- Found Cython: /usr/bin/cython  
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.10", minimum required is "3") 
-- Found Cython version 0.29.33
-- Found CUDA: /opt/cuda (found suitable exact version "12.1") 
CMake Error at /usr/share/cmake/Modules/FindOpenCL.cmake:51 (if):
  if given arguments:

    "EXISTS" "/home/eric/.cache/yay/openvino/src/openvino/thirdparty/ocl/cl_headers" "/home/eric/.cache/yay/openvino/src/openvino/thirdparty/ocl/clhpp_headers/include/Headers/cl.h"

  Unknown arguments specified
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindOpenCL.cmake:95 (_FIND_OPENCL_VERSION)
  samples/cpp/benchmark_app/CMakeLists.txt:84 (find_package)

In my /etc/profile I have: export OCL_ICD_VENDORS=/etc/OpenCL/vendors/ which still does not seem to work.

mozzribo commented on 2022-11-14 22:38 (UTC)

Yep, it works now! Thanks for the maintenance. :) I deleted my previous comment as it was pretty lengthy.

dbermond commented on 2022-11-14 14:06 (UTC)

@mozzribo I've just updated the package right before your comment, and it's building fine. The git fix was pushed. Probably you are using an outdated checkout of this repository. Make sure to update it with 'git pull', or clone it again.