Skip to content

Mobile application to send Acceleration, Orientation, Geolocation and Images over WebSocket

Notifications You must be signed in to change notification settings

shanmukhananda/SensorServer

Repository files navigation

SensorServer

Mobile application to send Acceleration, Orientation, Geolocation and Images over WebSocket

Build Status

Windows
Build Status

Tools Required

Installation

  • Visual Studio

    • Launch vs_community*.exe
    • Select below Workloads
      • Desktop development with C++
      • Linux development with C++
    • Select below Individual components
      • Git for Windows
      • Anaconda3 64-bit (5.2.0)
  • Qt

    • Launch qt-opensource-windows-x86-5.11.2.exe
    • Select Below components during component selection
      • Qt > Qt 5.11.2 > MSVC 2017 64-bit
      • Qt > Qt 5.11.2 > Android ARMv7
      • Qt > Tools > Qt Creator 4.7.1 CDB Debugger Support
  • Android NDK

    • Extract android-ndk-r17c-windows-x86_64.zip to any folder
    • Example C:\Android\android-ndk-r17c, sub-folders like prebuilt, sysroot should come under this directory
  • Android SDK

    • Extract sdk-tools-windows*.zip to any folder
    • Example C:\Android\sdk-tools-windows, sub-folders like tools should come under this directory
    • Launch Command Prompt on this extracted directory C:\Android\sdk-tools-windows
    • Run tools\bin\sdkmanager.bat "platform-tools" "platforms;android-28" "build-tools;28.0.3"

Update Environment Variables

  • Path
    • Below executable's directory need to be appended to Path
      • clang-format.exe (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\vcpackages)
      • cmake.exe (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin)
      • git.exe (C:\Program Files\Git\cmd)
      • java.exe (C:\Program Files\Java\jdk1.8.0_192\bin)
  • ANDROID_NDK_HOME=C:\Android\android-ndk-r17c
  • ANDROID_SDK_HOME=C:\Android\sdk-tools-windows
  • JAVA_HOME=C:\Program Files\Java\jdk1.8.0_192
  • QTDIR=C:\Qt\Qt5.11.2
  • QTKITS=C:\Qt\Qt5.11.2\5.11.2

Build

Steps to Build for Windows and Android

  1. Build third party dependencies using scripts\bootstrap.py --target windows (or android)
  2. Build for MSVC 2017 or Android target using scripts\build.py --target windows (or android)

Miscellaneous

  • Clang code format scripts\detail\code_format.py

Issues

  • QTKITS environment variable is required because msvc2017_64 is not installed under QTDIR root directory by the installer
  • scripts\detail\code_format.py might generate exception while formatting using YAPF, this is a known issue if f-strings are used
  • While sending camera images over socket below error is observed. Reason is UNKNOWN
    W CameraBase: Camera service died!
    W CameraBase: mediaserver's remote binder Camera object died
    E Camera: Error 100
    

About

Mobile application to send Acceleration, Orientation, Geolocation and Images over WebSocket

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published