Need help compiling ScummVM on Linux

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
kernaltrap
Posts: 1
Joined: Fri Dec 01, 2023 4:10 am

Need help compiling ScummVM on Linux

Post by kernaltrap »

I installed the ps3toolchain, SDL2 (sdl_psl1ght) and after all of that, I tried to compile ScummVM itself using the below command

Code: Select all

./configure --host=ps3
And I get the following error:

Code: Select all

Running ScummVM configure...
Looking for C++ compiler... powerpc64-ps3-elf-g++
Checking if compiler supports C++11... yes
Checking for compiler version... GCC 7.2.0, ok
Checking if C++11 initializer list is available... yes
Checking if C++11 std::nullptr_t is available... yes
Checking if C++11 alignas and alignof keywords are available... yes
Checking best debug mode... -g + var tracking
Using LLD linker... no
Using Mold linker... no
Checking for whether C++ compiler accepts -Wglobal-constructors... no
Checking for whether C++ compiler accepts -Wno-undefined-var-template... no
Checking for whether C++ compiler accepts -Wno-pragma-pack... no
Checking for whether C++ compiler accepts -Wno-address-of-packed-member... no
Checking endianness... big
Checking 64-bitness... yes
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Type with 8 bytes... long
Alignment required... no
Checking host CPU architecture... PowerPC
Checking hosttype... ps3
Cross-compiling to ps3
Checking for pkg-config... yes
WARNING: When cross-compiling PKG_CONFIG_LIBDIR must be set to the location of the .pc files for the target
Looking for sdl-config... /usr/local/ps3dev/portlibs/ppu/bin/sdl-config
Checking for SDL... yes
support for SDL 1.3.0 not implemented yet
Any help is appreciated. I am running under Gentoo Linux if that is needed info.
User avatar
Praetorian
ScummVM Developer
Posts: 797
Joined: Tue May 08, 2007 8:54 am
Location: Greece
Contact:

Re: Need help compiling ScummVM on Linux

Post by Praetorian »

Hello,

Are you following the instructions from this page? https://wiki.scummvm.org/index.php/PlayStation_3

It mentions a fork of sdl_psl1ght which is based on SDL2 (2.0.3) -- the original stable seems to be based on SDL 1.3.0, hence the error you're getting.
The fork is maintained by bgk.
https://github.com/bgK/sdl_psl1ght/tree/psl1ght-2.0.3

There's a short readme in the above page for building instructions for psl1ght-2.0.3. You'll most likely have to uninstall/remove your existing sdl_psl1ght first.

I have not cross-compiled for PS3 so that's probably as far as I can help.
Post Reply