KHTML Thai Word Break patchc

David Faure faure at kde.org
Thu May 6 17:33:03 BST 2004


On Thursday 06 May 2004 18:24, Lars Knoll wrote:
> On Thursday 06 May 2004 18:15, David Faure wrote:
> > On Thursday 06 May 2004 18:01, Pattara Kiatisevi wrote:
> > > I have tested your code, there is some problems with the:
> > >
> > >  KLibrary *lib = loader->library("libthai");
> > >
> > > I have to change this "libthai" to "libthai.so.0" to make it work but I'm
> > > not sure it is a good idea to do that. A symlink /usr/lib/libthai.so --> 
> > > /usr/lib/libthai.so.0 didn't help.
> >
> > I suppose this is because there is no libthai.la (libtool file), right?
> > In that case, giving "libthai.so" or "libthai.so.0" to KLibLoader is the
> > only way indeed. Given that ".so" files are for development and not for
> > runtime, giving "libthai.so.0" sounds correct to me.
> 
> At least my installation of libthai (downloaded the sources yesterday) 
> installs a .la file. But it installs into /usr/local by default, could that 
> make a difference?

Yes, KLibLoader accepts full paths, but otherwise simply looks in the KDE
directories (for the resources "lib" and "module").
I guess this needs a configure check, that finds libthai.la, and saves its location
to config.h, so that you can give the full path to KLibLoader::library().

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list