dev:clone_from_github
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:clone_from_github [2015/06/02 19:25] – Added "Update lists of packages" section. hyunwooj | dev:clone_from_github [2017/07/15 13:32] (current) – [Install SDL] ackley | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Cloning From Github ====== | ====== Cloning From Github ====== | ||
- | To make your own [[Components: | + | **NOTE**: You can compile and run your own [[Components: |
- | Cloning the repo from Github seems relatively | + | However, if you wish to participate in the development of MFM or ULAM, you will need to download and build the software from its source codes, which are kept in two repositories at Github. |
+ | |||
+ | Cloning the repos from Github seems relatively | ||
+ | |||
+ | **WARNING**: | ||
** Note: ** This tutorial is performed on Ubuntu 14.04 . Your installation procedure may vary. | ** Note: ** This tutorial is performed on Ubuntu 14.04 . Your installation procedure may vary. | ||
Line 14: | Line 18: | ||
</ | </ | ||
- | ===== Install git ===== | + | ===== Install |
+ | These packages are described in more detail in the immediately following subsections, | ||
+ | |||
+ | < | ||
+ | sudo apt-get install | ||
+ | </ | ||
+ | |||
+ | ==== Install git ==== | ||
You will need to install **git**. This can be done with a package manager, such as **apt-get**: | You will need to install **git**. This can be done with a package manager, such as **apt-get**: | ||
Line 22: | Line 33: | ||
</ | </ | ||
- | ===== Install g++ ===== | + | ==== Install g++ ==== |
You will need **g++**, a c++ compiler, in order to build the software. Simply use your package manager to download it: | You will need **g++**, a c++ compiler, in order to build the software. Simply use your package manager to download it: | ||
Line 30: | Line 41: | ||
</ | </ | ||
- | ===== Clone the Repository ===== | + | ==== Install SDL ==== |
- | Next, you will need to clone the codebase | + | The MFM software uses SDL to render |
+ | |||
+ | The MFM software needs SDL version 1.2 . **Do not install SDL 2.0!** | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | Install | ||
< | < | ||
- | git clone https:// | + | sudo apt-get install libsdl1.2-dev |
+ | sudo apt-get install libsdl-image1.2-dev | ||
+ | sudo apt-get install libsdl-ttf2.0-dev | ||
</ | </ | ||
- | ===== Install | + | ==== Install |
- | The MFM software uses SDL to render | + | The top level of the **ULAM** compiler is written in Perl. Among its tasks is to generate ' |
- | The MFM software needs SDL version 1.2 . **Do not install | + | < |
+ | sudo apt-get | ||
+ | sudo apt-get install libcrypt-openssl-rsa-perl | ||
+ | sudo apt-get install libcapture-tiny-perl | ||
+ | </ | ||
- | libsdl1.2-dev is the package for the main SDL system. | ||
- | libsdl-image1.2-dev is the package for translating image types other than bitmaps. | + | ===== Clone the Repositories ===== |
- | libsdl-mixer1.2-dev is the package for playing audio. | + | Next, you will need to clone the codebase to your computer. To do this, browse to the folder which you would like to contain the repos and clone: |
- | libsdl-ttf2.0-dev is the package for rendering TTF fonts. This is an SDL 1.2 package. | + | < |
+ | git clone https:// | ||
+ | git clone https:// | ||
+ | </ | ||
- | You will need to install | + | Note this will create MFM/ and ULAM/ directories as siblings in whatever directory you started in -- and that's desirable because |
+ | ===== Build the software ===== | ||
+ | |||
+ | Now that you have installed all of the dependencies that you need, you can build the MFM software: | ||
< | < | ||
- | sudo apt-get install libsdl1.2-dev | + | $ cd MFM |
- | sudo apt-get install libsdl-image1.2-dev | + | MFM$ make |
- | sudo apt-get install libsdl-mixer1.2-dev | + | |
- | sudo apt-get install libsdl-ttf2.0-dev | + | |
</ | </ | ||
- | ===== Build MFMv2 ===== | + | This should build the MFM software as long as the repo does not contain any errors. |
- | Now that you have installed all of the dependencies that you need, you can build the MFM software. Simply navigate to the main folder and type: | + | After that succeeds, you can build the ULAM compiler: |
< | < | ||
- | make | + | MFM$ cd ../ULAM |
+ | ULAM$ make | ||
</ | </ | ||
- | This should build the software as long as the repo does not contain any errors. To run the software, the executable is located in the **bin** folder. Type: | + | This may //also// take quite a while. |
+ | |||
+ | Once the ULAM compiler is built, you need to use it to build "ulam exports" | ||
< | < | ||
- | bin/mfms | + | ULAM$ make ulamexports |
</ | </ | ||
- | to run the simulator. | + | Note that the results of making ulamexports (in the ULAM/ repo) places its output in the MFM/ repo! Trying |
+ | Note also that '' | ||
+ | |||
+ | ===== Run the software ===== | ||
+ | |||
+ | To run the software, the executable is located in the **MFM/bin** folder. Type: | ||
+ | |||
+ | < | ||
+ | MFM$ ./bin/mfms | ||
+ | </ | ||
+ | |||
+ | to run the simulator. | ||
dev/clone_from_github.1433273115.txt.gz · Last modified: 2015/06/02 19:25 by hyunwooj