Git Product home page Git Product logo

Comments (4)

clayrisser avatar clayrisser commented on July 19, 2024

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.

clayrisser avatar clayrisser commented on July 19, 2024

You can duplication this error from the node-gyp branch.

https://github.com/jamrizzi/node-gtk3/tree/node-gyp

from gtk-node.

clayrisser avatar clayrisser commented on July 19, 2024

I made some headway with node-gyp.

4abb538

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.

nodejs/node-gyp#1298

https://stackoverflow.com/questions/46354002/how-do-i-add-flags-after-input-and-output-specified-not-before-with-node-gyp

from gtk-node.

clayrisser avatar clayrisser commented on July 19, 2024

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

efbfd8f

from gtk-node.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.