1. Euphoria problem: clicking on Linux programs

euphoria/demo/linux:
bindu mouse.exu
./mouse
no problem

nautilus:
click on mouse
doesn't do anything

But most Linux executable files (other than those made with Euphoria) are
clickable.

Why not Euphoria?

new topic     » topic index » view message » categorize

2. Re: Euphoria problem: clicking on Linux programs

Jerry Story wrote:
> 
> euphoria/demo/linux:
> bindu mouse.exu
> ./mouse
> no problem
> 
> nautilus:
> click on mouse
> doesn't do anything
> 
> But most Linux executable files (other than those made with Euphoria) are
> clickable.
> 
> Why not Euphoria?
> 

Jerry,

I believe what you need to do is configure a file type association for your
particular desktop.  For example, in KDE go to control center, select 'file
associations',  select 'add" - enter "euphoria source code" in the description
field, select 'add' - enter the path to exu and check the box for the program to
run in terminal.

I'm not sure, but I think editing the mime type in this manner from KDE may
suffice for your GNOME and/or Nautilus/Gentoo needs.

Hope this helps,
  

Ken Rhodes
SuSE Linux 9.3
100% MicroSoft Free

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria problem: clicking on Linux programs

Kenneth Rhodes wrote:
> 
> Jerry Story wrote:
> > 
> > euphoria/demo/linux:
> > bindu mouse.exu
> > ./mouse
> > no problem
> > 
> > nautilus:
> > click on mouse
> > doesn't do anything
> > 
> > But most Linux executable files (other than those made with Euphoria)
> > are clickable.
> > 
> > Why not Euphoria?
> > 
> 
> Jerry,
> 
> I believe what you need to do is configure a file type association
> for your particular
> desktop.  For example, in KDE go to control center, select 'file
> associations',  select
> 'add" - enter "euphoria source code" in the description field,
> select 'add' - enter
> the path to exu and check the box for the program to run in terminal.
> 
> I'm not sure, but I think editing the mime type in this manner
> from KDE may suffice
> for your GNOME and/or Nautilus/Gentoo needs.

That probably will work for source code. But what I'm talking about is the
binded executable file.  It has no file type other than it is executable.

The reason why binded files must be clickable is that most people out there
don't have Euphoria and probably won't be motivated to download and install
Euphoria just to run a program.  I suppose I could tell them to download and
install Euphoria so they can run the source code or else do the ./ thing to run
the executable. But they expect to be able to run the executable by clicking on
it. Before it's worth putting on freshmeat, the binded executable must be
clickable.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria problem: clicking on Linux programs

Jerry Story wrote:
> 
> Kenneth Rhodes wrote:
> > 
> > Jerry Story wrote:
> > > 
> > > euphoria/demo/linux:
> > > bindu mouse.exu
> > > ./mouse
> > > no problem
> > > 
> > > nautilus:
> > > click on mouse
> > > doesn't do anything
> > > 
> > > But most Linux executable files (other than those made with Euphoria)
> > > are clickable.
> > > 
> > > Why not Euphoria?
> > > 
> > 
> > Jerry,
> > 
> > I believe what you need to do is configure a file type association
> > for your particular
> > desktop.  For example, in KDE go to control center, select 'file
> > associations',  select
> > 'add" - enter "euphoria source code" in the description field,
> > select 'add' - enter
> > the path to exu and check the box for the program to run in terminal.
> > 
> > I'm not sure, but I think editing the mime type in this manner
> > from KDE may suffice
> > for your GNOME and/or Nautilus/Gentoo needs.
> 
> That probably will work for source code. But what I'm talking about is the
> binded executable
> file.  It has no file type other than it is executable.
> 
> The reason why binded files must be clickable is that most people out there
> don't have
> Euphoria and probably won't be motivated to download and install Euphoria just
> to run
> a program.  I suppose I could tell them to download and install Euphoria so
> they can
> run the source code or else do the ./ thing to run the executable. But they
> expect
> to be able to run the executable by clicking on it. Before it's worth putting
> on freshmeat,
> the binded executable must be clickable.
> 

Is your program a console or a gui program?

Regards, Alexander Toresson

new topic     » goto parent     » topic index » view message » categorize

5. Re: Euphoria problem: clicking on Linux programs

