GithubHelp home page GithubHelp logo

Comments (4)

yangsu2022 avatar yangsu2022 commented on August 17, 2024

Hi, please try with conda-forge

conda install -c conda-forge openvino eigen c-compiler cxx-compiler make

For Windows deployment, you could also install eigen and openvino without conda.

Details

  1. Download from https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip
  2. Unzip to path C:/Eigen3/eigen-3.4.0
  3. Run next step's build.bat will report error: not found Eigen3Config.cmake/eigen3-config.cmake
  • Create build folder for Eigen and Open VS in this path C:/Eigen3/eigen-3.4.0/build
  • Open VS's developer PS terminal to do "cmake .." and redo the CMake

from openvino.genai.

gblong1 avatar gblong1 commented on August 17, 2024

Hi @yangsu2022 - using conda-forge did resolve the conda install step.

however pip install for openvino_contrib fails with a build failure.

D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\sentence_piece.cpp(110,1): error C2039: 'string': is not a member of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      C:/Users/local_user/.conda/envs/openvino_sd_cpp/Library/include\openvino/core/type/element_type.hpp(32): message : see declaration of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\sentence_piece.cpp(110,1): error C2065: 'string': undeclared identifier [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\sentence_piece.cpp(156,43): error C2039: 'string': is not a member of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      C:/Users/local_user/.conda/envs/openvino_sd_cpp/Library/include\openvino/core/type/element_type.hpp(32): message : see declaration of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\sentence_piece.cpp(156,49): error C2065: 'string': undeclared identifier [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\sentence_piece.cpp(168,47): error C2039: 'string': is not a member of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      C:/Users/local_user/.conda/envs/openvino_sd_cpp/Library/include\openvino/core/type/element_type.hpp(32): message : see declaration of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\sentence_piece.cpp(168,53): error C2065: 'string': undeclared identifier [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
        string_tensor_pack.cpp
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\string_tensor_pack.cpp(14,33): error C2039: 'string': is not a member of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      C:/Users/local_user/.conda/envs/openvino_sd_cpp/Library/include\openvino/core/type/element_type.hpp(32): message : see declaration of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\string_tensor_pack.cpp(14,39): error C2065: 'string': undeclared identifier [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
        string_tensor_unpack.cpp
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\string_tensor_unpack.cpp(20,39): error C2039: 'string': is not a member of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      C:/Users/local_user/.conda/envs/openvino_sd_cpp/Library/include\openvino/core/type/element_type.hpp(32): message : see declaration of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\string_tensor_unpack.cpp(20,45): error C2065: 'string': undeclared identifier [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\string_tensor_unpack.cpp(49,39): error C2039: 'string': is not a member of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      C:/Users/local_user/.conda/envs/openvino_sd_cpp/Library/include\openvino/core/type/element_type.hpp(32): message : see declaration of 'ov::element' [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
      D:\openvino.genai\thirdparty\openvino_contrib\modules\custom_operations\user_ie_extensions\tokenizer\string_tensor_unpack.cpp(49,45): error C2065: 'string': undeclared identifier [C:\Users\local_user\AppData\Local\Temp\tmpnlegpeyi\build\user_ie_extensions\user_ov_extensions.vcxproj]
        tensorflow_translators.cpp
        utils.cpp
        vocab_decoder.cpp
        wordpiece_tokenizer.cpp
        Generating Code...

      *** CMake build failed
      [end of output]      

Following the manual build flow results in the same issue when compiling with Visual Studio 2022.
I am currently using OpenVINO 2023.2.0 release.

from openvino.genai.

Wovchena avatar Wovchena commented on August 17, 2024

OpenVINO version supporting ov::element::string isn't released yet.

curl https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2023.3.0-13739-294cc6668c4/l_openvino_toolkit_ubuntu20_2023.3.0.dev20231219_x86_64.tgz | tar --directory ./openvino/ --strip-components 1 -xz
Nightly package is used in tests. Equivalent Windows package from https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2023.3.0-13739-294cc6668c4/ should be fine

from openvino.genai.

gblong1 avatar gblong1 commented on August 17, 2024

Moving to the build linked above resolved the issue with the manual build flow. Might be worth mentioning that you need a dev build in the Readme.

from openvino.genai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.