[Gambas-user] Debugging program to find error
craf
prog at ...2177...
Thu Apr 8 19:20:35 CEST 2010
-----Mensaje original-----
De: Benoît Minisini <gambas at ...1...>
Reply-to: mailing list for gambas users
<gambas-user at lists.sourceforge.net>
Para: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Asunto: Re: [Gambas-user] Debugging program to find error
Fecha: Thu, 8 Apr 2010 18:29:17 +0200
> Hi
>
> Continuing with experiments to try to implement a project of Gambas on a
> computer that does not have the IDE using the variable GB_DIR.
>
> The main problem is to debug the project on the computer that Gambas is
> not installed because the debugger does not work with the parameters
> indicated on the website of Benoit.
>
> I have tried to solve this by placing the routes where the executable.
> Example:
>
> Edit /etc/environment and added:
>
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/op
> t/project/gambas2/bin
>
> Then run gbc2 -agt and gives me the following:
>
> /opt/project/ FMain.class: 15: Unknown identifier: Button
>
> any idea?
>
> For testing purposes, the project consists of only one form and a
> button.
>
>
> Note:
> I'm testing this on a Ubuntu 8.04 distribution without Gambas 2
> installed, running through VirtualBox.
>
> Regards
>
> [OperatingSystem]
> OperatingSystem=Linux
> KernelRelease=2.6.28-14-generic
> DistributionVendor=ubuntu
> DistributionRelease="Ubuntu 9.04"
>
> [System]
> CPUArchitecture=i686
> TotalRam=1026628 kB
>
> [Gambas]
> Gambas1=Not Installed
> Gambas2=2.20.2
> Gambas2Path=/usr/local/bin/gbx2
> Gambas3=2.99.0
> Gambas3Path=/usr/local/bin/gbx3
>If you want to compile, and debug, you have to install Gambas. What you are
>doing is step by step creating a script that installs Gambas. You are
>reinventing the concept of binary package! Why not using them so?
Nooo, I do not reinvent the wheel, I'm not good programmer to do that ;=).
I just want to see the possibility of a Gambas project, compiling it and
using the variable GB_DIR, take it to another computer without having to
download the necessary components to run the application, and be
independent if I install it on a distribution 9.10 ,8.10 or 8.04 in
Ubuntu (In the first instance).-
Please correct me if I understand wrong, but when you generate a deb
package and automatically install it on another computer, this request
and install the components needed. Now, I imagine that if I want to
install a compiled project of Gambas on another computer, without the
need to download the packages from the internet, I must use the variable
GB_DIR, and pack all the necessary libraries of components, such as
gb.draw.so, gb.gtk.so, etc, depending on the components that are
described in the file .proyect.
Now the problem is that these libraries as I need other necessary shared
libraries to run the apliacion, which are different for each
distribution.
What I want is to carry my application with all dependencies included,
either, components and shared libraries. The only problem, that by doing
this, the interpreter gbx2 can not find the library libffi.so and that I
am trying to solve.
I just need to move an entire folder with the interpreter, components
and shared libraries to a location, such as / opt / project. Running a
file .sh, which is indicated by export routes.
Thanks for your time.
Regards
More information about the User
mailing list