Changeset 86518bd in rtems-docs for user/hosts/windows.rst
- Timestamp:
- 07/04/16 02:30:09 (6 years ago)
- Branches:
- 4.11, 5, am, master
- Children:
- f92357f
- Parents:
- 6d7a4d2
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
user/hosts/windows.rst
r6d7a4d2 r86518bd 4 4 .. comment: All rights reserved. 5 5 6 .. _development-hosts:7 8 Development Hosts9 =================10 .. index:: Hosts11 12 RTEMS applications are developed using cross-development tools running on a13 host computer, typically your desktop or a special build server. All RTEMS14 tools and runtime libraries are built from source on your host machine. The15 RTEMS Project does not maintain binary builds of the tools. This may appear be16 the opposite to what you normally experience with host operating systems, and17 it is, however this approach works well. RTEMS is not a host operating system18 and it is not a distrbution. Providing binary packages for every possible host19 operating system is too big a task for the RTEMS Project and it is not a good20 use of core developer time. Their time is better spent making RTEMS better and21 faster.22 23 Developer Computer24 ------------------25 26 The rule for selecting a computer for a developer is `more is better` but we do27 understand there are limits. Projects set up different configurations and what28 is described here is not an approved set up, rather it is a guide. Some29 projects have a suitable development machine per developer while others set up30 a tightly controlled central build server. RTEMS is flexible and lets you31 engineer a development environment that suites you. The basic specs are:32 33 - Multicore processor34 - 8G bytes RAM35 - 256G harddisk36 37 RTEMS makes no demands on graphics.38 39 If you are using a VM or your host computer is not a fast modern machine do not40 be concerned. The tools may take longer to build than faster hardware however41 building tools is something you do once. Once the tools and RTEMS is built all42 your time can be spent writing and developing your application. Over an hour43 does happen and for the ARM architecture with all BSPs it can be many hours.44 45 Host Software46 -------------47 48 A wide range of host operating systems and hardware can be used. The host49 operating systems supported are:50 51 - Linux52 - FreeBSD53 - NetBSD54 - Apple OS X55 - Windows56 - Solaris57 58 The functionality on a POSIX operating such as Linux and FreeBSD is similar and59 most features on Windows are supported but you are best to ask on the60 :r:list:`users` if you have a specific question.61 62 We recommend you maintain your operating system by installing any updates.63 64 POSIX Hosts65 -----------66 67 .. sidebar:: *GDB and Python*68 69 RTEMS uses Python in GDB to aid debugging which means GDB needs to be built70 with Python development libraries. Please check the RSB documentation and71 install the packages specified for your host. Make sure a python development72 package is included.73 74 POSIX hosts are most Unix operating systems such as Linux, FreeBSD and75 NetBSD. RTEMS development works well on Unix and can scale from a single user76 and a desktop machine to a team with decentralised or centralised development77 infrastructure. The RTEMS project provides you with the development tools and78 aids to help you create an environment that matches your project's needs. The79 RTEMS Project's aim is to give you complete freedom to decide on the languages80 used in your project, which version control system, and the build system for81 your application.82 83 The following are a few ways you can set up a suitable environment. You are not84 limited to what is present here. A common factor that defines the final85 location of tools and projects is the place you have suitable storage. The86 following set ups assume suitable disk space and disk performance.87 88 Administrator Access89 ~~~~~~~~~~~~~~~~~~~~90 91 You either have ``root`` access to your host development machine or you do92 not. Some users are given hardware that is centrally managed. If you do not93 have ``root`` access you can create your work environment in your home94 directory. You could use a prefix of :file:`$HOME/development/rtems` or95 :file:`$HOME/rtems`. Note, the ``$HOME`` environment variable can be96 substituted with ``~``.97 98 RTEMS Tools and packages do not require ``root`` access99 to be built and we encourage you to not build the tools as ``root``. If you100 need to control write access then it is best to manage this with groups101 assigned to users.102 103 If you have ``root`` access you can decide to install the tools under any104 suitable prefix. This may depend on the hardware in your host development105 machine. If the machine is a centralised build server the prefix may be used to106 separate production versions from the test versions and as just discussed the107 prefix paths may have restricted access rights to only those who manage and108 have configuration control of the machine.109 110 Apple OS X111 ----------112 113 Apple's OS X is fully supported. You need to download and install a recent114 version of the Apple developer application Xcode. Xocde is available in the App115 Store. Make sure you install the Command Line Tools add on available for116 download within Xcode and once installed open a Terminal shell and enter the117 command ``cc`` and accept the license agreement.118 119 The normal prefix when working on OS X as a user is under your home directory.120 Prefixes of :file:`$HOME/development/rtems` or :file:`$HOME/rtems` are121 suitable.122 123 6 .. _microsoft-windows: 124 7 125 8 Microsoft Windows 126 ----------------- 9 ~~~~~~~~~~~~~~~~~ 127 10 128 11 RTEMS supports Windows as a development host and the tools for most … … 161 44 .. _windows-path-length: 162 45 163 Path Length164 ~~~~~~~~~~~ 46 Windows Path Length 47 ^^^^^^^^^^^^^^^^^^^ 165 48 166 49 Windows path length is limited and can cause problems when building the … … 179 62 180 63 Parallel Builds with Make 181 ~~~~~~~~~~~~~~~~~~~~~~~~~ 64 ^^^^^^^^^^^^^^^^^^^^^^^^^ 182 65 183 66 The MSYS2 GNU ``make`` has problems when using the `jobs` option. The RSB … … 187 70 188 71 POSIX Support 189 ~~~~~~~~~~~~~ 72 ^^^^^^^^^^^^^ 190 73 191 74 Building the RTEMS compilers, debugger, the RTEMS kernel and a number of other … … 205 88 206 89 Python 207 ~~~~~~ 90 ^^^^^^ 208 91 209 92 We need Python to build the tools as the RSB is written in Python and we need … … 215 98 We cannot use the Python executables created by the Python project (python.org) 216 99 as they are built by Microsoft's C (MSC) compiler. Linking the MSC Python 217 libraries with the MinGW64 executables is not easy and MSYS provide dus with a100 libraries with the MinGW64 executables is not easy and MSYS provides us with a 218 101 simple solution so we do not support linking MSC libraries. 219 102 220 MSYS2 provides two types and versions of Python executables, MinGW and MSYS and221 Python version 2 and 3. For Windows we need the MinGW executable so we have103 MSYS2 provides two types and two versions of Python executables, MinGW and MSYS 104 and Python version 2 and 3. For Windows we need the MinGW executable so we have 222 105 suitables libraries and we have to have Python version 2 because on Windows GDB 223 106 only builds with Python2. … … 228 111 generate. 229 112 113 .. _microsoft-windows-installation: 114 230 115 Installing MSYS2 231 ~~~~~~~~~~~~~~~~ 116 ^^^^^^^^^^^^^^^^ 232 117 233 118 MSYS2 is installed on a new machine using the MSYS2 installer found on … … 268 153 .. note:: 269 154 270 The actual output provided may vary due to changes in the dependent packages or 271 newer package versions.155 The actual output provided may vary due to changes in the dependent packages 156 or newer package versions. 272 157 273 158 Install the packages using ``pacman``:
Note: See TracChangeset
for help on using the changeset viewer.