Git Product home page Git Product logo

tcn-open-static-lib's Introduction

tcn-open-static-lib

This is the static library (linux-x86) of TCNOpen project for train communication. Train real time data protocol TRDP is the major protocol in train communication network.

Usage

  1. Clone the repository, put the repository under your project's include folder.
  2. In your code, include the needed librarys like this:
#include <tcn-open-static-lib/api/trdp_if_light.h>
#include <tcn-open-static-lib/api/tau_marshall.h>
#include <tcn-open-static-lib/vos/api/vos_utils.h>
...
  1. Then you are able to use the functions in the library, here you could find some examples codes.
  2. To compile your project with those libraries, link the static library in CMakeLists.txt file like this:
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")

add_library(${PROJECT_NAME} STATIC ${PROJECT_SOURCE})

target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS} ${PROJECT_SOURCE_DIR}/include/tcn-open-static-lib/libtrdp.a)

Build the static library yourself

  1. Clone source repository: TCNOpen.
  2. cd TCNopen/trdp/config; Copy your needed configuration from *_config to config.mk and save.
  3. cd ..; make
  4. Find the generated static library from trdp/bld/output.
  5. Put the *.a files and source code files into a folder as the target library to use.

Resources

tcn-open-static-lib's People

Contributors

mengwoods avatar

Stargazers

 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.