Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

Error in node-gtk lib, after try run code #21

Closed
friktor opened this issue Feb 11, 2016 · 15 comments
Closed

Error in node-gtk lib, after try run code #21

friktor opened this issue Feb 11, 2016 · 15 comments

Comments

@friktor
Copy link

friktor commented Feb 11, 2016

Hi, I tried to use your library, but there was this error.

node: symbol lookup error: /home/anton/nodeGtk/node_modules/node-gtk/build/Release/node-gtk.node: undefined symbol: g_irepository_get_default

All libraries for the development of gtk installed. The assembly took place without problems. OS - Ubuntu 16.04 Gnome.

@WebReflection
Copy link
Owner

have you tried to sudo apt-get install npm gjs first?

@friktor
Copy link
Author

friktor commented Feb 16, 2016

the main shell is a gnome-shell, so gjs already in the system, and a standard set of nodejs already comes with npm

@WebReflection
Copy link
Owner

I'm on Gnome too. I have node 5, gjs, and if I npm install within this repo it works.

@kidwm
Copy link

kidwm commented Feb 17, 2016

have you tried to install libgirepository1.0-dev ?

@marphy-sk
Copy link

I have same problem.
I installed libgirepository1.0-dev, npm, node 5, gjs, node-gtk, gtk3.
node: symbol lookup error: /usr/lib/node_modules/node-gtk/build/Release/node-gtk.node: undefined symbol: g_irepository_get_default

@WebReflection
Copy link
Owner

I've just managed to do everything following instructions now published on the readme too.

# setup node v5
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -

# install dependencies
sudo apt-get install \
  build-essential \
  git \
  nodejs \
  gobject-introspection \
  libgirepository1.0-dev

# clone and build
git clone https://github.com/WebReflection/node-gtk.git
cd node-gtk
npm install

# how to verify from node-gtk folder
./examples/hello-gtk.js

@marphy-sk
Copy link

It same
node: symbol lookup error: $PATH/nodeApp/node-gtk/build/Release/node-gtk.node: undefined symbol: g_irepository_get_default

@WebReflection
Copy link
Owner

which version of ubuntu?

@marphy-sk
Copy link

i am using 15.10
Dňa 22.2.2016 4:31 PM používateľ "Andrea Giammarchi" <
notifications@github.com> napísal:

which version of ubuntu?


Reply to this email directly or view it on GitHub
#21 (comment)
.

@WebReflection
Copy link
Owner

please git pull --rebase and then npm install again, it should have been fixed.

Also there are notes for Ubuntu 16 LTS and nodejs 5 installation:
https://github.com/WebReflection/node-gtk#how-to-install-node-5x-in-ubuntu-16-lts

@marphy-sk
Copy link

Now is success, thenks .. Goog job

@WebReflection
Copy link
Owner

thanks, I'm waiting for @friktor to confirm it works now for him too so that we can close this bug.

@friktor
Copy link
Author

friktor commented Feb 24, 2016

@WebReflection hi, yes it worked, thanks for the answer

@friktor
Copy link
Author

friktor commented Feb 24, 2016

@WebReflection While the project is under development, please regularly publish fresh package on npm, when the bug is solved.

@WebReflection
Copy link
Owner

I'm not sure anything will work from npm, which is why I should rather update the README ;-)

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

No branches or pull requests

4 participants