On Thu, Apr 06, 2006 at 10:44:54AM +0200, Georg Baum wrote:
> Abdelrazak Younes wrote:
> 
> > If buildir is not at the same level as srcdir then it won't work. i.e.
> > the icons won't show in the math panel. As I said in a previous mail
> > this is just an interim fix (for srcdir and posix install) until we
> > manage to extract the path from some rc.
> 
> Have a look at LibFileSearch() in src/support/filetools.h:
> 
> /** Returns the path of a library data file.
>     Search the file name.ext in the subdirectory dir of
>       -# user_lyxdir
>       -# build_lyxdir (if not empty)
>       -# system_lyxdir
>     The third parameter `ext' is optional.
> */
> std::string const LibFileSearch(std::string const & dir, std::string const &
> name, std::string const & ext = std::string());

That's a solution for the wrong problem. With Qt4, the images do not
need to be installed at all, they only need to be reachable at compile
time when using the Qt 'resource compiler'.

LibFileSearch is a run time thing.

Andre'

Reply via email to