Re: VXEUPHORIA - step by step

new topic     » goto parent     » topic index » view thread      » older message » newer message
sergelli said...

So? With this "eu.cfg" file, the Euphoria and wxEuphoria will work same if the system variables "EUDIR" and "EUINK" are inside the ".bash_profile" file?
Someone would have a "eu.cfg" file with comments, that I can see?

Actually, you probably shouldn't have EUDIR or EUINC in your eu.cfg file. I have .eu.cfg in my home dir, with this:

-i /usr/local/share/euphoria/include 
-i ~/eu 
-batch 

So, when I run euphoria, it reads this, and looks for include files (the -i flag) in /usr/local/share/euphoria/include and in /eu. The /usr/local/share/euphoria/include is where I've installed euphoria after building it myself and using "make install."

The /eu is where I generally do my development. There are multiple directories in there, and when I include something, I prefix the name of the file with its directory. For instance, I do my wxeuphoria development in /eu/wxeu, so I use "include wxeu/wxeud.e". Also, when I build and install wxEuphoria, I put wxeud.e into /usr/local/share/euphoria/include/wxeu.

The eu.cfg system is pretty flexible, however, and so I actually have set up older releases of euphoria so that I can run them. I can put an eu.cfg file in the same directory as the interpreter, and the values in that eu.cfg file will be used before the values in the file in my home dir. For instance:

~/eu/oe-release/4.0.3/bin$ cat eu.cfg 
[all] 
-i ~/eu/oe-release/4.0.3/include 
[translate] 
-lib ~/eu/oe-release/4.0.3/bin/eu.a 
That's what I have set up in order to have a functioning 4.0.3 environment. I also have a symlink, elsewhere (and in my $PATH) named eui403 that points to the copy of eui in that directory. Now, when I want to test something with 4.0.3, I can do so, including the correct standard library, without messing with environment variables or restarting a shell.

In other cases, I might want some specific settings for a particular project. I can put a special eu.cfg file in the directory where I'm working, and whenever I run something from that directory, the eu.cfg will be picked up, but it won't affect anything other than that particular project.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu