ps4-payload-sdk icon indicating copy to clipboard operation
ps4-payload-sdk copied to clipboard

ubuntu 16.04.3 fatal error No such file or directory include ps4.h

Open hejran7 opened this issue 7 years ago • 4 comments

gcc -c -o build/MassStoreCommands.o source/MassStoreCommands.c -I/libPS4/include -I. -Iinclude -std=c11 -O2 -fno-builtin -nostartfiles -nostdlib -Wall -masm=intel -march=btver2 -mtune=btver2 -m64 -mabi=sysv -mcmodel=large In file included from source/MassStoreCommands.c:51:0: include/MassStoreCommands.h:41:20: fatal error: ps4.h: No such file or directory #include <ps4.h> ^ compilation terminated. Makefile:20: recipe for target 'build/MassStoreCommands.o' failed make: *** [build/MassStoreCommands.o] Error 1

the only workaround if i copy the content from /home/user/Desktop/SDK/libPS4/include To /home/user/Desktop/SDK/libusbfatfs/include not sure if am doing the right thing

hejran7 avatar Jan 27 '18 12:01 hejran7

Set PS4SDK environment variable.

idc avatar Jan 29 '18 19:01 idc

thanks for your replay idc, here is my setting

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" PS4SDK="/home/user/Desktop/PS4_SDK"

the PS4_SDK on the desktop still getting the same error, not so sure but i think its ubuntu on windows 7 issue

hejran7 avatar Feb 01 '18 03:02 hejran7

issue solved if u getting the same error am getting u have to add a new environment variable in Ubuntu permanently Open a terminal or by pressing Ctrl Alt T sudo -H gedit /etc/environment a text file will opened so u need to edit in my case the PS4_SDK is on my desktop so i add
PS4SDK="/home/yourusername/Desktop/PS4_SDK" save the changes and close ur text file restart Ubuntu hope it will works for u just how it works for me

hejran7 avatar Feb 02 '18 20:02 hejran7

Yes, sorry, my initial reply suggested PS4_SDK which was wrong, when it should have been PS4SDK.

idc avatar Feb 03 '18 06:02 idc