[Gambas-user] gambas3 library pathes
Willy Raets
willy at ...2734...
Mon Apr 23 21:47:19 CEST 2012
On ma, 2012-04-23 at 13:58 +0200, Benoît Minisini wrote:
> Hi,
>
> I wrote a little page about libraries on the wiki to explain how to use
> them.
>
> But I don't understand why it does not work for you. Libraries are
> really searched in:
>
> 1) The directory that contains the current project executable.
> 2) /usr/bin
> 3) /bin
>
> So if you install your library in /usr/bin like any other executable,
> every project should be able to find and use it.
>
> I will check that as soon as possible anyway. But if you can give me
> more details and/or some projects that will reproduce your problem on my
> machine, you are welcome!
>
> Regards,
Hi Benoît,
I made a small example you can check. Library is called "MyLib". The
application using the library is called "TestLibApp"
I am looking at this for distribution to end user reasons.
So I made an installation package of the library (attached -> Ubuntu
package) and installed it.
It installed into /usr/bin (see screenshot-00.png)
I then opened TestLibApp in IDE and had the library point
to /usr/bin/MyLib.gambas (see screenshot-01.png)
Next I did a debug->run in IDE and all works just fine.
I then make an installation package for end user (attached -> Ubuntu
package) and installed it.
It complains about not finding depended library MyLib (see
screenshot-02.png), although the library is in /usr/bin!!
Also provided source of both library and test application.
Hope this helps...
Willy
[System]
OperatingSystem=Linux
Kernel=2.6.35-32-generic
Architecture=i686
Memory=2051620 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 10.10"
Desktop=Gnome
[Gambas 2]
Version=2.24.0
Path=/usr/bin/gbx2
[Gambas 3]
Version=3.1.1
Path=/usr/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.7.0
GTK+=libgtk-x11-2.0.so.0.2200.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-00.png
Type: image/png
Size: 25276 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120423/38ffe0b1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-01.png
Type: image/png
Size: 41913 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120423/38ffe0b1/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-02.png
Type: image/png
Size: 57329 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120423/38ffe0b1/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mylib_0.0-1_all.deb
Type: application/x-deb
Size: 7624 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120423/38ffe0b1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MyLib-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 10097 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120423/38ffe0b1/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testlibapp_0.0.1-1_all.deb
Type: application/x-deb
Size: 8156 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120423/38ffe0b1/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestLibApp-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 11241 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120423/38ffe0b1/attachment-0003.bin>
More information about the User
mailing list