Pkg: Cross Compiling (WIN->ARM)

Created on 22 Jan 2018  路  4Comments  路  Source: vercel/pkg

Hello~!

I am trying to automate the building and deploying process from WINDOWS to a ARMv7.

Currently I am developing on Windows, deploying the source code to ARMv7 and compiling there, since CPU cross compilation is not available.

I find the pkglib-es5index.js and print __target3_

pkg test.js -t node8-linux-armv7

{ nodeRange: 'node8',
platform: 'linux',
arch: 'armv7',
output: 'C:\Users\bro\test',
forceBuild: false,
fabricator:
{ nodeRange: 'node8',
platform: 'win',
arch: 'armv7',
forceBuild: false } }

Error! 404 Not Found
https://github.com/zeit/pkg-fetch/releases/download/v2.3/uploaded-v2.3-node-v8.0.0-win-armv7

Can I compiling this in windows ?

Most helpful comment

using system architecture x64, x86, etc.

When I changed : armv7 to x64 , it working and creating.

pkg . --target=node8-linux-x64 --debug

Install the binary using

$ chmod +x
$ ./

All 4 comments

Same here.

pkg ./.tmp/server/app.js -c package.json -t node8-linux-armv7

prints

> [email protected]
> Fetching base Node.js binaries to PKG_CACHE_PATH
  fetched-v8.9.0-win-armv7     [                    ] 0%
> Error! 404 Not Found
  https://github.com/zeit/pkg-fetch/releases/download/v2.5/uploaded-v2.5-node-v8.9.0-win-armv7
> Asset not found by direct link:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-win-armv7"}
> Not found in GitHub releases:
  {"tag":"v2.5","name":"uploaded-v2.5-node-v8.9.0-win-armv7"}
> Building base binary from source:
  built-v8.9.0-win-armv7
> Error! Not able to build for 'armv7' here, only for 'x64'

Seems related to #285

Same issue, anyone have a solution?

Same here. No solution?

using system architecture x64, x86, etc.

When I changed : armv7 to x64 , it working and creating.

pkg . --target=node8-linux-x64 --debug

Install the binary using

$ chmod +x
$ ./

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peterjwest picture peterjwest  路  3Comments

hellower picture hellower  路  3Comments

gpip picture gpip  路  3Comments

erikd picture erikd  路  3Comments

ydubois-fr picture ydubois-fr  路  4Comments