@blckbear many thanks for your response.
I did build it myself using the dockerfile I put above, and it did build OK, but I could not compile the PSLIGHT examples, as it was missing files. Maybe you are right and they are very out of date, which makes me think, this is a FOSS project, only one of its kind, it has a special folder for its examples and they don't build? Why did nobody fix this. I did not even see anything in the open issues mentioning this.
Ill try again later with just the toolchain & your repo. Maybe I can build a basic example from looking at your code.
Thanks again.
@blkbear so I started fresh, using WSL on Windows, installed Ubuntu, then fetched and unpacked the binary release from
https://github.com/bucanero/ps3toolchain into the correct place.
Then I cloned your repo, and did a make pkg on it:
myuser:/mnt/c/dev/ps3dev/SMW-PS3$ make pkg
/bin/sh: 1: xmlstarlet: not found
/bin/sh: 1: xmlstarlet: not found
FileIO.cpp
FileList.cpp
HashTable.cpp
MapList.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/MapList.cpp: In member function 'void MapList::ReadFilters()':
/mnt/c/dev/ps3dev/SMW-PS3/source/MapList.cpp:623:9: warning: variable 'iVersion' set but not used [-Wunused-but-set-variable]
short iVersion[4] = {0, 0, 0, 0};
^~~~~~~~
TilesetManager.cpp
ai.cpp
dirlist.cpp
eyecandy.cpp
gamemodes.cpp
gfx.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/gfx.cpp: In function 'bool gfx_loadpalette()':
/mnt/c/dev/ps3dev/SMW-PS3/source/gfx.cpp:150:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (SDL_MUSTLOCK(palette))
^~
/mnt/c/dev/ps3dev/SMW-PS3/source/gfx.cpp:153:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
SDL_FreeSurface(palette);
^~~~~~~~~~~~~~~
global.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
{15, 13, 12, 14, 21, 22, 20, 23} } } };
^
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:131:52: warning: overflow in implicit constant conversion [-Woverflow]
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp: In function 'void LoadCurrentMapBackground()':
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:1517:6: warning: '%s' directive writing up to 127 bytes into a region of size 106 [-Wformat-overflow=]
void LoadCurrentMapBackground()
^~~~~~~~~~~~~~~~~~~~~~~~
/mnt/c/dev/ps3dev/SMW-PS3/source/global.cpp:1520:16: note: 'sprintf' output between 23 and 150 bytes into a destination of size 128
sprintf(filename, "gfx/packs/backgrounds/%s", g_map.szBackgroundFile);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/input.cpp: In member function 'void CPlayerInput::Update(SDL_Event, short int)':
/mnt/c/dev/ps3dev/SMW-PS3/source/input.cpp:115:23: warning: variable 'iPlayerID' set but not used [-Wunused-but-set-variable]
short iPlayerID = iPlayer;
^~~~~~~~~
linfunc.cpp
main.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/main.cpp: In function 'void RunGame()':
/mnt/c/dev/ps3dev/SMW-PS3/source/main.cpp:1736:6: warning: ': X' directive writing 3 bytes into a region of size between 0 and 126 [-Wformat-overflow=]
void RunGame()
^~~~~~~
/mnt/c/dev/ps3dev/SMW-PS3/source/main.cpp:3355:15: note: 'sprintf' output between 6 and 132 bytes into a destination of size 128
sprintf(szMode, "%s %s: X", game_values.gamemode->GetModeName(), game_values.gamemode->GetGoalName());
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/c/dev/ps3dev/SMW-PS3/source/main.cpp:1736:6: warning: ': ' directive writing 2 bytes into a region of size between 0 and 126 [-Wformat-overflow=]
void RunGame()
^~~~~~~
/mnt/c/dev/ps3dev/SMW-PS3/source/main.cpp:1736:6: note: directive argument in the range [0, 32767]
/mnt/c/dev/ps3dev/SMW-PS3/source/main.cpp:3357:15: note: 'sprintf' output between 6 and 136 bytes into a destination of size 128
sprintf(szMode, "%s %s: %d", game_values.gamemode->GetModeName(), game_values.gamemode->GetGoalName(), game_values.gamemode->goal);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
map.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/map.cpp: In member function 'SDL_Surface* CMap::createThumbnailSurface(bool)':
/mnt/c/dev/ps3dev/SMW-PS3/source/map.cpp:2136:15: warning: '%s' directive writing up to 127 bytes into a region of size 98 [-Wformat-overflow=]
SDL_Surface * CMap::createThumbnailSurface(bool fUseClassicPack)
^~~~
/mnt/c/dev/ps3dev/SMW-PS3/source/map.cpp:2145:10: note: 'sprintf' output between 31 and 158 bytes into a destination of size 128
sprintf(szBackgroundFile, "gfx/packs/Classic/backgrounds/%s", g_map.szBackgroundFile);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/c/dev/ps3dev/SMW-PS3/source/map.cpp:2136:15: warning: '%s' directive writing up to 127 bytes into a region of size 106 [-Wformat-overflow=]
SDL_Surface * CMap::createThumbnailSurface(bool fUseClassicPack)
^~~~
/mnt/c/dev/ps3dev/SMW-PS3/source/map.cpp:2154:10: note: 'sprintf' output between 23 and 150 bytes into a destination of size 128
sprintf(szBackgroundFile, "gfx/packs/backgrounds/%s", g_map.szBackgroundFile);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
menu.cpp
modeoptionsmenu.cpp
movingplatform.cpp
object.cpp
objectgame.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/objectgame.cpp: In member function 'virtual bool MO_CollectionCard::collide(CPlayer*)':
/mnt/c/dev/ps3dev/SMW-PS3/source/objectgame.cpp:6505:20: warning: operation on '((MO_CollectionCard*)this)->MO_CollectionCard::<anonymous>.IO_MovingObject::animationOffsetY' may be undefined [-Wsequence-point]
animationOffsetY = animationOffsetY = (value + 1) << 5;
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/c/dev/ps3dev/SMW-PS3/source/objectgame.cpp: In member function 'virtual bool CO_ThrowBox::collide(CPlayer*)':
/mnt/c/dev/ps3dev/SMW-PS3/source/objectgame.cpp:9039:9: warning: variable 'flipx' set but not used [-Wunused-but-set-variable]
short flipx = 0;
^~~~~
objecthazard.cpp
path.cpp
player.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/player.cpp: In function 'short int PlayerKilledPlayer(CPlayer*, CPlayer*, short int, killstyle, bool, bool)':
/mnt/c/dev/ps3dev/SMW-PS3/source/player.cpp:2645:7: warning: variable 'fSoundPlayed' set but not used [-Wunused-but-set-variable]
bool fSoundPlayed = false;
^~~~~~~~~~~~
ps3port.cpp
savepng.cpp
sfx.cpp
splash.cpp
/mnt/c/dev/ps3dev/SMW-PS3/source/splash.cpp: In function 'bool LoadAndSplashScreen()':
/mnt/c/dev/ps3dev/SMW-PS3/source/splash.cpp:536:29: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(padinfo.status)
~~~~~~~~~~~~~~~~^
uicontrol.cpp
uicustomcontrol.cpp
uimenu.cpp
world.cpp
SFont.c
linking ... SMW-PS3.elf
CEX self ... SMW-PS3.self
make_self: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
make[1]: *** [/usr/local/ps3dev/ppu_rules:58: /mnt/c/dev/ps3dev/SMW-PS3/SMW-PS3.self] Error 127
make: *** [Makefile:111: build] Error 2
A lot of warnings, and failed in the end with "make_self: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory"
Any ideas?