Skip to content

How to do a static build? #551

Open
Open
@piranna

Description

@piranna

I'm trying to do a cross-compile static build from scratch of node-canvas (including download automatically the Cairo library) to be used on NodeOS, but I'm not able to make it work. According to #349 there should be support for static builds just by setting all the variables to false, but I get errors about cairo.h is not available:

In file included from ../src/CanvasGradient.cc:9:0:
../src/Canvas.h:19:25: fatal error: cairo/cairo.h: No such file or directory
compilation terminated.

The pull-request I put before seems to have support to detect automatically if Cairo is available on the system, and if not, download de dependencies source code and build a static Cairo library, but I don't know if this functionality is already available on node-canvas (and how to enable it), or if not, the reason why the pull-request was not finally accepted... :-/

/cc @ReneHollander

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions