Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

apm install error - plain npm works #294

Closed
mensinda opened this issue Feb 11, 2015 · 6 comments
Closed

apm install error - plain npm works #294

mensinda opened this issue Feb 11, 2015 · 6 comments

Comments

@mensinda
Copy link

I want to write a plugin for atom and have a dependency. Unfortunately ffi (a subdependency) fails to build with apm while npm install ffi works.

As far as I know apm calls npm with some command line options, setting the chromium headers. Is it possible to use the default headers?

apm 0.136.0
npm 2.3.0
node 0.10.35
python 2.7.9
git 2.3.0

OS: Arch Linux (3.18.6-1-ARCH)

@kevinsawicki
Copy link
Contributor

Is it possible to use the default headers?

For a native library to load within Atom or Atom Shell, it needs to be compiled against the v8 headers that Atom Shell ships with.

Can you include the output of the build error you are seeing?

@mensinda
Copy link
Author

@kevinsawicki
Copy link
Contributor

Looks like an issue with the nan version being used.

I think this might be addressed once nodejs/nan#276 ships.

@mensinda
Copy link
Author

Upgrading nan fixed some compile errors but compiling ffi still fails.

It seems to be a ffi issue node-ffi/node-ffi#187.

@anaisbetts
Copy link
Contributor

@mensinda To work around this, I created some temporary npm packages:

  • ffi-atom-shell
  • ref-atom-shell
  • ref-struct-atom-shell
  • ref-array-atom-shell

@mensinda
Copy link
Author

@paulcbetts Thank you! Your packages are working for me.

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

3 participants