|
Post by barryk on Jul 2, 2017 12:05:56 GMT 1
Hi, I am using bacon 3.5.4.
If I compile with hug.bac included, all is well.
However, if I compile hug.so and use hug_imports.bac, when I run the app, get this:
# ./temp1/proxy-setup Gobject library not found!
Everything is done exactly the same as I have been doing for ages. Of course, libobject exists, and hug_imports.bac has the correct path to hug.so.
Is anyone able to reproduce this, or if not, suggest what is wrong?
|
|
|
Post by barryk on Jul 2, 2017 14:07:08 GMT 1
Um, no, it isn't the version. I have tried bacon 3.4, same problem.
I am running on the Raspberry Pi3, my "Pyro" build of Quirky Linux, which is compiled entirely from source in OpenEmbedded.
Have the full development environment in the target system, gcc, headers, etc. So can compile in the target system. The build environment in the target system is sane, have compiled lots of packages, including yesterday seamonkey.
No multilib, all libs in /lib and /usr/lib, arch armv7l.
So, don't know why hug.so is having a problem.
|
|
|
Post by vovchik on Jul 2, 2017 14:15:26 GMT 1
Dear Barry,
Just tried quickly it using some sample code and Bacon beta (latest, 3.6) on Tahr and it seems to work fine. And same on Mint 17.4 (32-bit). Will try on my PI next. I had to use INIT right after IMPORT "hug_imports.bac", however.
With kind regards, vovchik
|
|
|
Post by Pjot on Jul 2, 2017 16:47:38 GMT 1
Hi Barry,
First, I am not sure how you have installed the 'libgobject' library, but if it was a manual install, then you might need to update the linker cache (following command as root user):
Before doing so, please make sure that the path in which the 'libgobject' library was installed appears in the 'ld.so.conf' configuration file.
Secondly, if your 'libgobject' library ends with a sequence number higher than 50, then HUG will not find it. E.g. the actual shared object should be called anything between 'libgobject-2.0.so.0' until 'libgobject-2.0.so.49'.
So if your library name has a higher sequence number than 50, you can change line 391 in 'hug.bac' where the maximum is set and recompile.
Please let me know your findings, especially when you need a change in HUG or BaCon.
HTH, Peter
|
|
|
Post by barryk on Jul 3, 2017 13:38:32 GMT 1
Thanks for the feedback.
Yes, I do have "INIT" right after including hug_imports.bac.
Yes, "ldconfig" was run.
The libraries in /usr/lib are:
symlink: libobject-2.0.so symlink: liboject-2.0.so.0 libobject-2.0.so.5000.3
...a lot higher than "49"!
However, as I reported above, when I changed to include hug.bac, it worked. It only gives that error if I include hug_imports.bac.
Note also, the program has worked before on the Pi, so the problem is with this particular build of Quirky.
Note: My Pi is busy compiling something right now. Later, I will see if I can adjust that number up to 5000. Or, would another symlink also do the trick?
|
|
|
Post by Pjot on Jul 3, 2017 20:00:12 GMT 1
Yes, this also should work.
Best regards Peter
|
|