> Jerry Story wrote:
> > 
> > Kenneth Rhodes wrote:
> > > 
> > > Jerry Story wrote:
> > > > 
> > > > euphoria/demo/linux:
> > > > bindu mouse.exu
> > > > ./mouse
> > > > no problem
> > > > 
> > > > nautilus:
> > > > click on mouse
> > > > doesn't do anything
> > > > 
> > > > But most Linux executable files (other than those made with Euphoria)
> > > > are clickable.
> > > > 
> > > > Why not Euphoria?
> > > > 
> > > 
> > > Jerry,
> > > 
> > > I believe what you need to do is configure a file type association
> > > for your particular
> > > desktop.  For example, in KDE go to control center, select 'file
> > > associations',  select
> > > 'add" - enter "euphoria source code" in the description field,
> > > select 'add' - enter
> > > the path to exu and check the box for the program to run in terminal.
> > > 
> > > I'm not sure, but I think editing the mime type in this manner
> > > from KDE may suffice
> > > for your GNOME and/or Nautilus/Gentoo needs.
> > 
> > That probably will work for source code. But what I'm talking about is the
> > binded executable
> > file.  It has no file type other than it is executable.
> > 
> > The reason why binded files must be clickable is that most people out there
> > don't have
> > Euphoria and probably won't be motivated to download and install Euphoria
> > just to run
> > a program.  I suppose I could tell them to download and install Euphoria so
> > they can
> > run the source code or else do the ./ thing to run the executable. But they
> > expect
> > to be able to run the executable by clicking on it. Before it's worth
> > putting on freshmeat,
> > the binded executable must be clickable.

mouse.exu is a console program which to the best of my knowledge will not run
from a gui without associating it with a terminal.

In an earlier post you mentioned that freecell.exu, a wxEuphoria program would
not run from Nautilus.  I believe that freecell.exu will run from from  Nautilus
when clicked or double clicked if it is bound or translated/compiled. I believe
it would also run when clicked if it was shrouded, this would virtually require
installation of euphoria or additional instructions similar to using exu to
execute the source code.

So.... when freecell.exu failed to execute was it bound or translated/compiled?

Just out of curiosity, which version/distribtion of Linux are you
using?

Ken Rhodes
SuSE Linux 9.3
100% MicroSoft Free

new topic     » goto parent     » topic index » view message » categorize

6. Re: Euphoria problem: clicking on Linux programs

I have replicated Jerry Story's prolem with freecell.exw, I think...

With Euphoria 2.5,
WxEuphoria 7.2:

Bound and shrouded versions of some of the WxEuphoria demo programs
run properly from the command line and when doubled click from a gui
file manager. However, Freecell executables will only partially run
when clicked in a gui file manager - a window pops up reporting that
card.png cannot be found, even though it is in the same directory.

I am able to run the freecell executables from a terminal with ./freecell - just
as Jerry.

freecell.exw will not compile to an executable under my system. I get this
error message:
   ...  
   init_0.c
   linking
   gcc: /usr/lib/libncurses.a: No such file or directory
   you can now execute: ./freecell

However, no freecell file was created.

Maybe Rob or Matt Lewis have some answers.


Ken Rhodes
SuSE Linux 9.3
100% MicroSoft Free

new topic     » goto parent     » topic index » view message » categorize

7. Re: Euphoria problem: clicking on Linux programs

Alexander Toresson wrote:
> 
> Jerry Story wrote:
> > The reason why binded files must be clickable is that most
> > people out there don't have
> > Euphoria and probably won't be motivated to download and
> > install Euphoria just to run
> > a program.  I suppose I could tell them to download and 
> > install Euphoria so they can
> > run the source code or else do the ./ thing to run the executable.
> > But they expect
> > to be able to run the executable by clicking on it.
> > Before it's worth putting on freshmeat,
> > the binded executable must be clickable.
> 
> Is your program a console or a gui program?

It's a GUI program, with wxEuphoria.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Euphoria problem: clicking on Linux programs

Kenneth Rhodes wrote:
> 
> mouse.exu is a console program which to the best of my knowledge
> will not run from a gui without associating it with a terminal.
> 
> In an earlier post you mentioned that freecell.exu, a wxEuphoria program
> would not run from Nautilus.  I believe that freecell.exu will run
> from Nautilus when clicked or double clicked if it is bound or
> translated/compiled. I believe it would also run
> when clicked if it was shrouded, this would virtually require
> installation of euphoria or additional instructions similar to
> using exu to execute the source code.
> 
> So.... when freecell.exu failed to execute was it bound or
> translated/compiled?
> 
> Just out of curiosity, which version/distribtion of Linux are you
> using?

I tried freecell binded and it did not run on Nautilus by clicking on it.
I'm using Mandrake 9.2 and Eu 2.5

new topic     » goto parent     » topic index » view message » categorize

9. Re: Euphoria problem: clicking on Linux programs

