[Haskell-cafe] build error using hsqml

Robin KAY komadori at gekkou.co.uk
Sun Mar 27 13:23:18 UTC 2016


Dear Fabien,

On Sun, Mar 27, 2016, at 09:49 AM, Fabien R wrote:
> I compiled Qt5 from sources. This file is in
> /media/travail/debian-sources/qt5/qtbase/lib/ .
> Is the path correctly set in the cabal description file ?

I think your problem is that pointing the compiler to your local Qt 
libraries at build time does not necessarily mean that the dynamic 
linker can find them at run time. Most expediently, try adding the your 
local lib directory to the LD_LIBRARY_PATH environment variable.

You can bake the runtime search path into your executable by passing the 
-rpath flag to the linker. I suppose that, since your Qt install 
location isn't on the system global library search path, strictly 
speaking its pkg-config files should contain the correct -rpath flags so 
that everything links correctly at runtime. Perhaps Qt's build can be 
configured to do that.

Regards,
-- 
Robin KAY
http://www.gekkou.co.uk/


More information about the Haskell-Cafe mailing list