• Stars
    star
    148
  • Rank 249,983 (Top 5 %)
  • Language
    C++
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple ntrip caster/client/server example programs, using the NTRIP2.0 protocol

Ntrip

Simple NTRIP caster/client/server example programs, support the NTRIP 1.0/2.0 protocol;

Quick Start

This assumes you are running Ubuntu 16.04

Clone and run the build:

$ git clone https://github.com/hanoi404/ntrip && cd ntrip
$ make all

First step, run the ntrip_caster_exam:

$ ./ntrip_caster_exam

Second step, run the ntrip_server_exam:

$ ./ntrip_server_exam

Third step, run the ntrip_client_exam:

$ ./ntrip_client_exam

After the above steps are completed, you can see that the example data sent by NtripServer flows to NtripClient through NtripCaster.

CMake

Linux

Configure and compile:

$ mkdir build && cd build
$ cmake .. -DNTRIP_BUILD_EXAMPLES=ON
$ make

Output executable file:

build/examples/ntrip_caster_exam
build/examples/ntrip_client_exam
build/examples/ntrip_client_to_ntrip_server_exam
build/examples/ntrip_server_exam

Windows

VS2019

Configure and compile:

$ mkdir build && cd build
$ cmake .. -G "Visual Studio 16" -DNTRIP_BUILD_EXAMPLES=ON
$ cmake --build . --config Release

Or open build/ntrip.sln with VS2019 after the configuration is complete.

Output executable file:

build/examples/Release/ntrip_caster_exam.exe
build/examples/Release/ntrip_client_exam.exe
build/examples/Release/ntrip_client_to_ntrip_server_exam.exe
build/examples/Release/ntrip_server_exam.exe

MinGW

Configure and compile:

$ mkdir build && cd build
$ cmake -G "Unix Makefiles" .. -DNTRIP_BUILD_EXAMPLES=ON
$ make

Output executable file:

build/examples/ntrip_caster_exam
build/examples/ntrip_client_exam
build/examples/ntrip_client_to_ntrip_server_exam
build/examples/ntrip_server_exam

for using NtripCaster, Add configuration option -DNTRIP_BUILD_CASTER=ON.