Giter Site home page Giter Site logo

lewpeng / libswiftnav Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elfchief/libswiftnav

0.0 2.0 0.0 442 KB

Library for common functionality

License: GNU Lesser General Public License v3.0

CMake 1.48% Dockerfile 0.05% Makefile 0.06% C 95.28% C++ 2.49% Batchfile 0.03% Python 0.38% Shell 0.22%

libswiftnav's Introduction

Build Status

libswiftnav

Libswiftnav (LSN) is a platform independent library that implements GNSS utility functions for use by software-defined GNSS receivers or software requiring GNSS functionality. It is intended to be as portable as possible and is written in standards compliant C with no dependancies

LSN does not provide any functionality for communicating with Swift Navigation receivers. See libsbp to communicate with receivers using Swift Binary Protocol (SBP).

To checkout the library run the following commands in an appropriate directory

git clone [email protected]:swift-nav/libswiftnav.git

Which should checkout the source code

Build

To build the library, run the following commands from the LSN root directory - LSN depends on the latest xcode for MacOSX and cmake

mkdir ./build
cd ./build
cmake ../
make -j4

Build on Docker

The libswiftnav docker image is using a ECR-hosted base image swift-build that contains most swift build tools.

Get swift-build base image from ECR

To be able to pull this base image from ECR, you need to log into AWS (select the SSO-Build-User role) and then into ECR:

aws-google-auth -S 115297745755 -I C02x4yyeb -p default -a -u <username>@swift-nav.com
$(aws ecr get-login --no-include-email --region us-west-2 --registry-ids 571934480752)

Build the swift-build base image yourself (without ECR)

Alternatively to the AWS/ECR pull, you can build the base image yourself from the Dockerfile.base: (replace <tag> with the one used by Dockerfile's FROM statement, e.g. 2018-12-20)

docker build -t 571934480752.dkr.ecr.us-west-2.amazonaws.com/swift-build:<tag> modules/docker-recipes/swift-build

Build the libswiftnav image and run container

Now you can build and run the libswiftnav image with

docker-compose build libswiftnav
docker-compose run libswiftnav 

Run a shell in docker

make docker
  • Starts a shell in a container, with the workspace mounted as /mnt/workspace.

Run build in docker

make docker-build

Run clang-format

make docker-lint

libswiftnav's People

Contributors

nsirola avatar mbavaro avatar martin-swift avatar pgrgich avatar benjaminaltieri avatar kmdade avatar anth-cole avatar stiaszny avatar pmiettinen avatar scarcanague avatar adel-mamin avatar schniedergers avatar ericsenant avatar benjamin0 avatar mfine avatar

Watchers

James Cloos 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.