[Gambas-user] Programming beginner: first program won't run?
phohammer
trreddell at ...626...
Sun Apr 19 19:52:22 CEST 2009
I opened the IDE with a terminal and it shows nothing when I run it. I'm not
sure what you mean by
the "ps(1) command".
Here is a tarball of the project to scratch your head over:
http://www.nabble.com/file/p23125471/trythis-0.0.1.tar.gz
trythis-0.0.1.tar.gz
I'm no command line wizard (started using GNU/Linux in January of this year)
so bear with me, please :)
Doriano Blengino wrote:
>
>
> I assume you have QT installed, because gambas would'nt work without.
> Graphical application should be ok.
> No compilation errors - ok.
> Next, try to understand, when you press GO (F5?), if the program really
> runs or not. While the program "seems" to run, you can confirm by using
> a terminal and the ps(1) command: on my system turns out:
>
> 9612 ? S 0:02 gbr2 /usr/bin/gambas2
> 9619 ? S 0:00 /usr/bin/gbx2 -g -f
> /root/programmi/gambas/prove/Parted --
>
> You see "gbr2 ...gambas2", which is the IDE, and "gbx2 ...Parted" which
> is the program.
> If your program does'nt show, then it is not running - try to execute it
> step by step to see if terminates instead of opening a window and
> entering the idle loop.
> If it runs, look in the taskbar, where you see open
> windows/applications. If a button is there, then your program has an
> open window somewhere outside the desktop (window manager issue). You
> can try to pull it inside a desktop by using the contestual menu.
>
> If the program runs, but no window is shown, check with "lsof -p
> <your_program_pid>"; on my system, at the end, it shows:
>
> gbx2 9619 root 21r REG 3,70 14625 35686
> /usr/lib/gambas2/gb.qt.gambas
> gbx2 9619 root 22r REG 3,70 1033214 35701
> /usr/lib/gambas2/gb.form.gambas
>
> showing the the program actually uses QT (and many more information).
> There other tools to see if your program really opened a window, but
> things get more complicated... it is easier to see what is wrong in the
> source.
>
> Anyway, make a source tarball (Project->Create->Source package -- or
> something like that) and send the .tar.gz; this will let other users on
> this list to examine your project to find something you missed.
>
--
View this message in context: http://www.nabble.com/Programming-beginner%3A-first-program-won%27t-run--tp23117770p23125471.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list