forums.PPSSPP.org
Guide:- Compiling PPSSPP on Windows for Dummies (updated for MSVC 2013) - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Development (/forumdisplay.php?fid=3)
+--- Thread: Guide:- Compiling PPSSPP on Windows for Dummies (updated for MSVC 2013) (/showthread.php?tid=5231)

Pages: 1 2 3 4 5 6 7 8


RE: Guide:- Compiling PPSSPP on Windows for Dummies - solarmystic - 09-16-2013 03:10 PM

(09-16-2013 04:07 AM)Ritori Wrote:  That what I doing after click VC++ Directories then set Configuration: All Configurations in Platfrom after I set to All Platforms it auto pop up box to Frameworks and References.

In that case, try and just set it to Win32. What happens then?


RE: Guide:- Compiling PPSSPP on Windows for Dummies - Ritori - 09-16-2013 03:24 PM

(09-16-2013 03:10 PM)solarmystic Wrote:  
(09-16-2013 04:07 AM)Ritori Wrote:  That what I doing after click VC++ Directories then set Configuration: All Configurations in Platfrom after I set to All Platforms it auto pop up box to Frameworks and References.

In that case, try and just set it to Win32. What happens then?

You set Configuration: All Configurations and Platform: Active(Win32)?

(btw how can you has Active(x64)? )


RE: Guide:- Compiling PPSSPP on Windows for Dummies - solarmystic - 09-16-2013 05:51 PM

(09-16-2013 03:24 PM)Ritori Wrote:  
(09-16-2013 03:10 PM)solarmystic Wrote:  
(09-16-2013 04:07 AM)Ritori Wrote:  That what I doing after click VC++ Directories then set Configuration: All Configurations in Platfrom after I set to All Platforms it auto pop up box to Frameworks and References.

In that case, try and just set it to Win32. What happens then?

You set Configuration: All Configurations and Platform: Active(Win32)?

(btw how can you has Active(x64)? )

Yes.

By the way, if you just did a git pull -v --progress "origin" recently, you don't have to go through that entire process of changing the GPU properties, since the latest ppsspp updates by Henrik have already changed the properties for you. I'll have to change the guide again to reflect that, since it's automatic now.

Much easier that way, and you don't have to change any GPU project settings. That's what I've discovered at least.

To get Active (x64) just change the chosen platform here:-

[Image: iQGR6kiNtUheH.PNG]

You still need to change the Platform toolset to Windows7.1SDK if you intend to build for 64 bit though for the 5 projects I mentioned in the guide, assuming you've installed the Windows 7.1 SDK properly:-

native
PPSSPPWindows
PPSSPPHeadless
UnitTest
zlib


Sorry if it's been a bit confusing for you.

Modified/reverted the guide again to reflect the fact that both scenarios are covered in terms of the DX9SDK situation.

Latest git revisions have altered the GPU.vcxproj file to cover both scenarios. The paths are both linked to the dx9sdk mini submodule in the ppsspp git directory and the windowsdxsdk directory, so if you have either, the solution will build without hassle.

Update to the latest builds with a git pull -v --progress "origin" and you'll notice that it's already been settled for you.

[Image: idHWi1zNO4bgU.PNG]


RE: Guide:- Compiling PPSSPP on Windows for Dummies - Ritori - 09-16-2013 07:09 PM

It not that confused btw i already git pull -v --progress "origin"

I still got problem with 64 bit maybe I need install Window 7.1 SDK again.
32 bit build is work fine Smile


RE: Guide:- Compiling PPSSPP on Windows for Dummies - solarmystic - 09-16-2013 07:26 PM

(09-16-2013 07:09 PM)Ritori Wrote:  It not that confused btw i already git pull -v --progress "origin"

I still got problem with 64 bit maybe I need install Window 7.1 SDK again.
32 bit build is work fine Smile

If you installed it properly in the first place, and changed all the relevant platform toolsets to use Windows7.1SDK it should work. I already showed you which components are needed in the guide for the 7.1 SDK. Don't skip any of them.


RE: Guide:- Compiling PPSSPP on Windows for Dummies - Ritori - 09-16-2013 07:36 PM

I just notice after I recheck. In control panel i missing 2 thing
Microsoft Visual Compilers 2010 Stardard... and other one .

