From e8f3b904205a8863c2fe9b0d1b020b27feb0c834 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Tue, 19 Nov 2013 16:58:16 +0100 Subject: Fix the dyld error when running examples and tests on Mac. Make sure that the install_name is set properly when linking the core library. It would normally be possible to set this to <(PRODUCT_DIR) and let gyp handle this, but this isn't supported (see gyp.XcodeSettings.GetInstallName) so let qmake resolve the path. This should be removed to use something relative to @loader_path that would resolve this path to the Qt module libraries once we have proper installation logic in place for the core library. Change-Id: Id617afdf95c4aede6802e55b05deffe3218be82e Reviewed-by: Andras Becsi --- lib/lib.pro | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/lib.pro') diff --git a/lib/lib.pro b/lib/lib.pro index 4eb076467..682388217 100644 --- a/lib/lib.pro +++ b/lib/lib.pro @@ -9,6 +9,11 @@ TEMPLATE = lib TARGET = Qt5WebEngineCore +# gyp sets the default install name to /usr/local/lib and we need the module libraries to +# know its install_name so that they can let the dynamic linker load the core library. +# FIXME: Remove this and put it in qtwebengine.gypi once we can use a relative path to @loader_path. +macx: GYP_DYLIB_INSTALL_NAME_BASE = $$getOutDir()/$$getConfigDir() + QT += qml quick QT_PRIVATE += qml-private quick-private gui-private core-private qtHaveModule(v8): QT_PRIVATE += v8-private -- cgit v1.2.3