Comments (3)
The only way I found working is to link to absolute path, and put an extra copy of the shared library there 😮💨
from pkg.
I "solved" it by copying the native dependencies next to the executable, and running the executable through a separate script with an LD_PRELOAD env var set. Obviously this only works on Linux (Mac too?).
from pkg.
I found the dlopen code in the other issues. So I hack ed the code a little bit to extract my shared lib (as asset) to same path of the dependent native addon. It's hard coded but avoid distributing extra files though..
from pkg.
Related Issues (20)
- internal spawnSync error? HOT 2
- v8's takeCoverage method cannot be used
- Multiple entry points HOT 7
- Not working with sharp again "Cannot include directory %1 into executable." HOT 7
- test script crashes with bad invocation of npx HOT 4
- Node 18.15 as Error HOT 3
- Unexpected character in app icon HOT 3
- Is it possible to use a specific node version (16.8) in Vercel?
- Reading the root of a drive on windows results extra 'snapshot' directory HOT 4
- Cannot find worker js file included as an asset on Windows HOT 3
- [email protected] "No available node version satisfies node16.14.2" HOT 4
- how to run linux compiled node.js script in linux? i dont know the commands HOT 3
- It seems that pkg is not compatible with Axios! HOT 3
- Better error message than "AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value"
- error -4096??? HOT 1
- Strange exe crash because of "usb" library
- `link-module-alias` for Nodejs Javascript project (not Typescript) HOT 2
- Files packaged with code containing pupeteer-core 20.4.0 or higher cannot be executed HOT 9
- Pkg node version binary is different than pkg fetch node version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkg.