{
  "id": "enwiki-001358369861",
  "slug": "scratchbox-2",
  "title": "Scratchbox 2",
  "qid": "",
  "lead": "Scratchbox 2 (often abbreviated to \"sb2\" or \"sbox2\") is a cross-compilation toolkit designed to make embedded Linux application development easier. It also provides a full set of tools to integrate and cross-compile an entire Linux distribution.",
  "body": "Scratchbox&nbsp;2 (often abbreviated to \"sb2\" or \"sbox2\") is a cross-compilation toolkit designed to make embedded Linux application development easier. It also provides a full set of tools to integrate and cross-compile an entire Linux distribution. == Functional description== In the Linux world, when building software, many parameters are auto-detected on the host system (like installed libraries and system configuration), for example through Autotools' ./configure scripts. When one wants to build software for an embedded target by cross-compilation, most auto-detected parameters are incorrect: I.e. host configuration is not the same as the embedded target's configuration, hence the name cross-compilation. Without Scratchbox&nbsp;2, one has to manually set many parameters and \"hack\" the \"configure process\" to generate working executable code for the embedded target. Scratchbox&nbsp;2 allows one to set up a \"virtual\" environment that will trick Autotools and other executables into thinking that they are directly running on the embedded target with its configuration. Moreover, Scratchbox&nbsp;2 provides a technique called \"CPU-transparency\" that goes further: With \"CPU-transparency\", executables built for the host CPU or for the target CPU could be executed directly on the host with sb2 handling the task to emulate a different CPU-architecture if necessary to run software components compiled for the target CPU. Hence a build process can mix using programs built for different CPU-architectures. That is especially useful when a build process requires to build a software component first as a build dependency for building another software component: For example, a \"Lexer\" must be built first in order to generate code for / of another software component with it. ==Historic Git repositories of Scratchbox&nbsp;2== BinChengfei/scratchbox2 at GitHub provided an unaltered mirror of the former Scratchbox&nbsp;2 Git repository at Gitorious with its latest Git tag being 2.3.90 on 2012-09-05. lbt/scratchbox2 (up to tag pkg-mer-2.3.90-4 on 2013-04-25) and mer-packages/scratchbox2 (up to tag 2.3.90-git2 on 2014-03-05), both at GitHub, show intermediate states before the Nemo / Mer merger, when Scratchbox&nbsp;2's active source tree was moved to the now dissolved git.merproject.org . The continuation of the former source code repository git.merproject.org/mer-core/scratchbox2 is sailfishos/scratchbox2 at GitHub, which contains all commit history and Git tags of all aforementioned Git repositories. ==References== ==External links== Scratchbox&nbsp;2 documentation",
  "categories": [
    "23117742",
    "24043274",
    "24623845",
    "26748027",
    "37535192",
    "56775526",
    "61225803",
    "61225813"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1358369861",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1780895655.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001358369861",
    "type": "webpage",
    "title": "Scratchbox 2",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/scratchbox-2",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001358369861",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1358369861",
    "note": "Immutable snapshot enwiki-001358369861"
  }
}