Comments (4)
I tried to compile with node-gyp, but I get a Dynamic Linking Error undefined symbol when I try and run the application. It compiles just fine but seems to fail at runtime. Anyone have any clues to what is going on?
/home/jamrizzi/Downloads/node-gtk3/node_modules/ffi/lib/dynamic_library.js:74
throw new Error('Dynamic Linking Error: ' + err)
^
Error: Dynamic Linking Error: /home/jamrizzi/Downloads/node-gtk3/build/Release/window.so: undefined symbol: gtk_window_new
at new DynamicLibrary (/home/jamrizzi/Downloads/node-gtk3/node_modules/ffi/lib/dynamic_library.js:74:11)
at Object.Library (/home/jamrizzi/Downloads/node-gtk3/node_modules/ffi/lib/library.js:45:12)
at Object.<anonymous> (/home/jamrizzi/Downloads/node-gtk3/lib/window/index.js:26:28)
at Module._compile (module.js:573:30)
at loader (/home/jamrizzi/Downloads/node-gtk3/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/jamrizzi/Downloads/node-gtk3/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
error Command failed with exit code 1.
from gtk-node.
You can duplication this error from the node-gyp branch.
https://github.com/jamrizzi/node-gtk3/tree/node-gyp
from gtk-node.
I made some headway with node-gyp.
It turns out that the problem is with the order of the cflags. The cflags are supposed to be placed after the input/output files are specified, but node-gyp does it in the wrong order.
from gtk-node.
I had to create a custom patch for node-gyp in order to get this to work. It works though!
https://github.com/jamrizzi/node-gyp/commit/f47939c6d0961ac99ed9288086a7589223a5da07
from gtk-node.
Related Issues (7)
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 gtk-node.