Editing OCamlInstall

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
This page describes how to build RLDev on a Windows machine. Last updated 2011-05-22. (Old instructions are in the [http://www.baka-tsuki.org/project/index.php?title=OCamlInstall&oldid=83036 archive])
+
This page describes how to build RLDev on a Windows machine. Last updated 2011-05-22
 
These instructions have been tested on Windows XP Mode (VirtualPC), 32-bit. Based on the modified version of RLDev from the Clannad project. Anecdotal evidence suggests that RLDev won't work on a 64-bit OS.
 
   
  +
= New instructions =
 
<pre>
 
<pre>
  +
Note: These instructions have been tested on Windows XP Mode (VirtualPC), 32-bit. Based on the modified version of RLDev from the Clannad project. Anecdotal evidence suggests that RLDev won't work on a 64-bit OS.
  +
 
== DOWNLOAD TOOLS ==
 
== DOWNLOAD TOOLS ==
 
1) Get 7-zip, to extract .tar.gz archives (search www.7-zip.org)
 
1) Get 7-zip, to extract .tar.gz archives (search www.7-zip.org)
Line 10: Line 11:
   
 
== DOWNLOAD FILES ==
 
== DOWNLOAD FILES ==
OCAML AND LIBRARIES (Note: Newer versions of OCaml and Ulex won't work)
+
OCAML AND LIBRARIES
 
1) Get OCaml 3.09: http://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.3.tar.gz
 
1) Get OCaml 3.09: http://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.3.tar.gz
 
2) Get Findlib 1.2.1: http://download.camlcity.org/download/findlib-1.2.1.tar.gz
 
2) Get Findlib 1.2.1: http://download.camlcity.org/download/findlib-1.2.1.tar.gz
Line 106: Line 107:
 
3) Navigate (using "cd") to your game files, and call "kprl", "rlc", "vaconv", etc.
 
3) Navigate (using "cd") to your game files, and call "kprl", "rlc", "vaconv", etc.
 
</pre>
 
</pre>
  +
  +
= Old instructions =
  +
== Basics ==
  +
The development environment for RLdev on Windows is (as taken from the INSTALL file):
  +
  +
* Cygwin
  +
* Objective Caml 3.09 (later versions will not work)
  +
* Findlib
  +
* Omake 0.9.6.8
  +
* ExtLib 1.4 or later
  +
* Ulex 0.8 (later versions will not work)
  +
* XML Light
  +
* libpng 1.2
  +
  +
Luckly these can be installed very easily if you make sure to install the right version of GODI.
  +
  +
* Zeik: "I, personally, have found that with recent versions of Cygwin it's actually easier to NOT use godi at all. Install the required components one by one (individually) and then you'll be able to compile SEEN.TXT files easily. I never got the disassembler to work properly though... throws an error with SEENs that have dialogue, or so it seems."
  +
  +
== Cygwin ==
  +
Installing Cygwin is a straight forward process. Go to http://www.cygwin.com/ and download setup.exe via the "Install or update
  +
now!" link. Make sure to save this somewhere you will have it in the future. This executable will allow you to install Cygwin packages that you forgot. I recommend making the C:\cygwin folder now, and saving setup.exe there, so you can always know where to find it.
  +
  +
Start up the install, leave most things at default until you get to pick a mirror. Picking the right mirror is only important if you are not patient. Some are faster than others, and you may need to try several before you find one that is speedy. Click next to come to the package selection screen. Here you choose what unix utilities you want to install. We need to add some:
  +
  +
- All of the Devel tree (just click on the circle arrow once, and wait while it catches up)
  +
- Utils -> bc (again just click the circle arrow once next to bc)
  +
- Libs -> ncurses
  +
  +
Now keep clicking next until the install is done. This will take a while depending on your connection speed. Now you are ready to install GODI.
  +
  +
== GODI ==
  +
GODI is a package manager thingy for OCaml. You should download the latest GODI from http://godi.camlcity.org/godi/index.html . Save this somewhere in your unix tree. I saved it to my home directory for simplicity. Open up a Cygwin termal and extract the GODI download. Make sure to extract it to a path with no space in it. Example "/tmp" is fine, "/cygdrive/c/Temporary\ Files" is bad.
  +
  +
Because GODI requires PATH variables with no spaces, we must now modify our .bashrc to reflect this. I am assuming you will install GODI to its default directory, so just add the following lines to your .bashrc:
  +
export PATH=/opt/godi/bin:/opt/godi/sbin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/usr/local/bin
  +
export MANPATH=/opt/godi/man:$MANPATH
  +
export OCAMLLIB=/opt/godi/lib/ocaml/std-lib/
  +
Now move into the GODI folder. Run the following commands:
  +
bash
  +
./bootstrap --section=3.09
  +
If the command completes successfully, run:
  +
./bootstrap_stage2
  +
With any luck both commands will complete successfully. If they do not, have fun. Sometimes GODI will explain what went wrong, most of the time it will not. It is important that the present working directory have no spaces, I think.
  +
  +
Now that GODI is installed we can install the remaining dependencies.
  +
  +
Run the following commands:
  +
godi_build godi-extlib
  +
godi_build godi-ulex
  +
godi_build godi-xml-light
  +
If these all installed you are have one more dependency to build.
  +
  +
==OMake==
  +
Download the .tar.gz version 0.9.6.8 from http://omake.metaprl.org/download.html . Extract the file. Enter the extracted directed and run:
  +
make install
  +
It should build and install omake.
  +
  +
== RLdev ==
  +
Grab RLdev however you wish. Move into the src directory, and run:
  +
omake
  +
omake install
  +
It should build successfully if all the previous steps went okay. The executables are now available to the Cygwin environment.

Please note that all contributions to Baka-Tsuki are considered to be released under the TLG Translation Common Agreement v.0.4.1 (see Baka-Tsuki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)