Windows SDK 7.1 and MSVC 2010 redistriblutables is already be installer Smile


RE: Guide:- Compiling PPSSPP on Windows for Dummies - solarmystic - 09-16-2013 09:01 PM

(09-16-2013 07:36 PM)Ritori Wrote:  I just notice after I recheck. In control panel i missing 2 thing
Microsoft Visual Compilers 2010 Stardard... and other one .

Windows SDK 7.1 and MSVC 2010 redistriblutables is already be installer Smile

Yep, I told you not to skip any of them. Install every single Windows 7.1 SDK component just to be on the safe side.


RE: Guide:- Compiling PPSSPP on Windows for Dummies - arg274 - 09-17-2013 02:47 PM

maybe i should pm a dev 'bout the atlases...


RE: Guide:- Compiling PPSSPP on Windows for Dummies - Ritori - 09-18-2013 04:55 AM

Should I unistall this? I can't install other missing component.

Edit:
Look liked I found solution about my problem :-
http://connect.microsoft.com/VisualStudio/feedback/details/683852/fail-to-install-windows-sdk-to-add-x64-cross-compiler-to-visual-c-2010-express-running-on-x86-pc-based

solarmystic maybe you can edit about this problem for 64 bit section

In order to install the x64 compilers from the Windows 7 SDK after installing Visual Studio 2010 Service Pack 1, you'll need to install the Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1. The update is available from here: http://go.microsoft.com/fwlink/?LinkID=212355

When you install the Windows SDK, make sure to clear the "Visual C++ Compilers" checkbox, and install the SDK. Once the SDK is installed, install the compiler update to install the x64 compilers.

It work for me Smile


RE: Guide:- Compiling PPSSPP on Windows for Dummies - solarmystic - 09-18-2013 06:56 PM

(09-18-2013 04:55 AM)Ritori Wrote:  Should I unistall this? I can't install other missing component.

Edit:
Look liked I found solution about my problem :-
http://connect.microsoft.com/VisualStudio/feedback/details/683852/fail-to-install-windows-sdk-to-add-x64-cross-compiler-to-visual-c-2010-express-running-on-x86-pc-based

solarmystic maybe you can edit about this problem for 64 bit section

In order to install the x64 compilers from the Windows 7 SDK after installing Visual Studio 2010 Service Pack 1, you'll need to install the Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1. The update is available from here: http://go.microsoft.com/fwlink/?LinkID=212355

When you install the Windows SDK, make sure to clear the "Visual C++ Compilers" checkbox, and install the SDK. Once the SDK is installed, install the compiler update to install the x64 compilers.

It work for me Smile

Interesting. I never encountered the problem because I never installed Visual Studio Service Pack 1 on top of my Visual C++ Express installation, and the guide reflects that situation. The way I did it is the way I wrote it in the guide, and I never had to uninstall anything to get those x64 compilers to install successfully.

Both the SDK and the Visual C++ programs were installed from the standalone ISOs. Perfects the web installer for Visual C++ Express automatically installs VS 2010 SP1 together with it? Hmm...


RE: Guide:- Compiling PPSSPP on Windows for Dummies - Ritori - 10-11-2013 08:46 PM

Now i ask how to revert(delete) something on past and build latest version without it...
http://stackoverflow.com/questions/4114095/revert-to-previous-git-commit

Code:
# This will destroy any local modifications
# Don't do it if you have uncommitted work you want to keep
git reset --hard 0d1d7fc32

# Alternatively, if there's work to keep:
git stash
git reset --hard 0d1d7fc32
git stash pop
# This saves the modifications, then reapplies that patch after resetting.
# You could get merge conflicts, if you've modified things which were
# changed since the commit you reset to

should i use git reset --hard etc or that alternatively?


RE: Guide:- Compiling PPSSPP on Windows for Dummies - solarmystic - 10-12-2013 02:56 AM

(10-11-2013 08:46 PM)Ritori Wrote:  should i use git reset --hard etc or that alternatively?

Do "git reset --hard" if you don't have any current modifications to the project that you did personally. If you've just been building PPSSPP without changing anything, you can safely do this.

Do "git stash save" if you have changes you want to reapply after you're done. If you have been altering the files for your own builds, do this.


RE: Guide:- Compiling PPSSPP on Windows for Dummies - Ritori - 11-03-2013 10:55 AM

