Giter VIP home page Giter VIP logo

orangepi_cedarx's Introduction

OrangePi CedarX

  • Host Platform

    Ubuntu14.04+/x86_64

  • Target Platform

    OrangePi PC2 - Ubuntu16.04/aarch64

Porting Guide

  • Download source code
git clone https://github.com/OrangePiLibra/OrangePi_Cedarx.git
  • Prepare toolchain

    Please install toolchain on Host PC

sudo apt-get install -y gcc-arm-linux-gnueabi


* Compile cedarx on Host PC

When we get source code of Cedarx, we should comile first, as follow:
Note! The "CURRENT_PATH" is path of "OrangePi_CedarX".

cd OrangePi_Cedarx/cedarx ./bootstrap

./configure --host=arm-linux-gnueabi CFLAGS="-D__ENABLE_ZLIB__" CPPFLAGS="-D__ENABLE_ZLIB__" LDFLAGS="-lcrypto -lz -L${CURRENT_PATH}/OrangePi_CedarX/cedarx/external/lib32/arm-linux-gnueabi -L${CURRENT_PATH}/OrangePi_CedarX/libcedarc/library/lib32/linuxgnueabi_3.10/" --prefix=${CURRENT_PATH}/OrangePi_CedarX/output

make

make install

Note! The "CURRENT_PATH" is path of "OrangePi_CedarX"

Now, we can get executable file on "${CURRENT_PATH}/OrangePi_CedarX/output".

* Update executable file onto OrangePi PC2

Copy executable file  to OrangePi PC2.

cp -rfa ${CURRENT_PATH}/OrangePi_CedarX/output ${OrangePiPC2}/rootfs/home/orangepi/CedarX

Copy 32bit-library of "arm-linux-gnueabi" to OrangePi PC2.

cp -rfa ${CURRENT_PATH}/OrangePi_CedarX/lib32/arm-linux-gnueabi ${OrangePiPC2}/rootfs/home/orangepi/CedarX

Copy 32bit-library of "linuxgnuebi" to OrangePi PC2.

cp -rfa ${CURRENT_PATH}/OrangePi_CedarX/libcedarc/library/lib32/linuxgnueabi_3.10/ ${OrangePiPC2}/rootfs/home/orangepi/CedarX

Copy specify file to OrangePi PC2.

cp -rfa ${CURRENT_PATH}/OrangePi_CedarX/cedarx/config/t3_linux_cedarx.conf ${OrangePiPC2}/rootfs/etc/cedarx.conf cp -rfa ${CURRENT_PATH}/OrangePi_CedarX/cedarx/OrangePi_CedarX.sh ${OrangePiPC2}/rootfs/home/orangepi/CedarX


* Prepare running envirnoment on OrangePi PC2

Login OrangePi PC with terminal, and change dirent into "/home/orangepi/CedarX", as follow:

If it's first time to do, please execute these command first:

sudo apt-get install -y gcc-arm-linux-gnueabi sudo ./usr/local/sbin/resize_rootfs.sh

After then, running command:

cd /home/orangepi/CedarX sudo chmod 755 OrangePi_CedarX.sh sudo ./OrangePi_CedarX.sh

At last, please export dynatic shared library:

export LD_LIBRARY_PATH=/home/orangepi/CedarX/arm-linux-gnueabi:/home/orangepi/CedarX/output/lib:/home/orangepi/CedarX/linuxgnueabi_3.10:/usr/arm-linux-gnueabi/lib/


* Running demo code

The finally, we can running demo code to test CedarX. 
Please follow this step:

cd /home/orangepi/CedarX/output/bin ./xplayerdemo

orangepi_cedarx's People

Contributors

buddyzhang1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.