Skip to content

mailfcly/libmodbus-for-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libmodbus for android

Libmodbus for android is a set of tools to compile libmodbus library (http://github.com/stephane/libmodbus) for the Android platform.

To compile libmodbus for android you may use one of the following NDKs:

  • other SDK is not tested yet. you can help =)

Dependencies

Usage

Export environment variable ANDROID_NDK=/absolute/path/to/the/android-ndk

./build-android.sh

While working in cmake-gui to select the installation directory, and other settings different from default settings.

Troubleshooting

In case you encounter bunch of linker errors when building your app with libmodbus, this might help:

NDK 7 (CrystaX)

Add -lgnustl_static AFTER all boost libraries to the LOCAL_LDLIBS line in Android.mk. Example:

LOCAL_LDLIBS += lmodbus -lgnustl_static

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 84.2%
  • C 10.5%
  • Shell 5.3%