The /usr change was a request from the Debian maintainers I think, it's not
qmake specific.

That explains why the symlink wasn't working, thanks for tracking it down.
The idea of appending 'library.bin' is because  it's supposed to point to
the library that I distribute and up to this point no one requested
otherwise. I can change the code to look for an LDraw library but I already
provide 3 options for that (command line, env var and preferences).




On Thu, Mar 6, 2014 at 12:29 PM, Hubert Figuière <[email protected]> wrote:

> On 06/03/14 02:29 PM, Leonardo Zide wrote:
> >   Prefix defaults to /usr:
> >
> > isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr
> >
> > DEFINES += LC_INSTALL_PREFIX=\\\"$$INSTALL_PREFIX\\\"
> >
>
> In my case it is properly set to something else and the results are
> consistent.
>
> If we were using automake instead of qmake the default would have been
> /usr/local.
> Not sure if the FreeBSD package explicitely set it, but maybe that's the
> problem if it doesn't. :-/
>
> The error message should provide a proper diagnostic as to which path it
> tries to open.
>
> >
> > And then:
> >
> > const char* libPath = LC_INSTALL_PREFIX"/share/leocad/";
>
>
> And this is passed to lcApplication::LoadPiecesLibrary() as
> LibraryInstallPath which is used only if the -l argument and the env are
> NULL. And instead of passing that to the lcPiecesLibrary::Load() method
> it appends "library.bin" and then pass it.
>
> So the default path is really LC_INSTALL_PREFIX"/share/leocad/library.bin"
>
>
> Hub
>
> _______________________________________________
> Leocad mailing list
> [email protected]
> https://list.gerf.org/listinfo/leocad
>
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to