How to setting the binding.gyp file or cMake.js to use external libraries?

Open
#175 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake, cpp, electron, nodejs

Research direction

The issue mentions binding.gyp, cmake.js, node-gyp, and cmake-js, but does not name an example file or a failing build to reproduce. Start by reviewing the existing addon build examples and the referenced build-tool documentation, then define the supported external-library setup and cross-platform outcome before making a change.

Written by the indexing model from the issue text.

Description

Hi folks!

I'm trying to use the powerful C++ Eigen Library(https://eigen.tuxfamily.org/index.php?title=Main_Page) or Armadillo Library(http://arma.sourceforge.net/) through NodeJS as a Addon for a Desktop Application built in Electron for a graduation final project in Engineering.

I'm trying to use https://github.com/nodejs/node-gyp or https://github.com/cmake-js/cmake-js to build it, but until now I couldn't do that. I don't know exactly how I have to linking the Eigen or Armadillo Libraries on setting files (the biding.gyp for example).

Have anyone done something like this ?
Could someone help me please?

OBS: My development is on Windows but the application is a cross-plataform(Linux, Mac, Windows).

Thanks so much in advance!

Dominant language
C++
Stars
2.6k
Forks
602
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nodejs/node-addon-examples

All issues in nodejs/node-addon-examples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.