jaredly / reprocessing-example-cross-platform

A boilerplate example for getting cross-platform reprocessing games off the ground
51 stars 6 forks source link

Won't install dependencies on linux platform #2

Open skrat opened 6 years ago

skrat commented 6 years ago

reprocessing-scripts depends on ios-deploy which won't install on linux.

~/D/reprocessing-example-cross-platform (mstr) npm i
npm WARN reprocessing-example-cross-platform@1.0.3 No repository field.

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for ios-deploy@1.9.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/skrat/.npm/_logs/2018-04-10T19_36_59_467Z-debug.log

Also, the article doesn't mention anything about getting the rsb command which apparently is needed.

TomiS commented 5 years ago

I managed to get the web version running on Ubuntu 18.04. I'm using a fork of the reprocessing-scripts: https://github.com/TomiS/reprocessing-scripts that completely removes ios dependencies and also attempts to change android ndk to point to linux binaries (unsuccessfully yet, though).

To get web version running I had to do following:

I also noticed that this indeed does not work with yarn for some reason (did not dig deeper).

I also tried to run android unsuccessfully. I installed .ocaml-cross-mobile stuff correctly and fetched correct android-ndk binaries (I think). However it still tries to refer to darwin files even if I fixed the path in Android.re inside reprocessing-scripts. Didn't find other references yet (except one makefile, is that it?)... weird.

the1mills commented 5 years ago

yep I got this:

oleg@xps:~/codes/cloned/reprocessing-example-cross-platform$ npm i
npm WARN reprocessing-example-cross-platform@1.0.3 No repository field.

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for ios-deploy@1.9.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/oleg/.npm/_logs/2019-01-02T20_34_14_256Z-debug.log