@@ -49,7 +49,11 @@ Adjust `binding.gyp`:
4949 ' conditions' : [
5050 [
5151 ' OS=="linux" or OS=="mac"' , {
52- ' libraries' : [' -Wl,-rpath,<(qt_core_bin):<(qt_gui_bin):<(qt_qml_bin)' ],
52+ ' libraries' : [
53+ ' -Wl,-rpath,<(qt_core_bin)' ,
54+ ' -Wl,-rpath,<(qt_gui_bin)' ,
55+ ' -Wl,-rpath,<(qt_qml_bin)' ,
56+ ],
5357 }
5458 ],
5559 [
@@ -76,22 +80,6 @@ Adjust `binding.gyp`:
7680 ],
7781 }
7882 ],
79- [
80- ' OS=="mac"' , {
81- ' libraries' : [
82- ' <(qt_core_bin)/QtCore' ,
83- ' <(qt_core_bin)/QtNetwork' ,
84- ' <(qt_core_bin)/QtDBus' ,
85- ' <(qt_gui_bin)/QtGui' ,
86- ' <(qt_gui_bin)/QtWidgets' ,
87- ' <(qt_qml_bin)/QtQml' ,
88- ' <(qt_qml_bin)/QtQuick' ,
89- ' <(qt_qml_bin)/QtQuickControls2' ,
90- ' <(qt_qml_bin)/QtQuickTemplates2' ,
91- ' <(qt_qml_bin)/QtQuickWidgets' ,
92- ],
93- }
94- ],
9583 ],
9684 },
9785```
@@ -124,17 +112,6 @@ Preload libraries:
124112 dlopen("libQt5QuickControls2.so.5", RTLD_LAZY);
125113 dlopen("libQt5QuickTemplates2.so.5", RTLD_LAZY);
126114 dlopen("libQt5QuickWidgets.so.5", RTLD_LAZY);
127- #elif __APPLE__
128- dlopen("QtCore", RTLD_LAZY);
129- dlopen("QtNetwork", RTLD_LAZY);
130- dlopen("QtDBus", RTLD_LAZY);
131- dlopen("QtGui", RTLD_LAZY);
132- dlopen("QtWidgets", RTLD_LAZY);
133- dlopen("QtQml", RTLD_LAZY);
134- dlopen("QtQuick", RTLD_LAZY);
135- dlopen("QtQuickControls2", RTLD_LAZY);
136- dlopen("QtQuickTemplates2", RTLD_LAZY);
137- dlopen("QtQuickWidgets", RTLD_LAZY);
138115 #endif
139116```
140117
0 commit comments