Compiling40

Warning

These instructions are outdated.

Mercurial has replaced SVN for access to Euphoria source-code.

Compiling information is out of date.

Intro

Why?

  • Because you want to help find and fix bugs?
  • Because you want to play with the new changes?
  • Because you want to help develop?
  • Because you want to just see what's happened?

Why not?

  • To run the control software for your company's Nuclear Power Plant.

It should be noted at this time that 4.0 is under very active development. Bugs will exist. API changes will take place. The code is not stable. If you have any questions about these, please see the Why? and Why not? sections again.

Windows

You must first download and install a few required development tools in order to compile Euphoria 4.0 from scratch.

Install

Subversion

Subversion is a tool to access the development source code repository that all developers who work on Euphoria use to keep everyone's code in sync. You must download Subversion and install it in order to get the Euphoria 4.0 source. There are many clients, but for simplicity's sake, I will be describing the use of the command line client. If you are familiar with Subversion, then feel free to use your favorite client to access the source.

The command line client can be downloaded from http://tortoisesvn.net/downloads ... Install this application as any other. You may need to restart your computer for the changes to take effect, but save some time and wait until the end of the installing all three tools, thus you only have to restart once.

I want the source but don't want install Subversion stuff!!!

If you don't want to install subversion you can simply download a tar file with current development trunk at: http://rapideuphoria.svn.sourceforge.net/viewvc/rapideuphoria/trunk.tar.gz?view=tar Decompress this file to C:\EU40 keeping internal directory structure.

Open Watcom

OpenWatcom is the C compiler in which we will use to compile Euphoria. At the time of this writing, 1.8 is the latest version and can be downloaded from http://www.openwatcom.org/index.php/Download

It is also like any other installer. During the install, you should choose to include 16bit and 32bit compilers as well as DOS and Windows platforms.

Euphoria 3.1.1

Euphoria cannot be built using Euphoria 3.1.1. You either need to download a pre-built binary, or start from a pre-translated source tree. The reason for this is that the front end of Euphoria is written in Euphoria itself, and some new 4.0 features are used in the code (including the standard library).

Build

using makefiles

Launch a command shell. Now, before doing anything more let's make sure we have a few things in our path. Typing wmake should run the OpenWatcom make program. You will receive an error about no makefile, but that's OK right now. Typing svn should run the svn client and finally typing exwc should run Euphoria 3.1.1 (press enter on the file? prompt). If all three of those programs ran, we are ready to start. If you have download source as tar file you don't need first step.

Note that these instructions will build all Windows and DOS binaries. Look at the top of makefile.wat for details on how to.

  • Step 1. Install the prerequisite programs mentioned above: SVN Client, Watcom, and pre-build Eu v4 binary.
  • Step 2. Download the latest sources.
  • Step 3
    • Open a console window and set C:\EU40 as the current directory.
    • Then issue these commands...

C:\EU40\> SET EUINC=C:\EU40\include 
C:\EU40\> cd source 
C:\EU40\source> configure --prefix \EU40 
C:\EU40\source> wmake -f makefile.wat 
  .... alot of build messages .... 
C:\EU40\source> wmake -f makefile.wat test 
  .... lot's of activity, and a summary at the end .... 
  .... hopefully, everything passes ... 
C:\EU40\source> wmake -f makefile.wat install 
  .... lots of copying .... 
C:\EU40\source> SET EUDIR=C:\EU40 
C:\EU40\source> SET PATH=C:\EU40\bin;%PATH% 
C:\EU40\source> cd .. 
C:\EU40> eui 
Euphoria Interpreter 4.0 (development) for 32-bit Windows. 
... 
filename to execute?     (just press enter) 

4.0 is now installed on your Windows computer. To use, you must make sure that at least two environment variables are set:

EUDIR=C:\EU40 
PATH=C:\EU40\bin;....other paths here.... 

Final Tasks

I will leave making those environment variables persistent up to you. It should be noted again that 4.0 is under very active development and should not be used for production purposes.

Search



Quick Links

User menu

Not signed in.

Misc Menu