RG350
build allegro
步驟如下:
$ cd $ wget https://github.com/steward-fu/rg350/releases/download/v1.0/gcw0-toolchain.tar.gz $ tar xvf gcw0-toolchain.tar.gz $ sudo mv gcw0-toolchain /opt $ export PATH=$PATH:/opt/gcw0-toolchain/usr/bin $ export TARGETMACH=mipsel-linux $ export BUILDMACH=i686-pc-linux-gnu $ export CROSS=mipsel-linux $ export CC=${CROSS}-gcc $ export LD=${CROSS}-ld $ export AS=${CROSS}-as $ export CXX=${CROSS}-g++ $ git clone https://github.com/jbeder/yaml-cpp/ $ cd yaml-cpp $ mkdir build $ cmake -DCMAKE_INSTALL_PREFIX=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr .. $ make $ make install