[Gambas-user] Run Gambas on a USB key

Jesus Guardon jguardon at ...2035...
Mon Nov 2 19:42:05 CET 2009


Benoît Minisini escribió:

> 
> You must:
> 
> 0) Run ldd on the *.so files of all gambas components used by your application 
> to make a list of needed shared libraries. Don't forget to run ldd on the 
> interpreter.
> 
> 1) Put all detected shared libraries in a folder. Let's name it "/my/ld/dir"
> 
> 2) Copy a gambas installation directory in another folder. Let's name it 
> "/my/gambas/dir".
> 
> 3) Create a script like that:
> 
> #!/bin/sh
> export LD_LIBRARY_PATH=/my/ld/dir:$LD_LIBRARY_PATH
> export GB_DIR=/my/gambas/dir
> exec /my/application.gambas
> 
> This is just the principle. To make that cleanly, you must detect the current 
> directory in your script, and build /my/ld/dir and /my/gambas/dir absolute 
> paths from path relative to the current directory. You should check that the 
> running system has the good architecture too.
> 
> If somebody succeeds in doing that, please tell. A good guy would be able to 
> even create a wizard for the IDE that would do the job automatically. I don't 
> have the time for that at the moment!
> 
> Regards,
> 

Many thanks, Benoît

I will give a try when I have time, and I will post the results.

Regards

Jesus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x15E1D3C3.asc
Type: application/pgp-keys
Size: 1698 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20091102/20865bd8/attachment.key>


More information about the User mailing list