Skip to content

Commit

Permalink
PSP build working again (#8)
Browse files Browse the repository at this point in the history
* Uplift psp build
* Cleaned up libs
* Fixed Windows-style case sensitive path error *grumble*
* Updated pspdev path in Makefile.PSP
* Removed unused PSP files
* Updated BUILD_HOWTO.txt to README.md

Requires this release of pspdev, all later builds are breaking
https://github.com/pspdev/pspdev/releases/download/v20200623/pspdev-ubuntu-latest.tar.gz
  • Loading branch information
djdiskmachine authored Jan 6, 2023
1 parent 1cc338d commit 082f666
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 1,012 deletions.
16 changes: 0 additions & 16 deletions projects/BUILD_HOW_TO.txt

This file was deleted.

11 changes: 4 additions & 7 deletions projects/Makefile.PSP
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@

PATH=$PATH:/c/devkitpro/devkitPSP/bin

TARGET = lgpt

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = LittleGPTracker
PSP_EBOOT_ICON = $(PWD)/psp_icon.png
PSP_EBOOT_ICON1 = $(PWD)/lgpt_icon.bmp
PSP_EBOOT_PIC1 = $(PWD)/psp_bg.png

include $(PWD)/psp_rules

PSPSDK=$(shell /c/devkitpro/devkitPSP/bin/psp-config --pspsdk-path)
PSPSDK=$(shell $(PSPDEV)/bin/psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin

CFLAGS := -O3 -G0 -Wall -DPLATFORM_$(PLATFORM) -DNDEBUG -DCPP_MEMORY -I$(PWD)/../sources -I$(PSPSDK)/include
Expand All @@ -19,6 +17,5 @@ CXXFLAGS:= $(CFLAGS) -fexceptions -fno-rtti

EXTENSION:= elf

LIBS = -L/usr/local/pspsdk/lib -lSDL_image -lpng -lz -lstdc++
LIBS += -lSDL -lGL -lglu -lglut -lpspvfpu -lm -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lpspnet_inet -ljpeg

LIBS = -L$(PSPDEV)/psp/lib -lSDL_image -lpng -lz -lstdc++ -lSDL -lGL -lGLU -lglut -lm -lc -ljpeg
LIBS += -lpspvfpu -lpspgu -lpsphprm -lpsprtc -lpspaudio -lpspirkeyb -lpsppower
26 changes: 26 additions & 0 deletions projects/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
##### Windows: Use Visual 2008 express edition + will need the DirectX SDK (I'm using March 2008)

##### Mac: Use Xcode 3.x + will need the SDL Framework installed

##### CAANOO: Compile under linux with the caanoo toolchain

##### GP2X: Compile under minsys

##### PSP: Compile under Ubuntu
Required libs:
sudo apt install -y build-essential cmake pkgconf \n
libusb-0.1 libgpgme11 libarchive-tools fakeroot
Dev kit:
https://github.com/djdiskmachine/pspdev
using nano ~/.bashrc, add
export PSPDEV=~/pspdev
export PATH=$PATH:$PSPDEV/bin
at the end, then
source ~/.bashrc

##### DINGOO: Compile under Linux

##### RASPI: Compile under Linux
Required libs:
sudo apt install -y git gcc libsdl1.2-dev make g++ libjack-dev

2 changes: 1 addition & 1 deletion sources/Adapters/PSP/FileSystem/PSPFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <string.h>
#include <stdarg.h>
#include <string>
#include <Application/utils/wildcard.h>
#include <Application/Utils/wildcard.h>

#include <sys/dir.h>
#include <sys/stat.h>
Expand Down
61 changes: 0 additions & 61 deletions sources/Adapters/PSP/FileSystem/dirlist.cpp

This file was deleted.

Loading

0 comments on commit 082f666

Please sign in to comment.