Giter Club home page Giter Club logo

zen-remote's Introduction

ZEN Remote

A library that implements the communication layer between Zen running on the PC and Zen Mirror running on the HMD.

This project will generate libraries for each of the client (Zen Mirror) and server (Zen). The client may run on Android, so the library for the client must be able to build from source with all dependencies.

Issue

Please report issues related to this repository to zwin-project / zen.

Build & Install

gRPC

Clone and build grpc-dev, using the v1.49.1 branch. The following assumes that you have cloned it to $MY_DIR/grpc-dev.

If you have already built grpc-dev, you can use it.

Clone

Clone the zen-remote repo and its submodules

Configuration

The following CMake variable can be set.

  1. ZEN_REMOTE_GRPC_SYSROOT(required)
    Specify a sysroot that contains headers, libraries, executables, etc. When cross-compiling for such as Android, those libraries and executables must be compiled for that target. It’s typically $MY_DIR/grpc-dev/native/Debug.

  2. ZEN_REMOTE_SERVER / ZEN_REMOTE_CLIENT
    Specify a boolean whether to build the server / client library. Default is both ON.

  3. ZEN_REMOTE_PROTOC_EXECUTABLE(optional)
    Specify the path to the protoc executable. The protoc specified here will be executed at build time, so please specify one that is executable on the host machine at build time, even if you cross-compile. If not specified, look for protoc in ZEN_REMOTE_GRPC_SYSROOT and the host machine.

  4. ZEN_REMOTE_GRPC_CPP_PLUGIN_EXECUTABLE(optional)
    Specify the path to the grpc_cpp_plugin executable. The rest is the same as protoc

  5. ZEN_REMOTE_REQUIRED_VERSION(optional)
    Specify the version of zen-remote you expect. We can do version checking, for example, when using zen-remote with add_subdirectory.

  6. ZEN_REMOTE_TEST_CLIENT(optional)
    Specify whether to build test-client or not. Default value is "ON"

You can set these variables via command line arguments or local.cmake

local.cmake
set(ZEN_REMOTE_GRPC_SYSROOT $ENV{MY_DIR}/grpc-dev/native/Debug CACHE STRING "")
set(ZEN_REMOTE_CLIENT OFF CACHE STRING "")

Build & Install

$ cmake -B build -G Ninja
$ cmake --build build
$ sudo cmake --install build

zen-remote's People

Contributors

aki-7 avatar koshieguchi avatar watasuke102 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.