1. Nearly there with wxEuphoria and wxIDE
- Posted by carolyn Jun 12, 2011
- 1599 views
I think I'm on the point of getting wxEuphoria and wxIDE up and running in Xubuntu 11.04.
Having re-read the "read me" file for wxEuphoria, I realised I needed a package called gtk+-2.0-dev. Tried to install that with apt-get and was told the package couldn't be found. After a bit of research I discovered the package is actually called gtk+2.0-dev, so I installed that and tried ./configure again, got a message saying there was no such command. Found a Bash tutorial online which seemed to suggest I should type "source configure" instead of "./configure", so I tried that and it worked (after it had told me I needed wx-config and which packages I could install that contain it).
So I finally got through configure, make and make install. Now all I've got to do is get Bash to stop telling me it can't open the file when I try to run a program. Is that because I have to add the Euphoria directories to PATH? I seem to recall having to do that before. If so, please could someone just remind me how to do that. I went into .profile and found the line: PATH="$HOME/bin:$PATH". Where in that string do I insert the extra directories?
Thank you.
2. Re: Nearly there with wxEuphoria and wxIDE
- Posted by ghaberek (admin) Jun 12, 2011
- 1589 views
So I finally got through configure, make and make install. Now all I've got to do is get Bash to stop telling me it can't open the file when I try to run a program. Is that because I have to add the Euphoria directories to PATH? I seem to recall having to do that before. If so, please could someone just remind me how to do that. I went into .profile and found the line: PATH="$HOME/bin:$PATH". Where in that string do I insert the extra directories?
Are you just trying to double-click on the .exw files and run them? Try running them from the console instead:
$ eui aui.exw
-Greg
3. Re: Nearly there with wxEuphoria and wxIDE
- Posted by carolyn Jun 12, 2011
- 1530 views
Thank you for your prompt reply.
I was running them from the console - not IDE ones yet, just simple .ex ones to check everything was in order. I've got that sorted, I found PATH in /etc/environment and added all the relevant directories to that, so I can now run those files from the console. I also seem to have to use the full path name in any include statements.
I've gone on to a different problem now when trying to run wxIDE. I went into the wxIDE's src directory, opened up a terminal and typed "eui wxide.exw" and the IDE window opened up, but just as I was clicking to start a new project it vanished and I got the following error message:
/usr/share/euphoria/wxide-0.6.0/src/wxide.exw:959 in procedure check_file_modified() type_check failure, stat is -1 the_file = 1 stat = -1 reload = <no value>followed by a list of the procedures it was called from.
Do you know what might be causing that?
4. Re: Nearly there with wxEuphoria and wxIDE
- Posted by ghaberek (admin) Jun 12, 2011
- 1495 views
There was definitely a bug in check_file_modified(). I've corrected the problem and committed it the SVN.
You can fix it yourself easily. Just go to line 991 in wxide.exw and replace these two lines:
sequence loaded = file_last_modified[the_file] if compare( changed, loaded ) = 1 then
With this:
object loaded = file_last_modified[the_file] if sequence( loaded ) and compare( changed, loaded ) = 1 then
-Greg
5. Re: Nearly there with wxEuphoria and wxIDE
- Posted by penpal0andrew Jun 13, 2011
- 1432 views
please refresh my memory where is the SVN
6. Re: Nearly there with wxEuphoria and wxIDE
- Posted by mattlewis (admin) Jun 13, 2011
- 1512 views
please refresh my memory where is the SVN
wxeuphoria | https://wxeuphoria.svn.sourceforge.net/svnroot/wxeuphoria/wxeu/trunk |
wxide | https://wxeuphoria.svn.sourceforge.net/svnroot/wxeuphoria/ide/trunk |
Matt
7. Re: Nearly there with wxEuphoria and wxIDE
- Posted by carolyn Jun 13, 2011
- 1472 views
please refresh my memory where is the SVN
wxeuphoria | https://wxeuphoria.svn.sourceforge.net/svnroot/wxeuphoria/wxeu/trunk |
wxide | https://wxeuphoria.svn.sourceforge.net/svnroot/wxeuphoria/ide/trunk |
Matt
This is what I have for check_file_modified():
export procedure check_file_modified( integer the_file ) sequence stat = dir( file_list[the_file] ) if compare( stat[1][D_YEAR..D_SECOND], file_last_modified[the_file] ) = 1 then -- been modified! integer reload = message_box( sprintf("[%s] has changed since it was last viewed. Would you like to reload it from disk?", { file_short_list[the_file] }), "File Changed On Disk", wxYES_NO ) if reload = wxYES then reload_ok = 1 load_file( file_list[the_file] ) else -- don't bug the user again file_last_modified[the_file] = stat[1][D_YEAR..D_SECOND] end if end if end procedure
[matt: added eucode tags]
8. Re: Nearly there with wxEuphoria and wxIDE
- Posted by mattlewis (admin) Jun 13, 2011
- 1462 views
This is what I have for check_file_modified():
That's a little out of date. Here's the current version:
export procedure check_file_modified( integer the_file ) object stat = dir( file_list[the_file] ) if atom( stat ) then return end if sequence changed = stat[1][D_YEAR..D_SECOND] object loaded = file_last_modified[the_file] if sequence( loaded ) and compare( changed, loaded ) = 1 then -- been modified! integer reload = message_box( sprintf("[%s] has changed since it was last viewed. Would you like to reload it from disk?\n" & "Loaded: [%04d-%02d-%02d %02d:%02d:%02d]\n" & "Changed: [%04d-%02d-%02d %02d:%02d:%02d]", { file_short_list[the_file] } & loaded & changed ), "File Changed On Disk", wxYES_NO ) if reload = wxYES then reload_ok = 1 load_file( file_list[the_file] ) else -- don't bug the user again reset_file_time( the_file, stat[1][D_YEAR..D_SECOND] ) end if end if end procedure
Note that the head of svn for wxIDE can't be used with the latest released version of wxEuphoria (v0.15.0). There have been some updates. I hope to get a new version of wxEuphoria (and wxIDE) released soon. Greg's been working on them both, and I want to let that stuff take its course before releasing.
Matt
9. Re: Nearly there with wxEuphoria and wxIDE
- Posted by carolyn Jun 13, 2011
- 1416 views
Thank you for that. However, I've got a different error message coming up now:
/usr/share/euphoria/wxide-0.6.0/src/wxide.exw:981 <0074>:: Errors resolving the following references: wxide.exw (981): reset_file_time
reset_file_time( the_file, stat[1][D_YEAR..D_SECOND] ) ^ Sorry to have to keep bothering you.
Carolyn