PSP Go >> PSPDev

build atari7800-1.2.0


編譯步驟如下:

$ cd
$ wget https://github.com/steward-fu/pspgo/releases/download/v1.0/toolchain.tar.gz
$ tar xvf toolchain.tar.gz
$ sudo mv pspdev /opt
$ export PSPDEV=/opt/pspdev
$ export PATH=$PATH:$PSPDEV/bin

$ wget https://github.com/steward-fu/pspgo/releases/download/v1.1/atari7800-1.2.0.7z
$ 7za x atari7800-1.2.0.7z
$ cd atari7800-1.2.0/src
$ vim psp_sdl.c
  564  png_uint_32 width = png_get_image_width(png_ptr, info_ptr); //info_ptr->width;
  565  png_uint_32 height = png_get_image_height(png_ptr, info_ptr); //info_ptr->height;
  566  int color_type = png_get_color_type(png_ptr, info_ptr); //info_ptr->color_type;
  575  png_byte **pRowTable = png_get_rowbytes(png_ptr, info_ptr); //info_ptr->row_pointers;

$ vim Common.cpp
  25  #include <stdio.h>

$ vim Hash.cpp
  25  #include <stdio.h>

$ cp Makefile-5x Makefile
$ vim Makefile
  70  -DNO_STDIO_REDIRECT -G0
  77  LIBS += -lpspirkeyb -lSDL_image -lSDL -lpng -ljpeg -lpspaudio -lpspgu -lpsppower -lpsphprm -lz -lm -lstdc++ -lg -lGLU -lGL -lglut -lpspvfpu -lpsprtc

$ make clean
$ make


返回上一頁