Post: Guide to Run PS4SDK on Windows by PS4 Developer Bad ChoicesZ
01-05-2017, 06:32 AM #1
Hydrogen
Super Mod
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NextGenUpdate, if you all missed it. Previously we had seen Black Panther's release on his PS4-SDK Installer Script which had some amazing stuff if I should say. Ton of great developers had some small conversations towards needing some resources. PS4 Developer Bad ChoicesZ had went along, and helped release a tutorial on how to run the PS4SDK (CTurts / PS4Dev) on Windows!

Pastebin: You must login or register to view this content. / You must login or register to view this content.


To roughly quote Bad ChoicesZ's Guide: Guide to PS4SDK on Windows

#
# BadChoicesZ guide to PS4SDK setup on Windows:
# using CTURTS SDK, although can use PS4DEV's sdk aswell.
# revision 2.0
#

1.
# Download cygwin x86_64 from browser:
# You must login or register to view this content.

2.
# Create folder:
C:\cygwin64
# And copy the setup-x86_64.exe into it.

3.
# setup (using cmd.exe)
cd C:\cygwin64
setup-x86_64 -q -P wget,tar,qawk,bzip2,subversion,vim

4.
# Download/install apt-cyg using the cygwin terminal:
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin

5.
# Install required. ( using cygwin terminal )
apt-cyg install nano git make python binutils clang
git clone You must login or register to view this content.
git clone You must login or register to view this content.

6.
# make Environmental variable "PS4SDK" point to PS4-SDK's folder.
# replace <user> with profile name..ie. BadChoicesZ
export PS4SDK=/home/<user>/PS4SDK/PS4-SDK

7.
# Install GCC -
# Run the cygwin installer again "setup-x86_64.exe" this time by double clicking on it ( not using cmdline )
# and make sure to download the GCC as shown below.
# You must login or register to view this content.
# (just click on the 'skip' to toggle install..)

8.
# Compile Cturts SDK ( Could also use PS4DEV's.. )
cd PS4-SDK
cd libPS4
make
cd ..
cd libusbfatfs
make
cd ..

9.

# you can now compile projects with ps4sdk on windows.


    #
# BadChoicesZ guide to PS4SDK setup on Windows:
# using CTURTS SDK, although can use PS4DEV's sdk aswell.
# revision 2.0
#

1.
# Download cygwin x86_64 from browser:
# https://www.cygwin.com/setup-x86_64.exe

2.
# Create folder:
C:\cygwin64
# And copy the setup-x86_64.exe into it.

3.
# setup (using cmd.exe)
cd C:\cygwin64
setup-x86_64 -q -P wget,tar,qawk,bzip2,subversion,vim

4.
# Download/install apt-cyg using the cygwin terminal:
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin

5.
# Install required. ( using cygwin terminal )
apt-cyg install nano git make python binutils clang
git clone https://github.com/kR105/PS4-dlclose.git
git clone https://github.com/CTurt/PS4-SDK.git

6.
# make Environmental variable "PS4SDK" point to PS4-SDK's folder.
# replace <user> with profile name..ie. BadChoicesZ
export PS4SDK=/home/<user>/PS4SDK/PS4-SDK

7.
# Install GCC -
# Run the cygwin installer again "setup-x86_64.exe" this time by double clicking on it ( not using cmdline )
# and make sure to download the GCC as shown below.
# https://i.stack.imgur.com/E4uZh.png
# (just click on the 'skip' to toggle install..)

8.
# Compile Cturts SDK ( Could also use PS4DEV's.. )
cd PS4-SDK
cd libPS4
make
cd ..
cd libusbfatfs
make
cd ..

9.
# you can now compile projects with ps4sdk on windows.


*For those experiencing problems that can't compile examples*

Bad ChoicesZ:
    you will have to edit the make-file to get it to work, easiest option is to just use linux ^_^.
or research binutils, gcc, makefiles and cross-compiling.

