# yocto-dcmtk **Repository Path**: pengguanjun/yocto-dcmtk ## Basic Information - **Project Name**: yocto-dcmtk - **Description**: No description available - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-31 - **Last Updated**: 2024-12-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Sample Yocto Project for building dcmtk into an ARM64 and x86-64 Linux image ============================================= This repository provides an example for cross compilation the DICOM toolkit https://github.com/DCMTK/dcmtk and uses core-image-sato for a virtual x86-64 and ARM64 qemu machine to test it. It is designed around poky using the dunfell LTS branch. Before trying to use this, please see yocto project quick build for setting up a native Linux host for building the image. https://docs.yoctoproject.org/3.1.11/brief-yoctoprojectqs/brief-yoctoprojectqs.html Below guide expect that your host machine is setup for yocto build. Getting Started --------------- **1. Clone this repo.** $ git clone --recurse-submodules https://github.com/frosteyes/yocto-dcmtk.git **2. Setup yocto.** Source the setup script. Optional select a build folder. If no build folder is selected a standard folder named *build* is created. Select target x86-64 *setup_qemux86-64* or *setup_qemuarm64*: $ cd yocto-dcmtk $ source setup_qemuarm64 build_arm64 After you have sourced the setup, please look into the *conf/local.conf* file. Specifically the variables **DL_DIR** and **SSTATE_DIR** is relevant to save downloads for later, and prebuild in sstate cache. **3. Build image.** Run bitbake - here we just selet the basic image: $ bitbake core-image-sato First time it takes significant time, as it need to download all the source code, compile the host tools and next the complete linux image. **4. Run the image in QEMU.** When the build is done, it is just to run qemu: $ runqemu