Skip to content

Commit 3af4b8f

Browse files
committed
Try patchelf
1 parent 4ea2fa6 commit 3af4b8f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ jobs:
4242
- name: Run Unit Tests - Linux
4343
if: matrix.os == 'ubuntu-22.04'
4444
run: |
45+
patchelf --force-rpath --set-rpath '$$ORIGIN:$$ORIGIN/../node_modules/deps-qt-core-raub/bin-linux:$$ORIGIN/../node_modules/deps-qt-gui-raub/bin-linux:$$ORIGIN/../node_modules/deps-qt-qml-raub/bin-linux:$$ORIGIN/../node_modules/deps-qmlui-raub/bin-linux:$$ORIGIN/../../deps-qt-core-raub/bin-linux:$$ORIGIN/../../deps-qt-gui-raub/bin-linux:$$ORIGIN/../../deps-qt-qml-raub/bin-linux:$$ORIGIN/../../deps-qmlui-raub/bin-linux' $GITHUB_WORKSPACE/node_modules/deps-qmlui-raub/bin-linux/libqmlui.so
4546
LD_DEBUG=libs node .
4647
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/ci
4748
# LD_DEBUG=libs xvfb-run --auto-servernum npm run test-ci
48-
xvfb-run --auto-servernum npm run test-ci
49+
# xvfb-run --auto-servernum npm run test-ci
4950
5051
# - name: Run Unit Tests - MacOS
5152
# if: matrix.os == 'macos-14'

src/binding.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
'conditions': [
2525
['OS=="linux"', {
2626
'libraries': [
27+
'-lqmlui',
2728
"-Wl,-rpath,'$$ORIGIN'",
2829
"-Wl,-rpath,'$$ORIGIN/../node_modules/deps-qt-core-raub/bin-linux'",
2930
"-Wl,-rpath,'$$ORIGIN/../node_modules/deps-qt-gui-raub/bin-linux'",

0 commit comments

Comments
 (0)