Mobile application to send Acceleration, Orientation, Geolocation and Images over WebSocket
| Windows |
|---|
- Android NDK (Revision 17c)
- Android SDK
- CMake (3.12.4)
- Git (2.19.1)
- JDK (8u192)
- Qt (5.11.2)
- Visual Studio (2017 Community)
-
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)
- Launch
-
Qt
- Launch
qt-opensource-windows-x86-5.11.2.exe - Select Below components during component selection
Qt > Qt 5.11.2 > MSVC 2017 64-bitQt > Qt 5.11.2 > Android ARMv7Qt > Tools > Qt Creator 4.7.1 CDB Debugger Support
- Launch
-
Android NDK
- Extract
android-ndk-r17c-windows-x86_64.zipto any folder - Example
C:\Android\android-ndk-r17c, sub-folders likeprebuilt,sysrootshould come under this directory
- Extract
-
Android SDK
- Extract
sdk-tools-windows*.zipto any folder - Example
C:\Android\sdk-tools-windows, sub-folders liketoolsshould 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"
- Extract
Path- Below executable's directory need to be appended to
Pathclang-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)
- Below executable's directory need to be appended to
ANDROID_NDK_HOME=C:\Android\android-ndk-r17cANDROID_SDK_HOME=C:\Android\sdk-tools-windowsJAVA_HOME=C:\Program Files\Java\jdk1.8.0_192QTDIR=C:\Qt\Qt5.11.2QTKITS=C:\Qt\Qt5.11.2\5.11.2
Steps to Build for Windows and Android
- Build third party dependencies using
scripts\bootstrap.py --target windows (or android) - Build for MSVC 2017 or Android target using
scripts\build.py --target windows (or android)
- Clang code format
scripts\detail\code_format.py
QTKITSenvironment variable is required becausemsvc2017_64is not installed underQTDIRroot directory by the installerscripts\detail\code_format.pymight 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