p.s
I did previously mention mingw might be better option, as I thought mingw would be easier than cygwin as cturt mentions it himself.
Although using msys2.exe and pacman is quite simple setting up:
pacman -S git python netcat make cmake binutils gcc llvm
you will basically hit the same problems with PE error, which requires you to fix the makefile and/or make changes to the source.



Big thanks to Bad ChoicesZ for creating this guide for us in the community! :fout:
Last edited by Hydrogen ; 01-29-2017 at 11:06 PM.

The following 7 users say thank you to Hydrogen for this useful post:

Algebra, danilo_BR, DEv_ShOoTz, DMAAR-7777, Je Modz, Darth Saul, willy_mada
01-06-2017, 08:50 PM #11
Algebra
[move]mov eax, 69[/move]
Originally posted by Hydrogen View Post

"Trust me and 2much4u this tutorial is like 97% complete, you can compile the libraries just not the examples with this."
- Black Panther

:p


Thanks haha I should have read it properly.
01-06-2017, 09:03 PM #12
Algebra
[move]mov eax, 69[/move]
Originally posted by Hydrogen View Post
Hello NextGenUpdate, if you all missed it. Previously we had seen Black Panther's release on his PS4-SDK Installer Script which had some amazing stuff if I should say. Ton of great developers had some small conversations towards needing some resources. PS4 Developer Bad ChoicesZ had went along, and helped release a tutorial on how to run the PS4SDK (CTurts / PS4Dev) on Windows!

Once again, this is not a complete tutorial since it doesn't work, but Bad ChoicesZ is on the right track though. Basically as Blank Panther stated, the guide is 97% Complete.

Pastebin: You must login or register to view this content. / You must login or register to view this content.


To roughly quote Bad ChoicesZ's Guide: Guide to PS4SDK on Windows

#
# BadChoicesZ guide to PS4SDK setup on Windows:
# using CTURTS SDK, although can use PS4DEV's sdk aswell.
# revision 2.0
#

1.
# Download cygwin x86_64 from browser:
# You must login or register to view this content.

2.
# Create folder:
C:\cygwin64
# And copy the setup-x86_64.exe into it.

3.
# setup (using cmd.exe)
cd C:\cygwin64
setup-x86_64 -q -P wget,tar,qawk,bzip2,subversion,vim

4.
# Download/install apt-cyg using the cygwin terminal:
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin

5.
# Install required. ( using cygwin terminal )
apt-cyg install nano git make python binutils clang
git clone You must login or register to view this content.
git clone You must login or register to view this content.

6.
# make Environmental variable "PS4SDK" point to PS4-SDK's folder.
# replace <user> with profile name..ie. BadChoicesZ
export PS4SDK=/home/<user>/PS4SDK/PS4-SDK

7.
# Install GCC -
# Run the cygwin installer again "setup-x86_64.exe" this time by double clicking on it ( not using cmdline )
# and make sure to download the GCC as shown below.
# You must login or register to view this content.
# (just click on the 'skip' to toggle install..)

8.
# Compile Cturts SDK ( Could also use PS4DEV's.. )
cd PS4-SDK
cd libPS4
make
cd ..
cd libusbfatfs
make
cd ..

9.

# you can now compile projects with ps4sdk on windows.


    #
# BadChoicesZ guide to PS4SDK setup on Windows:
# using CTURTS SDK, although can use PS4DEV's sdk aswell.
# revision 2.0
#

1.
# Download cygwin x86_64 from browser:
# https://www.cygwin.com/setup-x86_64.exe

2.
# Create folder:
C:\cygwin64
# And copy the setup-x86_64.exe into it.

3.
# setup (using cmd.exe)
cd C:\cygwin64
setup-x86_64 -q -P wget,tar,qawk,bzip2,subversion,vim

4.
# Download/install apt-cyg using the cygwin terminal:
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin

5.
# Install required. ( using cygwin terminal )
apt-cyg install nano git make python binutils clang
git clone https://github.com/kR105/PS4-dlclose.git
git clone https://github.com/CTurt/PS4-SDK.git

