Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot open shared object file #1025

Open
abtye opened this issue Sep 10, 2023 · 0 comments
Open

cannot open shared object file #1025

abtye opened this issue Sep 10, 2023 · 0 comments

Comments

@abtye
Copy link

abtye commented Sep 10, 2023

Describe the bug
I cloned the QuickStart project and wanted to run it, but because I am in China, building the development environment on my local computer may fail due to network issues. Therefore, after building it on GitPod, I downloaded the dist folder locally, but an error occurred during execution.

I have configured some environment variables

export QT_INSTALL_DIR=/home/lin/Qt
export QT_LINK_MIRROR=https://mirrors.ustc.edu.cn/qtproject
export Qt5_DIR=/home/lin/Qt/5.15.2
export CMAKE_PREFIX_PATH=/home/lin/Qt/5.15.2/gcc_64/lib/cmake/Qt5
node:internal/modules/cjs/loader:1340
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: libQt5Svg.so.5: cannot open shared object file: No such file or directory
    at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at eval (webpack://nodegui-starter/./node_modules/@nodegui/nodegui/build/Release/nodegui_core.node?:1:18)
    at ./node_modules/@nodegui/nodegui/build/Release/nodegui_core.node (/home/lin/下载/dist/index.js:2632:1)
    at __webpack_require__ (/home/lin/下载/dist/index.js:3139:42)
    at eval (webpack://nodegui-starter/./node_modules/@nodegui/nodegui/dist/lib/utils/addon.js?:3:15)
    at ./node_modules/@nodegui/nodegui/dist/lib/utils/addon.js (/home/lin/下载/dist/index.js:2549:1) {
  code: 'ERR_DLOPEN_FAILED'
}

Node.js v18.17.1

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/nodegui/nodegui-starter.git
  2. npm i
  3. npm run build
  4. Download all files in the dist directory
  5. npx qode ./dist/index.js
  6. And then I reported an error

Expected behavior
I hope it can run

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux
  • NodeGUI version: 0.57.1
  • Fedora Linux 38 (Workstation Edition) x86_64

Additional context
nothing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant