METADEF Offline Compilation Guide【免费下载链接】metadefAscend Metadata Definition项目地址: https://gitcode.com/cann/metadef1. Complete the Following Preparation in a Networked EnvironmentStep 1: Repository DownloadIn a networked environment, go to This Project Homepage and complete source code download through theDownload ZIPorclonebutton according to the instructions.Step 2: Download Open Source Third-Party Software DependenciesThe third-party open source software that metadef depends on during compilation is listed below:Open Source SoftwareVersionDownload Addressprotobuf25.1protobuf-25.1.tar.gzabseil-cpp20230802.1abseil-cpp-20230802.1.tar.gzbenchmark1.8.3benchmark-1.8.3.tar.gzgoogletest1.14.0googletest-1.14.0.tar.gzjson3.11.3json-3.11.3.tar.gzmakeself2.5.0makeself-release-2.5.0-patch1.tar.gzcann-cmakemaster-001cmake-master-001.tar.gzMethod 1 (Recommended): Use the one-click third-party software download and packaging script provided by the metadef repository. Usage:# Execute in metadef repository root directory in networked environment cd metadef bash scripts/download_third_party_source.shAfter successful execution,opensource.tar.gzwill be generated in the metadef repository root directory.Method 2: Download third-party open source software packages one by one through the third-party open source software list links.2. After Completing Networked Environment Preparation, Log in to the Test Environment (Offline) to Continue Compilation PreparationScenario 1: Using Third-Party Software Downloaded Through One-Click Third-Party Software Download and Packaging ScriptConnect to the test environment (offline) and upload the repository and third-party software dependencies source code obtained from the networked environment to your designated directory. The downloaded files are compressed packages and need to be decompressed.After decompression, the project structure is as follows:├── metadef # metadef repository source code decompressed directory │ ├── base │ ├── build │ └── ... ├── opensource # third-party software dependencies decompressed directory │ └── abseil-cpp | └── abseil-cpp-20230802.1.tar.gz │ └── benchmark-1.8.3 | └── benchmark-1.8.3.tar.gz │ └── ...Go to the repository root directory and adjust directories through the following commands:# Move files under opensource directory to metadef repository cd metadef mkdir output output/third_party cp -r ../opensource/* output/third_party rm -rf ../opensourceAfter adjustment, the project structure is as follows:├── metadef # metadef repository source code decompressed directory │ ├── base │ ├── build │ ├── ... │ └── output # third-party software default directory │ └── third_party │ └── abseil-cpp | └── abseil-cpp-20230802.1.tar.gz │ └── benchmark-1.8.3 | └── benchmark-1.8.3.tar.gz │ └── ...After completion, return to the Build Verification - Compilation section to continue compilation.Scenario 2: Manually Download Third-Party Software One by One Through Third-Party Open Source Software List LinksConnect to the test environment (offline) and upload the repository and third-party software dependencies source code obtained from the networked environment to your designated directory. The repository is a compressed package and needs to be decompressed.Go to the repository root directory, createoutput/third_partyand place third-party software packages in that directory.# Create output/third_party directory cd metadef mkdir output output/third_partyAfter adjustment, the project structure is as follows:├── metadef # metadef repository source code decompressed directory │ ├── base │ ├── build │ ├── ... │ └── output # third-party software default directory │ └── third_party │ ├── abseil-cpp-20230802.1.tar.gz │ ├── benchmark-1.8.3.tar.gz │ └── ...After completion, return to the Build Verification - Compilation section to continue compilation.【免费下载链接】metadefAscend Metadata Definition项目地址: https://gitcode.com/cann/metadef创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考