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-19-2017, 01:06 PM #20
BadChoicesZ
I defeated!
Originally posted by Algebra View Post








Any updates on this ? Sal


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.

The following 3 users say thank you to BadChoicesZ for this useful post:

Algebra, Hydrogen, NGM
01-19-2017, 06:03 PM #21
Algebra
[move]mov eax, 69[/move]
Originally posted by BadChoicesZ View Post
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.


Okay thanks man appreciate it.
03-23-2017, 02:25 AM #22
When:
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin
Is pasted into The terminal, Here's the output:

Ethan ~
$ wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
-bash: wget: command not found

Ethan ~
$ install apt-cyg /bin
install: cannot stat 'apt-cyg': No such file or directory

What Am i doing wrong??
03-23-2017, 03:11 AM #23
Hydrogen
Super Mod
Originally posted by eguest01 View Post
When:
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin
Is pasted into The terminal, Here's the output:

Ethan ~
$ wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
-bash: wget: command not found

Ethan ~
$ install apt-cyg /bin
install: cannot stat 'apt-cyg': No such file or directory

What Am i doing wrong??


You would have to ask Bad ChoicesZ over that sir.
03-23-2017, 03:13 AM #24
Alright, thanks for the quick response Geo
03-23-2017, 11:54 AM #25
Algebra
[move]mov eax, 69[/move]
Originally posted by eguest01 View Post
Alright, thanks for the quick response Geo



Did you install any other extensions when doing the installation.

Edit: Also the PS4SDK will not build only in Linux but if you can edit the Makefile and adjust it then go ahead. I wish you great luck.
Last edited by Algebra ; 03-23-2017 at 12:00 PM.
03-24-2017, 01:42 PM #26
weedmen55
Save Point
Thanks
Last edited by weedmen55 ; 03-24-2017 at 02:15 PM.
03-24-2017, 02:26 PM #27
weedmen55
Save Point
Same error
03-24-2017, 07:51 PM #28
Algebra
[move]mov eax, 69[/move]
Originally posted by weedmen55 View Post

The error isn't resolved yet but i will try and fix it.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo