Hamlib/android
Mike Black W9MDB 9aade8de3f Add config.h to include/hamlib so HAVE_PTHREAD is available if needed
https://github.com/Hamlib/Hamlib/issues/947
2022-02-03 22:31:42 -06:00
..
Makefile.am
README.android Update README.android 2021-09-07 23:07:41 +08:00
config.h
hamlib-compile
ltdl.c Add config.h to include/hamlib so HAVE_PTHREAD is available if needed 2022-02-03 22:31:42 -06:00
ltdl.h

README.android

Update Note:
These Android NDK scripts can compile the 4.3 version of hamlib normally, but they may be corrupted as the master branch code is updated. If you encounter compile-time errors, please try to fix them, or choose to recompile with version 4.3.

This is android port of hamlib
(C) 2012 Ladislav Vaiz <ok1zia@nagano.cz>

Notes:
* use hamlib-compile script to build hamlib for android
* script deletes file include/config.h, it conflicts with android/config.h
* android port implements ltdl interface and calls dlfcn functions directly
* RPC is not present on android
* ARS backend is compiled without pthreads because of deprecated pthread_cancel
* I don'k know how to connect to real radio:
** Bluetooth API is available only under Java, not from native code
** FTDI USB to serial converter driver is not included in standard kernel. It should work on rooted device.
** But NET rigctl works fine
* Backends are named libhamlib-vendor.so, I don't know how to include libraries without lib prefix into APK
* Check the location of libusb.h and define the corresponding macro accordingly in config.h.
* Had to build without libusb as ndk did not contain it
** comment out HAVE_LIBUSB_H in android/config.h if you get libusb errors

Happy hacking
73 Lada, OK1ZIA