Skip to content

About

编译libwebsockets到Android

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Build libwebsockets for android

Build Status

编译libwebsockets到Android平台,arm64架构。

编译环境

  • Ubuntu 16.04.4 LTS
  • Docker version 17.12.1-ce, build 7390fc6

编译步骤

make

相关源码和工具

  • android-ndk-r13b
  • libwebsockets v3.0.0

注意事项

  • Android平台不支持带版本号的so库,需要改动CMakeLists.txt,主要将CMakeLists.txt的如下语句注释

    if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID MATCHES "Clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
      foreach(lib ${LWS_LIBRARIES})
        set_target_properties(${lib}
          PROPERTIES
          SOVERSION ${SOVERSION})
      endforeach()
    endif()

辅助工程

About

编译libwebsockets到Android

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages