Jump to content

Scratchbox 2: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
replace dead repo
Updated info in infobox
Line 5: Line 5:


{{Infobox software
{{Infobox software
| name = Scratchbox2
| name = Scratchbox 2
| logo =
| logo =
| screenshot =
| screenshot =
| caption =
| collapsible =
| collapsible =
| author = Lauri Leukkunen, Lauri T. Aarnio, Valtteri Rahkonen, Riku Voipio
| caption =
| developer =
| ver layout = stacked
| released =
| author = [[Nokia]]
| developer = [[Jolla]]
| latest release version = 2.3.42
| latest release date = 07/03/2012
| released = 2009-04-01
| latest preview version =
| latest release version = 2.2.4<ref>{{cite web
| url=https://github.com/sailfishos/scratchbox2/tree/2.2.4
| latest preview date =
| title=Scratchbox 2.2.4
| programming language =
| work=Scratchbox 2 (sb2)
| date=2012-04-01
| accessdate=2023-01-27}}</ref>
| latest release date = 2012-04-01
| latest preview version = 2.3.62<ref>{{cite web
| url=https://github.com/sailfishos/scratchbox2/tree/2.3.63
| title=Scratchbox 2.3.63
| work=Scratchbox 2 (sb2)
| date=2012-06-05
| accessdate=2023-01-27}}</ref>
| latest preview date = 2012-06-05
| programming language = [[C]]
| operating system = [[Linux]]
| operating system = [[Linux]]
| platform = [[Cross-platform]]
| platform = [[Cross-platform]]
| discontinued = yes
| discontinued = no
| genre = [[Build automation]]
| genre = [[Build automation]]
| license = [[LGPL license|LGPL]] 2.1
| license = [[LGPL license|LGPL]] 2.1
| website = [http://www.freedesktop.org/wiki/Software/sbox2/ www.freedesktop.org/wiki/Software/sbox2] https://github.com/sailfishos/scratchbox2
| website = https://github.com/sailfishos/scratchbox2
}}
}}



Revision as of 23:19, 27 January 2023

Scratchbox 2
Original author(s)Nokia
Developer(s)Jolla
Initial release2009-04-01
Stable release(s)
2.2.4[1] / 2012-04-01
Preview release(s)
2.3.62[2] / 2012-06-05
Written inC
Operating systemLinux
PlatformCross-platform
TypeBuild automation
LicenseLGPL 2.1
Websitehttps://github.com/sailfishos/scratchbox2

Scratchbox2 (sbox2 or sb2) 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.

In the Linux world, when building software, many parameters are auto-detected based on the host system (like installed libraries and system configurations), through autotools "./configure" scripts for example. When one wants to build for an embedded target (cross-compilation), most of the detected parameters are incorrect (i.e. host configuration is not the same as the embedded target configuration).

Without Scratchbox2, one has to manually set many parameters and "hack" the "configure" process to be able to generate code for the embedded target.

Scratchbox2 allows one to set up a "virtual" environment that will trick the autotools and executables into thinking that they are directly running on the embedded target with its configuration.

Moreover, Scratchbox2 provides a technology called CPU-transparency that goes further in that area. With CPU-transparency, executables built for the host CPU or for the target CPU could be executed directly on the host with sbox2 handling the task to CPU-emulate if needed to run a program compiled for the target CPU. So, a build process could mix the usage of program built for different CPU architectures. That is especially useful when a build process requires building the program X to be able to use it to build the program Y (Example: building a Lexer that will be used to generate code for a specific package).

Projects using Scratchbox2

  1. ^ "Scratchbox 2.2.4". Scratchbox 2 (sb2). 2012-04-01. Retrieved 2023-01-27.
  2. ^ "Scratchbox 2.3.63". Scratchbox 2 (sb2). 2012-06-05. Retrieved 2023-01-27.