pkg icon indicating copy to clipboard operation
pkg copied to clipboard

Cross Compiling (WIN->ARM)

Open ByeongYeon opened this issue 8 years ago • 6 comments

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 pkg\lib-es5\index.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 ?

ByeongYeon avatar Jan 22 '18 01:01 ByeongYeon

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

Kaesebrot84 avatar Feb 13 '18 08:02 Kaesebrot84

Same issue, anyone have a solution?

DonovanBoddy avatar Jul 09 '18 10:07 DonovanBoddy

Same here. No solution?

JaneX8 avatar Oct 01 '18 22:10 JaneX8

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 <target_file> $ ./<target_file>

uds214125 avatar Dec 17 '18 07:12 uds214125

This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label

github-actions[bot] avatar Apr 26 '21 00:04 github-actions[bot]

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

github-actions[bot] avatar May 02 '21 00:05 github-actions[bot]