Package Details: openvino 2024.1.0-3

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: 0.92
First Submitted: 2020-12-23 22:29 (UTC)
Last Updated: 2024-05-04 15:56 (UTC)

Dependencies (24)

Sources (29)

Latest Comments

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

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.

dbermond commented on 2022-05-02 21:14 (UTC)

@AaronC Instead of using a virtual machine with a fresh install just to build a package, build the package in a clean chroot. That's how all the packages in the official repositories are built, and that's how I built all my packages. It assures that there are no interference with files and variables from your environment, as it's built in an isolated chroot environment. It should build fine for you in this way, as it builds fine for me, since it will be built on the same isolated environment. Beware that the built package may give problems to you at runtime, since you appear to have custom stuff on '/usr/local' that can interfere (as building on the chroot will use only files from the official repositories if you don't install anything else on the chroot), and you should make sure to have a clear Arch Linux environment firstly if you opt for doing this way.