We are waiting for OpenVino to be fixed after Audacity 3.6 alpha has been released.
The clone git copies the latest version!!!
The shell or terminal command are commented with Czech lang.
We are waiting to the compatibility fix in OpenVino for linux, to continue 06-03-2024 (3.6.2024).
If U are Mint 21.3 (which is derived from Ubuntu 22) see my version of install_dependencies.sh:
# INSTALACE A KOMPILACE OPENVINO (Červen 2024) A AUDACITY 3.6 pro Linux Mint 21.3
# Co je třeba: 1) OpenVino toolkit
# 2) OpenVino Tokenizer
# 3) OpenVino pro linux
# 4) editovat OpenVino Toolkit install_dependencies/install_dependencies.sh, který je v toolkitu - Ubuntu 20 odpovídá linuxmint21.3
# https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.0/linux
# https://storage.openvinotoolkit.org/repositories/openvino_tokenizers/packages/2024.0.0.0/
# https://github.com/intel/openvino-plugins-ai-audacity/issues/223
# https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.0/linux
# Instrukce jsem převzal z readme: https://github.com/intel/openvino-plugins-ai-audacity/blob/43de3af6087480ab2030404aba3f122fafa9bd73/doc/build_doc/linux/README.md
mv ~/Stažené/audacity-linux-*_64.AppImage ~/AppImage/
chmod 755 audacity
./audacity-linux-3.5.1-x64.AppImage
mv ~/Stažené/audacity-linux-*.AppImage ~/AppImage/
cd ~/AppImage
nano ~/.local/share/applications/audacity.desktop
cat << EOF > ~/.local/share/applications/audacity.desktop
[Desktop Entry]
Version=1.0
Name=Audacity
Comment=Free, open source, cross-platform audio software
Exec=/home/user/AppImage/audacity-linux-3.2.1-x86_64.AppImage
Icon=audacity
Terminal=false
Type=Application
Categories=AudioVideo;Audio;Recorder;Multimedia;
EOF
# Příprava na instalaci OpenVino a jeho pluginů
# Audacity budu připravovat v ~/Audacity
# Vše pro OpenVino bude ve složce ~/OpenVino
sudo apt update
sudo apt-get install -y build-essential cmake git python3-pip
sudo pip3 install conan
sudo apt-get install libgtk2.0-dev libasound2-dev libjack-jackd2-dev uuid-dev
# OpenVino částečně používá opencl
sudo apt install ocl-icd-opencl-dev
sudo wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-get install gnupg
echo "deb https://apt.repos.intel.com/openvino/2024 ubuntu22 main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2024.list
cat /etc/apt/sources.list.d/intel-openvino-2024.list
apt-cache search openvino
sudo apt install openvino-2024.1.0
sudo apt install openvino
cd OpenVino
tar xvf l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64.tgz
cd l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64
sudo -E ./install_openvino_dependencies.sh
read -p "For mint user different open vino dep install.sh"
xed .bash_h*
tar xzvf openvino_tokenizers_ubuntu22_2024.0.0.0_x86_64.tgz
unzip libtorch-cxx11-abi-shared-with-deps-2.1.1+cpu.zip
export LIBTORCH_ROOTDIR=/home/user/OpenVino/libtorch
cd audacity-build
make -j`nproc`
cd OpenVino
# Stáhnout aktuální verzi pro Audacity 3.6
git clone https://github.com/intel/openvino-plugins-ai-audacity.git
cd ../Audacity/audacity
read -p "Press a key to continue"
tar xvf l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64.tgz
cd ~/OpenVino/l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64/install_dependencies
cd ..
# whisper přijde stáhnout do složky OpenVino
cd ~/OpenVino
git clone https://github.com/ggerganov/whisper.cpp
cd whisper.cpp
git checkout v1.5.4
# source /home/user/OpenVino/l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64/setupvars.sh
source $(readlink -f set*)
export LIBTORCH_ROOTDIR=/home/user/OpenVino/libtorch
cd ..
# Create build folder
mkdir whisper-build
cd whisper-build
# Run CMake, specifying that you want to enable OpenVINO support.
cmake ../whisper.cpp/ -DWHISPER_OPENVINO=ON
# Build it:
make -j 4
# Install built whisper collateral into a local 'installed' directory:
cmake --install . --config Release --prefix ./installed
cd /home/user/OpenVino/whisper-build
export WHISPERCPP_ROOTDIR=/home/user/OpenVino/whisper-build/installed
export LD_LIBRARY_PATH=${WHISPERCPP_ROOTDIR}/lib:$LD_LIBRARY_PATH
git clone https://github.com/audacity/audacity.git
mkdir ~/Audacity/audacity-build
ls ~/Audacity/audacity
read -p "Press a key to continue"
cd ~/Audacity/audacity-build
cmake -G "Unix Makefiles" ../audacity -DCMAKE_BUILD_TYPE=Release
# build it
make -j`nproc`
# Try audacity if you want...
Release/bin/audacity
export LIBTORCH_ROOTDIR=/home/user/OpenVino/libtorch
source /home/user/OpenVino/l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64/setupvars.sh
cd /home/user/OpenVino/whisper-build/installed
ls
read -p "Press a key to continue"
cd /home/user/OpenVino/whisper-build/make -j 4
cmake --install . --config Release --prefix ./installed
export WHISPERCPP_ROOTDIR=/home/user/OpenVino/whisper-build/installed
export LD_LIBRARY_PATH=${WHISPERCPP_ROOTDIR}/lib:$LD_LIBRARY_PATH
export LIBTORCH_ROOTDIR=/home/user/OpenVino/libtorch
source /home/user/OpenVino/l_openvino_toolkit_ubuntu22_2024.0.0.14509.34caeefd078_x86_64/setupvars.sh
ls
read -p "Press a key to continue"
cd installed
cd ~/Audacity/audacity-build
cmake -G "Unix Makefiles" ../audacity -DCMAKE_BUILD_TYPE=Release
make -j`nproc`
Žádné komentáře:
Okomentovat