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++

$ wget https://github.com/steward-fu/rg350/releases/download/v1.1/allegro.tar.gz
$ tar xvf allegro.tar.gz
$ cd allegro
$ vim ./gcw0-config.sh
  #rm -f allegro-config Makefile cmake_install.cmake CMakeCache.txt

$ ./gcw0-config.sh
$ ./gcw0-config.sh
$ make
$ make install


返回上一頁