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

Reply via email to