Kenneth Rhodes wrote:
> freecell.exw will not compile to an executable under my system. I get this
> error message:
>    ...  
>    init_0.c
>    linking
>    gcc: /usr/lib/libncurses.a: No such file or directory
>    you can now execute: ./freecell
> 
> However, no freecell file was created.
> 
> Maybe Rob or Matt Lewis have some answers.

Translated code needs to link with the ncurses library,
which should be on your system somewhere, or available
from somewhere. It sounds like you can't translate/compile
*any* program. Is that right?
The message "you can now execute..." comes out even if there
has been an error.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

10. Re: Euphoria problem: clicking on Linux programs

Robert Craig wrote:
> 
> Kenneth Rhodes wrote:
> > freecell.exw will not compile to an executable under my system. I get this
> > error message:
> >    ...  
> >    init_0.c
> >    linking
> >    gcc: /usr/lib/libncurses.a: No such file or directory
> >    you can now execute: ./freecell
> > 
> > However, no freecell file was created.
> > 
> > Maybe Rob or Matt Lewis have some answers.
> 
> Translated code needs to link with the ncurses library,
> which should be on your system somewhere, or available
> from somewhere. It sounds like you can't translate/compile
> *any* program. Is that right?
> The message "you can now execute..." comes out even if there
> has been an error.
> 
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a>
> 
 
You were right of course. Installation of the ncurses development library solved
that problem.

Thanks.



Ken Rhodes
SuSE Linux 9.3
100% MicroSoft Free

new topic     » goto parent     » topic index » view message » categorize

11. Re: Euphoria problem: clicking on Linux programs

The problem remains unsolved.

The problem has nothing to do with translating from Eu to C.
I am not trying to do that.

Only:
bindu freecell.exu
(This is a demo in wxEuphoria.)

Now there is a binded file called freecell.

I can run it by:
./freecell

What I want to do is run it by clicking on it.

new topic     » goto parent     » topic index » view message » categorize

12. Re: Euphoria problem: clicking on Linux programs

Jerry Story wrote:
>
> The problem remains unsolved.
>
> The problem has nothing to do with translating from Eu to C.
> I am not trying to do that.
>
> Only:
> bindu freecell.exu
> (This is a demo in wxEuphoria.)
>
> Now there is a binded file called freecell.
>
> I can run it by:
> ./freecell
>
> What I want to do is run it by clicking on it.
>

Is the file made executable?

Regards, Alexander Toresson

new topic     » goto parent     » topic index » view message » categorize

13. Re: Euphoria problem: clicking on Linux programs

Alexander Toresson wrote:
> 
> Jerry Story wrote:
> >
> > The problem remains unsolved.
> >
> > The problem has nothing to do with translating from Eu to C.
> > I am not trying to do that.
> >
> > Only:
> > bindu freecell.exu
> > (This is a demo in wxEuphoria.)
> >
> > Now there is a binded file called freecell.
> >
> > I can run it by:
> > ./freecell
> >
> > What I want to do is run it by clicking on it.
> >
> 
> Is the file made executable?
> 
> Regards, Alexander Toresson

All the permissions allow it to execute, if that's what you mean.

new topic     » goto parent     » topic index » view message » categorize

14. Re: Euphoria problem: clicking on Linux programs

Jerry Story wrote:
> 
> Alexander Toresson wrote:
> > 
> > Jerry Story wrote:
> > >
> > > The problem remains unsolved.
> > >
> > > The problem has nothing to do with translating from Eu to C.
> > > I am not trying to do that.
> > >
> > > Only:
> > > bindu freecell.exu
> > > (This is a demo in wxEuphoria.)
> > >
> > > Now there is a binded file called freecell.
> > >
> > > I can run it by:
> > > ./freecell
> > >
> > > What I want to do is run it by clicking on it.
> > >
> > 
> > Is the file made executable?
> > 
> > Regards, Alexander Toresson
> 
> All the permissions allow it to execute, if that's what you mean.
> 

See

http://www.listfilter.com/EUforum/m1981.html

Chris


http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/

new topic     » goto parent     » topic index » view message » categorize

15. Re: Euphoria problem: clicking on Linux programs

you can  try 

chmod u+x freecell 

to set your permissions to executable on it.


--"ask about our layaway plan".
--

new topic     » goto parent     » topic index » view message » categorize

16. Re: Euphoria problem: clicking on Linux programs

GRRRRR

No ones listening to me.

ITS A PATH PROBLEM!!

see

http://www.listfilter.com/EUforum/m1981.html

Chris
( smile )

http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu