diff --git a/ground/gcs/src/library.pri b/ground/gcs/src/library.pri index 3120d28ce..a57a8f308 100644 --- a/ground/gcs/src/library.pri +++ b/ground/gcs/src/library.pri @@ -19,6 +19,7 @@ macx { } else { QMAKE_RPATHDIR = $$shell_quote(\$$ORIGIN) QMAKE_RPATHDIR += $$shell_quote(\$$ORIGIN/$$relative_path($$GCS_QT_LIBRARY_PATH, $$GCS_LIBRARY_PATH)) + QMAKE_RPATHDIR += $$shell_quote(\$$ORIGIN/$$relative_path($$GCS_LIBRARY_PATH/osg, $$GCS_LIBRARY_PATH)) include(rpath.pri) target.path = /$$GCS_LIBRARY_BASENAME/gcs diff --git a/ground/gcs/src/plugin.pri b/ground/gcs/src/plugin.pri index ea4764a9e..33548c23f 100644 --- a/ground/gcs/src/plugin.pri +++ b/ground/gcs/src/plugin.pri @@ -31,6 +31,7 @@ macx { QMAKE_RPATHDIR = $$shell_quote(\$$ORIGIN) QMAKE_RPATHDIR += $$shell_quote(\$$ORIGIN/$$relative_path($$GCS_LIBRARY_PATH, $$DESTDIR)) QMAKE_RPATHDIR += $$shell_quote(\$$ORIGIN/$$relative_path($$GCS_QT_LIBRARY_PATH, $$DESTDIR)) + QMAKE_RPATHDIR += $$shell_quote(\$$ORIGIN/$$relative_path($$GCS_LIBRARY_PATH/osg, $$DESTDIR)) include(rpath.pri) }