i need help to compile ps3toolchain in opensuse

HulktoHulk

Forum Noob
I have already installed many dependencies manually. but still with the same error

CC aes.c
In file included from aes.c:31:0:
../include/mbedtls/config.h:117:1: error: stray '\' in program
\n#include "check_config.h"\n
^
../include/mbedtls/config.h:117:3: error: stray '#' in program
\n#include "check_config.h"\n
^
../include/mbedtls/config.h:117:2: error: unknown type name 'n'
\n#include "check_config.h"\n
^
../include/mbedtls/config.h:117:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
\n#include "check_config.h"\n
^~~~~~~~~~~~~~~~
../include/mbedtls/config.h:117:28: error: stray '\' in program
\n#include "check_config.h"\n
^
gmake: *** [Makefile:195: aes.o] Error 1
../scripts/028-mbedTLS-2.16.6.sh: Failed.
../scripts/009-ps3libraries.sh: Failed.
ERROR: Could not run the toolchain script.
 
Did you include check_config.h in your project?
looks like there are references and it's not finding that ref.

I could be wrong, though.... i'm just basing it off the errors you've shared
 
I have already installed many dependencies manually. but still with the same error

CC aes.c
In file included from aes.c:31:0:
../include/mbedtls/config.h:117:1: error: stray '\' in program
\n#include "check_config.h"\n
^
../include/mbedtls/config.h:117:3: error: stray '#' in program
\n#include "check_config.h"\n
^
../include/mbedtls/config.h:117:2: error: unknown type name 'n'
\n#include "check_config.h"\n
^
../include/mbedtls/config.h:117:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
\n#include "check_config.h"\n
^~~~~~~~~~~~~~~~
../include/mbedtls/config.h:117:28: error: stray '\' in program
\n#include "check_config.h"\n
^
gmake: *** [Makefile:195: aes.o] Error 1
../scripts/028-mbedTLS-2.16.6.sh: Failed.
../scripts/009-ps3libraries.sh: Failed.
ERROR: Could not run the toolchain script.

Remove the \n from that config.h file. So the line 117 in include/mbedtls/config.h looks like:
Code:
#include "check_config.h"

It looks that my script from macOS doesn't work properly on Linux. I've fixed it, so you can try the new mbedTLS build script from here:
https://github.com/bucanero/ps3libraries/blob/master/scripts/028-mbedTLS-2.16.6.sh

let me know if it works
 
Last edited:
does that include PSL1GHT too?
also and the hard part to install

yes, that includes everything:
  • the ps3 toolchain
  • PSL1GHT SDK
  • all the additional PS3 libraries (libzip, libcurl, cairo, polarssl, mbedtls, etc)
you just need to unpack the file to your preferred folder (I suggest using /usr/local/ps3dev/ ) and that's it. No need to build anything, except your own project and sources.
 
Back
Top