google / cloud-print-connector

Google Cloud Print Connector
BSD 3-Clause "New" or "Revised" License
764 stars 184 forks source link

is it possible to compile this for OpenWRT ? #467

Open cypriotxx opened 4 years ago

cypriotxx commented 4 years ago

is it possible to compile this for OpenWRT ?

Thank you so much

sxiii commented 4 years ago

I am doing it right now. I hope so at least.

Based on the debian package; I've found this dependencies:

I will test it out and tell if it works @cypriotxx

EDIT: resulting image size is 112 mb for kernel and 124 mb for squashfs... So this probably can't go to device; only to emulator.

sxiii commented 4 years ago

Oh @cypriotxx I also found absolutely similar closed github issue from @jacobmarble:

It should, and you're welcomed to try. Don't try to cross-compile from your x86 machine, as we use C libraries. You'll have to compile Go on the OpenWRT/MIPS device, then compile the connector. Steps here (see the footnote at the bottom about compiling Go): https://github.com/google/cups-connector/wiki/Build-from-source

So, probably we need also to add golang to list of dependencies.

sxiii commented 4 years ago

I found also this repo and I am testing if it will compile and support go successfully, after that I will check if it will compile and support the cloud-print-connector accordingly:

EDIT: Actually, the project is pretty old. My problem with it was that it does not have a router architecture that I need (Lantiq XRX200). So I had to reverse back to main openwrt code. Now I am experimenting with go support there.