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-05-2017, 07:26 AM #2
Black Panther
Former Staff
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!

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:


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

The following user thanked Black Panther for this useful post:

Hydrogen
01-05-2017, 09:22 AM #3
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:


Hydro, can you disable smileys in your post, it distracts from the guide. Thanks.
01-05-2017, 09:23 AM #4
Hydrogen
Super Mod
Originally posted by Frosty View Post
Hydro, can you disable smileys in your post, it distracts from the guide. Thanks.


My thread, my BB Code.

:argh:
01-05-2017, 09:28 AM #5
Originally posted by Hydrogen View Post
My thread, my BB Code.

:argh:


Loving how the scene is going by more swiftly (well, guess Christmas sales helped) now, especially that a lot of the devs working the projects are from here (BP, BadChoicesz, 2much4u, Specter, Red-Eye, Hydro, Beach, etc.) After what we've seen with Vita, I can't even imagine how far PS4 can be taken. Woot (Still would've been cool to seen a mod menu on BO Declassified) Keep on keeping us updated Hydro! Gasp
01-05-2017, 09:29 AM #6
Elleusive
I’m too L33T
FIGHT! FIGHT! FIGHT! :troll:
01-05-2017, 12:18 PM #7
BadChoicesZ
I defeated!
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.

The following user thanked BadChoicesZ for this useful post:

willy_mada
01-05-2017, 06:44 PM #8
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.


Frosty Learns From BadChoicesZ
01-06-2017, 08:46 PM #9
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:






Yeah but when I compile the sdk it doesn't give me errors ! Like I mean is that even possible and it was on my first go Sal
Last edited by Algebra ; 01-06-2017 at 08:48 PM.
01-06-2017, 08:48 PM #10
Hydrogen
Super Mod
Originally posted by Algebra View Post
Yeah but when I compile the sdk it doesn't give me errors !


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

:p

The following user thanked Hydrogen for this useful post:

Algebra

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo