SimulPiscator / AirSane

Publish SANE scanners to MacOS, Android, and Windows via Apple AirScan.
GNU General Public License v3.0
247 stars 26 forks source link

OpenWRT build? #29

Closed polikasov closed 4 years ago

polikasov commented 4 years ago

Hello! Is it possible to build AirSane for OpenWRT? I'm currently using sane, but I had to use command line to scan. It would be great if I could use my scanner via default "Image Capture" OS X app

SimulPiscator commented 4 years ago

I haven't tried but I don't see a reason why not, once you have the dependencies in place. libjpeg and libpng, libavahi-client and libusb1 should be available in OpenWRT.

polikasov commented 4 years ago

Yes, they are available. I'm not really experienced with Makefiles, so I need some help to make it possible to build for OpenWRT.

SimulPiscator commented 4 years ago

A simple makefile should do. You need compiler flags to enable C++11 support, otherwise it's just straight compiling all of the .cpp files and linking them together. I'm not particularly good at makefiles either, otherwise I would write one for you.

polikasov commented 4 years ago

Wow, I did it! If I manage to make it fully working, I'll post details.

SimulPiscator commented 4 years ago

Cool!

polikasov commented 4 years ago

Here's my result: https://github.com/tbaela/AirSane-openwrt

SimulPiscator commented 4 years ago

Looks great, thank you!

SimulPiscator commented 4 years ago

I noticed that you changed the default port from 8090 to 8089 in the OpenWRT build. If you are aware of any collisions on port 8090, I would consider changing to port 8089 in the AirSane sourcecode as well.

polikasov commented 4 years ago

I noticed that you changed the default port from 8090 to 8089 in the OpenWRT build. If you are aware of any collisions on port 8090, I would consider changing to port 8089 in the AirSane sourcecode as well.

Just forgot to change it back after testing config file :)

SimulPiscator commented 4 years ago

Ah, ok. Thanks.