6.
# make Environmental variable "PS4SDK" point to PS4-SDK's folder.
# replace <user> with profile name..ie. BadChoicesZ
export PS4SDK=/home/<user>/PS4SDK/PS4-SDK

7.
# Install GCC -
# Run the cygwin installer again "setup-x86_64.exe" this time by double clicking on it ( not using cmdline )
# and make sure to download the GCC as shown below.
# https://i.stack.imgur.com/E4uZh.png
# (just click on the 'skip' to toggle install..)

8.
# Compile Cturts SDK ( Could also use PS4DEV's.. )
cd PS4-SDK
cd libPS4
make
cd ..
cd libusbfatfs
make
cd ..

9.
# you can now compile projects with ps4sdk on windows.



Big thanks to Bad ChoicesZ for creating this guide for us in the community! :fout:


[video]https://sendvid.com/fp1qeh0y?secret=67ad0761-ef47-4072-9a62-0ef3f9d915bc[/video]

Is that the error y'all are getting ?
01-06-2017, 11:13 PM #13
2much4u
1337 H4X0R
Originally posted by Algebra View Post
[video]https://sendvid.com/fp1qeh0y?secret=67ad0761-ef47-4072-9a62-0ef3f9d915bc[/video]

Is that the error y'all are getting ?


No, that error is due to you not having PS4SDK as an environment variable or it being incorrect. Do step 6 on the tutorial to fix that.

The following user thanked 2much4u for this useful post:

Algebra
01-06-2017, 11:14 PM #14
Algebra
[move]mov eax, 69[/move]
Originally posted by 2much4u View Post
No, that error is due to you not having PS4SDK as an environment variable or it being incorrect. Do step 6 on the tutorial to fix that.


Thanks bro


Edit :

I'm getting this after doing somethings when I build the hello example


You must login or register to view this content.
Last edited by Algebra ; 01-06-2017 at 11:19 PM.
01-06-2017, 11:21 PM #15
2much4u
1337 H4X0R
Originally posted by Algebra View Post
Thanks bro


Edit :

I'm getting this after doing somethings when I build the hello example


You must login or register to view this content.


That new error is the one that Black Panther and I experience. Don't have a solution for you on that one.

The following user thanked 2much4u for this useful post:

Algebra
01-06-2017, 11:23 PM #16
Algebra
[move]mov eax, 69[/move]
Originally posted by 2much4u View Post
That new error is the one that Black Panther and I experience. Don't have a solution for you on that one.


Yeah I'm going to try and see what I can do to try and solve it lol
01-18-2017, 07:05 PM #17
Algebra
[move]mov eax, 69[/move]

Originally posted by Black
Trust me and 2much4u this tutorial is like 97% complete, you can compile the libraries just not the examples with this.


Originally posted by Hydrogen View Post
My thread, my BB Code.

:argh:


Originally posted by BadChoicesZ View Post
Although yes the steps technically will let you setup the cygwin environment correctly compiling would require editing of the makefile or sourcefiles to match windows apis rather than POSIX/Linux-specific APIs.I actually didn't test past compiling libps4, and libfatusb, recently tested and realised that is better to just use mingw like cturt states, more fuck around setting up, less fuck around with compiling the same projects.
Disappointing because the apt-cyg was a nice alternative to linux's apt-get XD. I am not to sure whats on offer in msys i may try later.



Any updates on this ? Sal
01-18-2017, 10:06 PM #18
Hydrogen
Super Mod
Originally posted by Algebra View Post








Any updates on this ? Sal


You'd have to ask BC on that if he's willing to update it Smile
01-18-2017, 10:24 PM #19
Algebra
[move]mov eax, 69[/move]
Originally posted by Black
Trust me and 2much4u this tutorial is like 97% complete, you can compile the libraries just not the examples with this.


Originally posted by Hydrogen View Post
My thread, my BB Code.

:argh:


Originally posted by Hydrogen View Post
You'd have to ask BC on that if he's willing to update it Smile


Thank and i quoted him didn't i Smile

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo