Skip to content

Build for window fail on Mac #46

Closed

Description

@jianfenkezhan

node: v12.13.x
electron: v8.2.5
Mac: macOS Catalina v10.15.5

@journeyapps/sqlcipher/lib/binding/electron-v8.2-win32-x64/node_sqlite3.node is not a valid Win32 application

Activity

  1. rkistner commented on Sep 23, 2020

    @rkistner
    Member

    It is not currently supported to cross-compile.

    The next version will include prebuilt binaries that should work on electron 8.2.x.

  2. jianfenkezhan commented on Sep 25, 2020

    @jianfenkezhan
    Author

    Thanks for your reply really! And then, I want to know the next version can support to cross-compile?
    Anyway, thanks again, and I am waiting....

  3. rkistner commented on Sep 25, 2020

    @rkistner
    Member

    I've never tested it, but it should be possible to cross-compile with electron when pre-built binaries are used. The latest release (5.0.0) uses N-API, which means you should be able to get a pre-built binary for any supported Electron or Node version.

    If it still doesn't work, check that the architecture of the library matches your application. The "not a valid Win32 application" error is common if there is a mismatch, e.g. a 32-bit application attempting to use a 64-bit library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions