Excellent! ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Igor Stasenko [siguctua@gmail.com] Sent: Thursday, June 02, 2011 7:20 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Compiling and using the FT2Plugin On 2 June 2011 02:59, Schwab,Wilhelm K <bschwab@anest.ufl.edu> wrote:
Alain,
Sig's answer leaves me doubting my suspicion, but I will toss it out anyway, and since you are building a vm, you can pretty easily run through the exercise.
First, the question: what (full path) library is the vm trying to load? It really is a plugin, so some of my more common concerns (extra slashes in the path, so.Name instead of libName.so, etc., go away - or do they??).
Sadly, I don't see the code I want to give you on this machine. Maybe my laptop will have some friendly symlinks to the tweaked files. In short, I think that any time the (particularly linux) vm translates a number to to a name or a name to a path, and the subsequent load fails, it should say something somewhere about what it tried to open/load. I have used syslog() to good effect. It's nice because the logs rotate, giving some time for the user to look for it and yet not clog the drive with old news.
Yes, it is a pain to determine, why lib cannot be loaded/not found. And that's why i proposed to make library loading mechanism more stupid and give more extended error messages if loading was failed. See corresponding topic on vm-dev list , titled Stupidifying FFI ... blah blah :)
Ok; I'll shut up and see if I can find some code for you :)
Bill
________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Alain Plantec [alain.plantec@yahoo.com] Sent: Wednesday, June 01, 2011 2:00 PM To: pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Compiling and using the FT2Plugin
Le 01/06/2011 19:46, Igor Stasenko a écrit :
On 1 June 2011 19:20, Alain Plantec<alain.plantec@yahoo.com> wrote:
Hi all, I try to build my own vm (ubuntu 10.04, virtualbox) Thanks to the **excellent** Mariano blog, I can compile, it runs ok except the FT2Plugin I always have the following error message while trying to load fonts:
ioLoadModule(libFT2Plugin.so): libFT2Plugin.so: cannot open shared object file: No such file or directory
I guess that it is because the plugin is unable to load libfreetype.so. does someone know what I am missing ?
i know. ;)
i wanna add a correct settings for building this plugin on all platforms. so we can ship a vm with this plugin by default. But i haven't time to do it yet. So, if you find a solution how to do it for unix, i will capture your knowledge in corresponding config(s) :) ahhhhh! thanks Igor I'm not so stupid, its a problem :) ok, I will try Cheers Alain
thanks Alain
-- Best regards, Igor Stasenko AKA sig.