GithubHelp home page GithubHelp logo

cpcos's Introduction

cpcos

CPCOS - Cross-Platform C++ Open-source Starter Project

This project aims to benifit C++ developers by providing a ready-to-start environment which

  1. integrates popular open-source libraries with sample code
  2. is able to compile under the 3 main PC platform - Windows, Linux (Ubuntu) and MacOS
  3. can be cross-compiled for embedded platform (i.e. embedded Linux for arm) within a docker container

Requirements

  1. conan
  2. docker (optional, for cross-compile only)

Quick Start

  • build for local machine (tested on OSX and Linux only) $ ./build.sh
  • cross build for {i386, arm32v7} linux
    1. create docker container for target environment (for 1st time only) $ ./create_docker_image_arm32v7.sh # arm (ex. rpi) $ ./create_docker_image_i386.sh # i386
    2. enter docker environment $ ./run_docker_arm32v7.sh # arm $ ./run_docker_i386.sh # i386
    3. build the project just like local environment $ ./build.sh
  • (optional) apply pre-commit
    • install pre-commit (see instructions)
    • setup the project (only required once) $ pre-commit install

Introduction

Software development with C and C++ usually requires 3rd-party libraries, which save developers a lot of time.

However, playing with 3rd-party libraries is still painful since there're too many choices for the same feature. To evaluate a 3rd-party library, developers should read the documents, sample code and better to test it before introduce into current project -- the evaluation process takes a lot of effort and time.

Furthermore, if multi-platform support (or cross-compile) is required, the dependency issue increases drastically along with the number of introducesd libraries -- sloving it will be a nightmare.

That's the reason I started this project, and hopefully it will reduce some development overhead for others and we can spend more time on software design and coding.

cpcos's People

Contributors

qh-huang avatar

Stargazers

 avatar

Watchers

 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.