1
1
* Prerequisites
2
2
3
- 1. Make sure you have bison (http://www.gnu.org/software/bison/) installed in your system.
3
+ 1. Make sure you have bison (http://www.gnu.org/software/bison/) installed in
4
+ your system.
4
5
2. Make sure you have ruby installed in your system (required to build).
5
6
7
+
6
8
* Compilation and Installation
7
9
8
10
1. Run make in the top directory.
9
11
10
- This command will create a build directory with a directory for the host environment
11
- and one for each crossbuild environment based on the settings in the build_config.rb
12
- file.
12
+ This command will create a build directory with a directory for the host
13
+ environment and one for each crossbuild environment based on the settings
14
+ in the build_config.rb file.
13
15
14
- Assuming a default build, each of the environment directories will have the following
15
- important directories:
16
+ Assuming a default build, each of the environment directories will have
17
+ the following important directories:
16
18
17
19
* bin - The binary executables for this environment
18
20
* lib - The libraries for this environment
19
21
20
- You can find the header files in the include directory at the root of the project.
22
+ You can find the header files in the include directory at the root of the
23
+ project.
21
24
22
25
You can directly invoke 'minirake' with the following command:
23
26
24
- $ ruby ./minirake
27
+ $ ruby ./minirake
25
28
26
29
If an error occurs when compiling mruby, it will be helpful for others if you
27
30
send a detailed report to the developers that includes the error log, machine,
@@ -30,19 +33,19 @@ and OS type.
30
33
31
34
* Adding existing gems
32
35
33
- Gems from the [list of mruby gems](http://www.mruby.org/libraries/) can be added by adding
34
- their respective GitHub URLs to build_config.rb. For example, to add implementations of the
35
- File and IO Ruby core classes to mruby, insert the following in build_config.rb under the
36
- comment section `Use mrbgems`:
36
+ Gems from the [list of mruby gems](http://www.mruby.org/libraries/) can be
37
+ added by adding their respective GitHub URLs to build_config.rb. For example,
38
+ to add implementations of the File and IO Ruby core classes to mruby, insert
39
+ the following in build_config.rb under the comment section `Use mrbgems`:
37
40
38
41
conf.gem :git => '
[email protected] :iij/mruby-io.git', :branch => 'master'
39
42
40
- Afterwards, re-run:
43
+ Afterwards, re-run:
41
44
42
- ruby ./minirake
45
+ ruby ./minirake
43
46
44
47
45
48
* Porting to other platforms
46
49
47
-
48
50
That's all.
51
+
0 commit comments