Need help about bisect stuff now, game i want bisect is working on 0.8.1 but on latest one don't and i want to from 0.8.1 onward (ofc i still don't which right version but stable 0.8.1 working alright). I try to bisect but i stuck at this point:-

Code:
Now you need a new reference point. If you know the last revision that worked, use git checkout <version>. For example, git checkout v0.9.1-134-g554ca84. If you don't know the version, you can browse recent commits and try one a few back, or just go 100 commits back using git checkout HEAD~100.

I don't know which git checkout <version> on 0.8.1 is c743e02 that all information i could get.
the main problem is I don't what i should type.. for example git checkout 0.8.1-c743e02 is this right already? Huh


RE: Guide:- Compiling PPSSPP on Windows for Dummies - Kyhel - 11-19-2013 04:27 PM

Hi Smile

I'm having troubles compiling PPSSPP.

I just followed your guide step by step, both on my Windows 7 Pro x64 PC, and on a clean Virtual machine with the same system freshly installed, but i can't get it to work.

I'm using the last version on git : v0.9.5-510-ga5a69e9 (But i think through my different and consecutive tries i may have used previous ones). Unfortunatly, when i follow your guide, there is no PPSSPP.sln, but some CMakeList files. So i tried to get around this, downloaded CMake, using the GUI, i asked to build for Visual Studio 10, which said it couldn't find SDL library (i don't know why because it shouldn't be needed on windows). So i downloaded it too, told CMake where to find it, and it managed to configure and generate the files.

So know i have a PPSSPP.sln file, which is great. So i launch it on Visual Studio, but of course the solutions aren't exactly the same (ALL BUILD is bolded), but i keep going, set the working directories of ALL BUILD and PPSSPPWindows, set to release mode and hit Build Solution.

That's when things get bad.
I get a bunch of errors like that :

Code:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\dsound.h(237): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\WinNls.h(1334): error C2146: syntax error : missing ';' before identifier 'BOOL'

..\ppsspp\Windows\Debugger\CtrlDisAsmView.cpp(323): error C2664: 'CreateFontA' : cannot convert parameter 14 from 'const wchar_t [15]' to 'LPCSTR'

And i end up with

Code:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\WinNls.h(1335): fatal error C1003: error count exceeds 100; stopping compilation
  stdafx.cpp
  Generating Code...
Done Building Project "C:\Programming\ppsspp_build\PPSSPPWindows.vcxproj" (build target(s)) -- FAILED.

Build FAILED.

(It's just for the PPSSPPWindows build, but i have the same for many others).

In the end i have 11 succeeded builds, and 5 failed (i don't know which ones).

Does anyone have any idea why everything goes wrong like that ?

I have also tried to build with CMake using MinGW (again asking me about the SDL), which i manage to get me to generate the files, but when i use mingw32-make, i get errors like :

Code:
#error needs at least version 1000 of MSC
from ppsspp/Common/ABI.cpp:18

and

Code:
#error Arch not supported
from ABI.cpp:28

Code:
#error "Don't build this on arm"
from ppsspp/Common/x64Emitter.h:27

And exactly the same errors using CMake making unix MakeFiles and using Gnuwin make.

I must say i'm a bit lost.

Though i manage to build this on my mac with CMake and make. Even with Xcode.

I'm just not used to Windows programming. So if anyone can give me updated instructions on how to build this, i'ld really appreciate.

Thanks.

Kyhel

PS : I'm trying all this cause i'ld like to get adhoc-support branch from igorcalabria work on my PC and my friend's to play together, since i can already get it to work on my mac (with all limited capabilities of the port).


RE: Guide:- Compiling PPSSPP on Windows for Dummies - Ritori - 11-19-2013 04:46 PM

Quote:PS : I'm trying all this cause i'ld like to get adhoc-support branch from igorcalabria work on my PC and my friend's to play together, since i can already get it to work on my mac (with all limited capabilities of the port).

You know that you need change some code to build on Windows?? at least it build for me use LunaMoo is Method Smile
Look here https://github.com/hrydgard/ppsspp/issues/4490

if that still don't work maybe you not follow solarmytic is tutorial carefully?
Are sure that PPSSPP.sln don't has in PPSSPP/Windows/ ?