RG350

build libjpeg-turbo 2.0.2


步驟如下:

$ cd
$ wget https://github.com/tonyjih/RG350_linux/releases/download/2019.10.27/toolchain-2019-10-27.tar.bz2
$ tar xvf toolchain-2019-10-27.tar.bz2
$ sudo mv gcw0-toolchain /opt
$ export PATH=$PATH:/opt/gcw0-toolchain/usr/bin

$ wget https://zh-tw.osdn.net/frs/g_redir.php?m=jaist&f=libjpeg-turbo%2F2.0.2%2Flibjpeg-turbo-2.0.2.tar.gz
$ tar xvf libjpeg-turbo-2.0.2.tar.gz
$ cd libjpeg-turbo-2.0.2
$ vim CMakeLists.txt +70
  set(CPU_TYPE mips)

$ mkdir build
$ cd build
$ CC=mipsel-linux-gcc CXX=mipsel-linux-g++ LD=mipsel-linux-ld cmake host=/opt/gcw0-toolchain/usr/shared/buildroot/cmake_toolchain_file.cmake ..
$ make -j4
$ make install


返回上一頁