「白底字段打在任意Terminal,黑底字段打在编辑器特定位置」
ISO
登录https://next.itellyou.cn/Original/
Windows
盛千装机助手https://wwza.lanzouo.com/s/SQZJ
Ubuntu
VirtualTEL
IDEA
https://laq8aq5ywv.feishu.cn/docx/https://laq8aq5ywv.feishu.cn/docx/
GIT
git config --global user.name Angelyatou
git config --global user.email [email protected]
ssh-keygen -t rsa -C [email protected]
ZENO_Win
//功能全开
cmake -B build -DCMAKE_BUILD_TYPE=Release -DZENO_WITH_ZenoFX:BOOL=ON -DZENOFX_ENABLE_OPENVDB:BOOL=ON -DZENOFX_ENABLE_LBVH:BOOL=ON -DZENO_WITH_zenvdb:BOOL=ON -DZENO_WITH_FastFLIP:BOOL=ON -DZENO_WITH_FEM:BOOL=ON -DZENO_WITH_Rigid:BOOL=ON -DZENO_WITH_cgmesh:BOOL=ON -DZENO_WITH_oldzenbase:BOOL=ON -DZENO_WITH_TreeSketch:BOOL=ON -DZENO_WITH_Skinning:BOOL=ON -DZENO_WITH_Euler:BOOL=ON -DZENO_WITH_Functional:BOOL=ON -DZENO_WITH_LSystem:BOOL=ON -DZENO_WITH_mesher:BOOL=ON -DZENO_WITH_Alembic:BOOL=ON -DZENO_WITH_FBX:BOOL=ON -DZENO_WITH_DemBones:BOOL=ON -DZENO_WITH_SampleModel:BOOL=ON -DZENO_WITH_CalcGeometryUV:BOOL=ON -DZENO_WITH_MeshSubdiv:BOOL=ON -DZENO_WITH_Audio:BOOL=ON -DZENO_WITH_PBD:BOOL=ON -DZENO_WITH_GUI:BOOL=ON -DZENO_WITH_ImgCV:BOOL=ON
-DCMAKE_TOOLCHAIN_FILE=E:\vcpkg\scripts\buildsystems\vcpkg.cmake
-DCMAKE_PREFIX_PATH=C:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5
-DCMAKE_INCLUDE_PATH=E:\vcpkg\installed\x64-windows\include
-DCMAKE_LIBRARY_PATH=E:\vcpkg\installed\x64-windows\lib
-DZENO_WITH_ZenoFX:BOOL=ON
-DZENOFX_ENABLE_OPENVDB:BOOL=ON
-DZENOFX_ENABLE_LBVH:BOOL=ON
-DZENO_WITH_zenvdb:BOOL=ON
-DZENO_WITH_FastFLIP:BOOL=ON
-DZENO_WITH_FEM:BOOL=ON
-DZENO_WITH_Rigid:BOOL=ON
-DZENO_WITH_cgmesh:BOOL=ON
-DZENO_WITH_oldzenbase:BOOL=ON
-DZENO_WITH_TreeSketch:BOOL=ON
-DZENO_WITH_Skinning:BOOL=ON
-DZENO_WITH_Euler:BOOL=ON
-DZENO_WITH_Functional:BOOL=ON
-DZENO_WITH_LSystem:BOOL=ON
-DZENO_WITH_mesher:BOOL=ON
-DZENO_WITH_Alembic:BOOL=ON
-DZENO_WITH_FBX:BOOL=ON
-DZENO_WITH_DemBones:BOOL=ON
-DZENO_WITH_SampleModel:BOOL=ON
-DZENO_WITH_CalcGeometryUV:BOOL=ON
-DZENO_WITH_MeshSubdiv:BOOL=ON
-DZENO_WITH_Audio:BOOL=ON
-DZENO_WITH_PBD:BOOL=ON
-DZENO_WITH_GUI:BOOL=ON
-DZENO_WITH_ImgCV:BOOL=ON
-DZENO_WITH_CUDA:BOOL=ON
-DZENO_WITH_CuEulerian:BOOL=ON
-DZENO_ENABLE_OPTIX:BOOL=ON
-DZENO_ENABLE_ZHXXVIS:BOOL=ON
-DCMAKE_EXPORT_COMPILE_COMMANDS=1
-DZENO_WITH_Python:BOOL=OFF
-DZENO_WITH_TOOL_FLIPtools:BOOL=ON
-DZENO_WITH_TOOL_cgmeshTools:BOOL=ON
-DZENO_WITH_TOOL_BulletTools:BOOL=ON
-DZENO_WITH_TOOL_HerculesTools:BOOL=ON
//这个是自己用的,具体需求看官方文档,要什么功能开什么扩展
-DCMAKE_TOOLCHAIN_FILE=E:\vcpkg\scripts\buildsystems\vcpkg.cmake
-DCMAKE_PREFIX_PATH=C:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5
-DCMAKE_INCLUDE_PATH=E:\vcpkg\installed\x64-windows\include
-DCMAKE_LIBRARY_PATH=E:\vcpkg\installed\x64-windows\lib
-DZENO_MULTIPROCESS=ON
-DZENO_WITH_TOOL_FLIPtools=OFF
-DZENO_WITH_TOOL_cgmeshTools=OFF
-DZENO_WITH_TOOL_BulletTools=OFF
-DZENO_WITH_TOOL_HerculesTools=OFF
-DZENO_WITH_ZenoFX=ON
-DZENO_WITH_oldzenbase=ON
-DZENO_WITH_zenvdb=ON
-DZENO_WITH_FastFLIP=OFF
-DZENO_WITH_Rigid=OFF
-DZENO_WITH_cgmesh=OFF
-DZENO_WITH_mesher=OFF
-DZENO_WITH_Euler=OFF
-DZENO_WITH_FEM=OFF
-DZENO_WITH_DemBones=OFF
-DZENO_WITH_FBX=ON
-DZENO_WITH_Alembic=ON
-DZENO_WITH_LSystem=OFF
-DZENO_WITH_Skinning=OFF
-DZENO_WITH_SampleModel=OFF
-DZENO_WITH_Functional=OFF
-DZENO_WITH_TreeSketch=OFF
-DZENO_WITH_CalcGeometryUV=OFF
-DZENO_WITH_MeshSubdiv=ON
-DZENO_WITH_CUDA=OFF
-DZENO_WITH_CuLagrange=OFF
-DZENO_WITH_Audio=ON
-DZENO_WITH_Parameterization=OFF
-DZENO_WITH_GUI=OFF
-DZENO_WITH_PBD=OFF
-DZENO_WITH_Python=OFF
-DZENO_WITH_ImgCV=ON
-DZENO_ENABLE_OPTIX:BOOL=ON
-DZENO_BUILD_PLAYER=OFF
-DZENO_WITH_CuEulerian=OFF
QT online (下载最新版)
链接:https://pan.baidu.com/s/1FeRcVhdGkv57uIrJmCgWRg?pwd=jk1p
提取码:jk1p
CUDA
VCPKG
microsoft/vcpkg: C++ Library Manager for Windows, Linux, and MacOS (github.com)https://github.com/microsoft/vcpkg
cd C:\
git clone https://github.com/microsoft/vcpkg.git --depth=1
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
.\vcpkg install zlib:x64-windows
.\vcpkg install blosc:x64-windows
.\vcpkg install tbb:x64-windows
.\vcpkg install boost-iostreams:x64-windows
.\vcpkg install boost-any:x64-windows
.\vcpkg install boost-algorithm:x64-windows
.\vcpkg install boost-uuid:x64-windows
.\vcpkg install boost-interprocess:x64-windows
.\vcpkg install eigen3:x64-windows
.\vcpkg install cgal:x64-windows
.\vcpkg install lapack:x64-windows
.\vcpkg install openblas:x64-windows
.\vcpkg install hdf5:x64-windows
.\vcpkg install opencv:x64-windows
升级vcpkg:
git config --global --add safe.directory E:/vcpkg
git checkout master
git pull
ZENO_Ubuntu22
sudo apt-get install build-essential
sudo apt install -y g++
sudo apt install -y cmake
sudo apt install -y make
sudo apt install -y wget
sudo apt install -y unzipsudo apt install -y pkg-config
git submodule update --init --recursive
sudo apt-get install -y libblosc-dev libboost-iostreams-dev zlib1g-dev libtbb-dev libopencv-dev
sudo apt-get install -y libeigen3-dev libcgal-dev liblapack-dev libopenblas-dev libhdf5-dev
OpenCV
Ubuntu 20.04下搭建C++ & OpenCV 4.6.0 & cmake编译 - 知乎前言:这篇文章记录了我在Ubuntu重新搭建OpenCV,c++环境。后续会补充opencv-python、深度学习、ROS环境配置,使之相互兼容。具体操作和安装包在文章中都有,不同版本的安装过程大同小异。 搭建过程共分为以下几大…https://zhuanlan.zhihu.com/p/573341843How to run a simple OpenCV code in C++ on linux? - Stack Overflowhttps://stackoverflow.com/questions/65738296/how-to-run-a-simple-opencv-code-in-c-on-linux
仅安装官方Opencv
git clone https://github.com/opencv/opencv.git
cd opencv
mkdir build
cd buildcmake -D CMAKE_BUILD_TYPE=Release -D OPENCV_GENERATE_PKGCONFIG=YES ..
make -j4
sudo make install
Starting from OpenCV 4, the SIFT and SURF algorithms have been moved to the extra modules and are no longer included in the main OpenCV distribution by default. To use SIFT in your C++ code, you'll need to install and enable the opencv_contrib
module, which contains the extra algorithms.
Opencv + Opencv_contrib
git clone https://github.com/opencv/opencv.git
cd opencv
git checkout 4.1.0
cd .. #get out of opencv foldergit clone https://github.com/opencv/opencv_contrib/
cd opencv_contrib
git checkout 4.x
cd .. #get out of opencv_contrib foldercd opencv
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_ENABLE_NONFREE=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D WITH_GTK=ON ..
make -j8
sudo make install
If you have installed Anaconda ,you can use the following:
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_SHARED_LIBS=OFF -D WITH_OPENMP=ON -D ENABLE_PRECOMPILED_HEADERS=OFF ..
默认安装路径为: /usr/local/bin - executable files
/usr/local/lib - libraries (.so)
/usr/local/cmake/opencv4 - cmake package
/usr/local/include/opencv4 - headers
/usr/local/share/opencv4 - other files (e.g. trained cascades in XML format)
sudo gedit /etc/profile.d/pkgconfig.sh
>>> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
source /etc/profile
验证是否成功
pkg-config --libs opencv4
CUDA
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pinsudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600wget https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda-repo-ubuntu2204-12-1-local_12.1.1-530.30.02-1_amd64.debsudo dpkg -i cuda-repo-ubuntu2204-12-1-local_12.1.1-530.30.02-1_amd64.debsudo cp /var/cuda-repo-ubuntu2204-12-1-local/cuda-*-keyring.gpg /usr/share/keyrings/sudo apt-get updatesudo apt-get -y install cuda
These packages are required to build the Python extension on Ubuntu:
sudo apt-get install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
QT
ubuntu20.04安装Qt5.15.2并配置环境-CSDN博客qt官方取消了离线安装的方式,所以推荐在线安装,当然,如果想要自己通过源码编译也可以,参考官方文档:https://wiki.qt.io/Building_Qt_5_from_Git。在线安装:1.到官方网站下载:wget https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run2.修改文件权限:chmod 777 qt-unified-linux-x64-online.runhttps://blog.csdn.net/f120854632/article/details/123990928
ubuntu添加环境变量的四种方法_ubuntu添加路径到环境变量_K_K_yl的博客-CSDN博客linux命令行执行某个命令时,若该命令存在,但输入命令后仍提示:command not found这个时候需要查看PATH环境变量,确保当前命令是否存在于PATH环境变量中:echo $PATH如果命令行的路径不在PATH环境变量路径中,则需要修改PATH环境变量,具体方法如下:方法一:export PATH=命令行路径:$PATH#配置完后可以通过echo $PATH查看配置结果。#生效方法:立即生效#有效期限:临时改变,只能在当前的终端窗口中有效,当前窗口关闭后就会恢复原https://blog.csdn.net/K_K_yl/article/details/119756206
四选一 (Mine: sudo nano ~/.profile)
sudo vim /etc/profile
sudo nano ~/.profile
sudo vim ~/.bashrc
sudo vim /etc/environment
export QT_DIR=/home/Qt5.7.0/5.7/gcc_64
export PATH=$QT_DIR/bin:$PATH
export LD_PLUGINS_PATH=$QT_DIR/plugins:$LD_PLUGINS_PATH
export LD_LIBRARY_PATH=$QT_DIR/lib:$LD_LIBRARY_PATH
source ~/.profile
git submodule update --init --recursive
-DCMAKE_PREFIX_PATH=/home/Qt5.7.0/5.7/gcc_64
MHFormer_Ubuntu22
Pycharm_Community
How to Install Python on Ubuntu 22.04 | LinuxizeThis article will explain how to build Python from the source code on Ubuntu 22.04.https://linuxize.com/post/how-to-install-python-on-ubuntu-22-04/Ubuntu 22.04上安装Anaconda,及 conda 的基础使用_ubuntu查看conda环境列表_戴国进的博客-CSDN博客Anaconda是Python和R编程语言的开源包管理器、环境管理器和发行版。它通常用于数据科学、机器学习、大规模数据处理、科学计算和预测分析。Anaconda 提供了1000多个数据科学软件包,提供免费和付费企业版本。Anaconda distribution附带conda命令行实用程序。https://blog.csdn.net/JineD/article/details/129507719
sudo apt install python3-pip
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple gpustat
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu118
python demo/vis.py --video sample_video.mp4
VCPKG