1. Irv: Your win GTK wrapper
- Posted by Al Getz <Xaxo at aol.com> Jun 15, 2004
- 424 views
Hello Irv, I downloaded your GTK wrapper that i thought would run in Windows, and i couldnt find a single .exw file demo. I changed one of the names from exu to exw and ran it, and it said it had an error with a whole bunch of dll's. Is there a c library that needs to be downloaded for GTK or something like that? I was thinking if i could get a few things to run in Windows then i could scoot on over to Linux and try some things to see what (if any) differences there are. Take care, Al And, good luck with your programming! My bumper sticker: "I brake for LED's"
2. Re: Irv: Your win GTK wrapper
- Posted by cklester <cklester at yahoo.com> Jun 15, 2004
- 419 views
Al Getz wrote: [I'm not Irv, but I do have a few responses...] :) > I downloaded your GTK wrapper that i thought would run in Windows, > and i couldnt find a single .exw file demo. This won't solve your problem, but it will help for in the future: Assign exw.exe to run *.exu files. > I changed one of the names from exu to exw and ran it, and it > said it had an error with a whole bunch of dll's. Until he changes that, you'll have to explicitly provide the path to your dlls in the wrapper.e include file. > Is there a c library that needs to be downloaded for GTK or > something like that? Yes. > I was thinking if i could get a few things to run in Windows > then i could scoot on over to Linux and try some things to > see what (if any) differences there are. The main differences are the "look" of each widget set on each OS. Everything works the same, and works great!
3. Re: Irv: Your win GTK wrapper
- Posted by irv mullins <irvm at ellijay.com> Jun 15, 2004
- 433 views
Al Getz wrote: > > > Hello Irv, > > I downloaded your GTK wrapper that i thought would run in Windows, > and i couldnt find a single .exw file demo. > I changed one of the names from exu to exw and ran it, and it > said it had an error with a whole bunch of dll's. > Is there a c library that needs to be downloaded for GTK or > something like that? You'll need GTK compiled for Windowes, it's about a 6.5 meg download. There is a link on my website. You may need a couple other DLL's as well. But, DO NOT DO THIS! Read below: > I was thinking if i could get a few things to run in Windows > then i could scoot on over to Linux and try some things to > see what (if any) differences there are. This is NOT a good idea. 1. EuGTK for Windows is very experimental. Thanks to CK and Ron Tarrant, I'm getting some testing done on that platform, and CK tells me most things run, but there are memory problems. 2. It's going to be MUCH harder to write your own programs in Windows than in Linux, if only because you can't avoid a mistake or two, and where Linux will generally pop up a warning and allow you to kill the program gracefully, Windows will just hang/crash/whatever. Terrible aggravation. Plus the tools you need (editors, etc) are better on Linux, and the program "inspector" works on Linux, not Windows, AFAIK. You kind of need this to determine what properties are available for each control. 3. Once the program is working correctly, porting it to Windows will be relatively easy. Mostly. Oh, and DO NOT rename the gtk demos as .exw. That will just cause problems when you do install GTK. Regards, Irv
4. Re: Irv: Your win GTK wrapper
- Posted by Al Getz <Xaxo at aol.com> Jun 15, 2004
- 415 views
Hi Irv, Ive read that the GTK for Windows your site pointed me to is not being maintained anymore. I found the other site and that said that that 2nd version of GTK for Windows has problems. Im not sure i want to get involved with this anymore after downloading that GTK, the environ, and the 34 Meg source code (should have been the other way round So i dont get this...your download says its' "GTK for Win", but the files are named *.exu ? If you meant it to be run in Linux then why say the download is for Win? Did i miss something perhaps? I downloaded the other package that said it was for Linux, and i guess i should be able to run the demos with out any further downloads on Linux? Linux has all the other files it (wrapper) may need? This (on linux) looks very promising. Thanks again Irv, Al And, good luck with your programming! My bumper sticker: "I brake for LED's"
5. Re: Irv: Your win GTK wrapper
- Posted by irv mullins <irvm at ellijay.com> Jun 15, 2004
- 432 views
Al Getz wrote: > > Hi Irv, > > Ive read that the GTK for Windows your site pointed me to > is not being maintained anymore. I found the other site > and that said that that 2nd version of GTK for Windows has > problems. Im not sure i want to get involved with this > anymore after downloading that GTK, the environ, and > the 34 Meg source code (should have been the other way round Trust me, you do not want to get into that mess. Wait until someone compiles the dll's and makes them available. Besides, the "latest version" of GTK isn't widely available even for Linux. So you'd not be able to write programs which anyone else could use. > So i dont get this...your download says its' "GTK for Win", > but the files are named *.exu ? If you meant it to be > run in Linux then why say the download is for Win? > Did i miss something perhaps? Yes. They run on Linux or Windows without changing the source (except where needed, such as path names). If you call them .exw files, then Windows will try to open them with exw and that just ain't-a-gonna work. > I downloaded the other package that said it was for Linux, > and i guess i should be able to run the demos with out any > further downloads on Linux? Linux has all the other files it > (wrapper) may need? Maybe. If not, you should get a message regarding what is missing. If you'd like to check manually, do this: open an x-terminal. type: cd /usr/lib <enter> type: ls libgtk* " You should see some files, one of them should be: libgtk-x11-2.0.so.0 type: ls libgdk* and look for libgdk-x11-2.0.so.0 and libgdk_pixbuf-2.0.so.0 type: ls libgobj* look for libgobject-2.0.so.0 type: ls libglib* look for libglib-2.0.so.0 type: ls libpan* look for libpango-1.0.so.0 Those file names should match up with the files in /euphoria/gtk2/wrapper.e If those files are not there (I have no idea whether MandrakeMove includes them) then your best bet is to wait for your real Mandrake installation disks. They get installed automatically. Don't even think of trying to download those libraries and installing them, because each of those depend upon MANY other libraries, which you may or may not have. It isn't worth the hassle, when all you have to do is wait a couple of days. Regards, Irv
6. Re: Irv: Your win GTK wrapper
- Posted by irv mullins <irvm at ellijay.com> Jun 15, 2004
- 417 views
irv mullins wrote: > > So i dont get this...your download says its' "GTK for Win", > > but the files are named *.exu ? If you meant it to be > > run in Linux then why say the download is for Win? > > Did i miss something perhaps? > > Yes. They run on Linux or Windows without changing the source > (except where needed, such as path names). If you call them > .exw files, then Windows will try to open them with exw and > that just ain't-a-gonna work. Hummm. actually, that would work, but it would be confusing for me. What I should have said was that you can associate .exu files with exw, if you wish, or rename them. but I see no point in doing so. And I don't want to bother renaming them, or providing separate downloads. Irv
7. Re: Irv: Your win GTK wrapper
- Posted by Al Getz <xaxo at aol.com> Jun 15, 2004
- 413 views
Hello again Irv, Coming from Linux this time Password: intact Spell Checker: on All the files are there...and about 9000 other ones, including a million directories which look like libraries and stuff. Geeze, where do you get the documentation for all these libraries? Where can i start? Is your wrapper a good way to get aquainted with writing apps for linux GUI apps? Take care, Al And, good luck with your programming! My bumper sticker: "I brake for LED's"
8. Re: Irv: Your win GTK wrapper
- Posted by irv mullins <irvm at ellijay.com> Jun 15, 2004
- 420 views
Al Getz wrote: > > Hello again Irv, > > Coming from Linux this time > > Password: intact > Spell Checker: on > > > All the files are there...and about 9000 other ones, > including a million directories which look like > libraries and stuff. Geeze, where do you get the > documentation for all these libraries? You really don't need it. They are like dll's in Windows, you don't often use those without some kind of wrapper (like Win32Lib), although you can. > Where can i start? > Is your wrapper a good way to get aquainted with > writing apps for linux GUI apps? I would say yes. Next best would be Python, then Ruby, then C. Those are more or less ranked in increasing difficulty, and all can create GUI apps. Regards, Irv
9. Re: Irv: Your win GTK wrapper
- Posted by Al Getz <Xaxo at aol.com> Jun 15, 2004
- 423 views
Hello again Irv, Im no stranger to .dll's. The WinClass library links to many of them. I've created my own dll's for windows also, some small, some large, written in C, C++, or asm. I've got gigabytes of documentation on Windows programming, dll's, and related dll's included with most win distros, and whatnot mostly in C and C++ (including the large set of include files that comes with the Platform SDK). Now im branching out to the Linux platform, and have little or no documentation on any libraries, and not even that good of an idea what the basics are in Linux. I'd be happy to start with your library and it would be great to see some demos run, of which you provided many Im almost there now but i guess i need to read up on some of the basics in Linux first. Windows was a natural extension of what i had done in programming prior to the Windows explosion, so i had no trouble making the transition from 'dos' to Windows. With Linux, i have a feeling it will be similar but i just havent read enough on the basics yet. Back to Euphoria on Linux: I tried running exu but it said something like 'what do you want to open it with' so i got stuck. In Windows, the command processor opens exw.exe, so what should open exu under linux and how do i set it to do that automatically as in windows with exw? On the brighter side, i was playing around a little in the 'new' environment (at least for me) and trying to get familiar where everything is and how it works, and im starting to see how powerful Linux can be. Take care, Al And, good luck with your programming! My bumper sticker: "I brake for LED's"
10. Re: Irv: Your win GTK wrapper
- Posted by Al Getz <Xaxo at aol.com> Jun 15, 2004
- 426 views
I forgot to ask... Where does Euphoria for Linux get unzipped to? On win it's C:\Euphoria for me, but where does it go under Linux? Thanks, Al And, good luck with your programming! My bumper sticker: "I brake for LED's"
11. Re: Irv: Your win GTK wrapper
- Posted by irv mullins <irvm at ellijay.com> Jun 15, 2004
- 420 views
Al Getz wrote: > > > I forgot to ask... > > Where does Euphoria for Linux get unzipped to? > On win it's C:\Euphoria for me, but where does > it go under Linux? Your home directory will be something like /home/al -- or whatever name you designated as your user name. There'll be a couple of folders in /home/al, most likely Desktop and Documents. You can add as many folders as you want (right click on a blank area, choose create new... folder/file/device -- give it a name. You could create a new /euphoria folder in that way, or just use Ark to unpack the euphor24.tar package, and when asked where to extract it to, select /home/al. It will take care of creating the new folders automagically. There are other places the Eu files *could* go, if you wanted Eu to be shared by many users. But that should be of no concern at this point. Regards, Irv
12. Re: Irv: Your win GTK wrapper
- Posted by irv mullins <irvm at ellijay.com> Jun 15, 2004
- 409 views
Al Getz wrote: > > Hello again Irv, > > Im no stranger to .dll's. The WinClass library links to > many of them. I've created my own dll's for windows also, > some small, some large, written in C, C++, or asm. > > I've got gigabytes of documentation on Windows programming, > dll's, and related dll's included with most win distros, > and whatnot mostly in C and C++ (including the large set of > include files that comes with the Platform SDK). > Now im branching out to the Linux platform, and have little > or no documentation on any libraries, and not even that > good of an idea what the basics are in Linux. See the book I recommended earlier / look in the documentation which comes with a full install / search the web / study the C header files for the specific library you're interested in. The major packages such as GTK have an API, see the website. I repeat: "Google is your friend". > Back to Euphoria on Linux: > I tried running exu but it said something like > 'what do you want to open it with' > so i got stuck. I'm guessing that you got a dialog window which has at the top: Open with: then a drop-down list, and below that, a tree-view type display titled: Known Applications. Correct? Well, if so, the answer is none of the above. You don't want to open exu, using any other program, what you want is to run some euphoria source code *using* exu. > In Windows, the command processor opens exw.exe, so > what should open exu under linux and how do i set it > to do that automatically as in windows with exw? You should start by using the text console. There should be a small icon which looks like a computer screen on the taskbar. The tooltip will say "terminal program". Click that. If you can't find that, look in the start menu for system/terminals/konsole. That will open an xterm (which is like the DOS box in Windows). In the xterm, type exu <enter>, and you'll see the familiar Euphoria welcome message, along with a prompt: "file name to execute?". >From there, things should be obvious. >From that same xterm, you type things like dir -- with the obvious results, ls -- same as above. ls -l -- long version (file dates, sizes, etc) ls -a -- list all (including hidden files) lsd -- list only directories, cp file1 file2 -- copy rm filex -- short for remove (del) mv file1 /home/al/euphoria -- move file1 from the current directory to /home/al/euphoria Then use a text editor (kwrite is good) to create your Euphoria "Hello World" program, and run it in the usual manner (exu hello). Hope that helps. Irv Regards, Irv
13. Re: Irv: Your win GTK wrapper
- Posted by Ed Davis <ed_davis2 at yahoo.com> Jun 16, 2004
- 417 views
Al Getz wrote: >Im no stranger to .dll's. The WinClass library links to many of >them. I've created my own dll's for windows also, some small, >some large, written in C, C++, or asm. > >Now im branching out to the Linux platform, and have little or >no documentation on any libraries, and not even that good of an >idea what the basics are in Linux. > >Windows was a natural extension of what i had done in >programming prior to the Windows explosion, so i had no trouble >making the transition from 'dos' to Windows. With Linux, i have >a feeling it will be similar but i just havent read enough on >the basics yet. Well, just jump right in - try this - put it in a file called hello.c: #include <stdio.h> int main() { printf("Hello, Linux\n"); return 0; } Now, from any old terminal or console window, type: gcc hello.c -o hello If all goes well, type: ./hello And you should get your reward... As long as it isn't Windows specific, most C code ports readily to Linux. I've already ported one 15,000 line C program from Windows to Linux, with little problems (e.g., findfirst/next to opendir/readdir). And, most of console Euphoria just works under Linux. For instance, ed, and most of the other demos. So dive right in!
14. Re: Irv: Your win GTK wrapper
- Posted by Al Getz <Xaxo at aol.com> Jun 16, 2004
- 423 views
Hello again, Ed Davis: Thanks Ed, i'll try that hopefully today! Looks pretty straightforward. Irv: Thanks again for the tips. Now one more Q... Can i put my Euphoria directory in a place other then \al\ (as in al\euphoria) such as say one of the mnt drives? For example maybe: \mnt\c_one\Euphoria where c_one is the first drive in the system, and there are other things that come before \mnt\ but i dont remember what they were now For some reason the little jump drive isnt storing the settings that would make my home directory persistant, so i'd like to try installing Euphoria to an actual physical drive and run it from there, if that's possible? Take care, Al And, good luck with your programming! My bumper sticker: "I brake for LED's"
15. Re: Irv: Your win GTK wrapper
- Posted by irv mullins <irvm at ellijay.com> Jun 16, 2004
- 423 views
Al Getz wrote: > Irv: > Thanks again for the tips. Now one more Q... > > Can i put my Euphoria directory in a place other > then \al\ (as in al\euphoria) such as say > one of the mnt drives? > For example maybe: > \mnt\c_one\Euphoria Just to make it clear: I don't know how MandrakeMove sets things up, but in a normal installation, you would have a /home directory, under which each user would have his or her own directory, i.e. /home/al If your friend fred uses your computer, he would have a directory /home/fred. Each user space would have its own set of preference files, starting with .bash_profile, and including other preferences (usually hidden) to control things like themes, browser and e-mail preferences, etc. > where > c_one is the first drive in the system, and there are > other things that come before \mnt\ but i dont remember > what they were now Since you are booting from the CD, I guess c_one is the drive where Windows resides. You should be able to browse that and tell by the file names. If it is, then yes, you could create a new folder and store euphoria there. You would have to change the PATH and EUDIR (in .bash_profile) to reflect the new location. > For some reason the little jump drive isnt storing the > settings that would make my home directory persistant, > so i'd like to try installing Euphoria to an actual > physical drive and run it from there, if that's > possible? See above. Chances are you could actually put your HOME directory on the jump drive, but not having one, I can't give specific instructions. Under the start menu: system/configuration/other/user administration, you can add a new user, and select the location for his home directory. If you choose the jump drive, that might work. Regards, Irv
16. Re: Irv: Your win GTK wrapper
- Posted by Al Getz <Xaxo at aol.com> Jun 16, 2004
- 407 views
Hi Irv, Ok, i'll be trying some more things out today sometime. Going trans-continental tomorrow so i wont be able to do anything then Thanks again for all your help! Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"