craftxbox Posted April 29, 2016 Share Posted April 29, 2016 First of all the install errors which may be causing the build errors: Quote Installing OpenRCT2 development environment for Windows Updating dependencies... The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, function, script file, or o perable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\luke_2\Source\Repos\OpenRCT22\scripts\ps\install.ps1:58 char:22 + Invoke-WebRequest <<<< $libsUrl -OutFile $zipPath + CategoryInfo : ObjectNotFound: (Invoke-WebRequest:String) [], ParentContainsErrorRe cordException + FullyQualifiedErrorId : CommandNotFoundException and the build errors: Quote 1>------ Build started: Project: openrct2, Configuration: Debug Win32 ------ 1> addresses.c 1> cheats.c 1> cmdline_sprite.c 1> config.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\addresses.c) 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\cheats.c) 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\cmdline_sprite.c) 1> cursors.c 1> diagnostic.c 1> editor.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\config.c) 1> game.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\editor.c) 1> hook.c 1> image_io.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\game.c) 1> input.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\hook.c) 1> intro.c 1>c:\users\luke_2\source\repos\openrct22\src\image_io.c(1): fatal error C1083: Cannot open include file: 'png.h': No such file or directory 1> object.c 1>c:\users\luke_2\source\repos\openrct22\src\input.c(21): fatal error C1083: Cannot open include file: 'SDL_keycode.h': No such file or directory 1> object_list.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\intro.c) 1> openrct2.c 1> rct1.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\object.c) 1> rct2.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\object_list.c) 1> scenario.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\openrct2.c) 1> scenario_list.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\rct1.c) 1> title.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\scenario.c) 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\rct2.c) 1> scenario_sources.c 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\scenario_list.c) 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\title.c) 1>c:\users\luke_2\source\repos\openrct22\src\rct2.h(24): fatal error C1083: Cannot open include file: 'SDL_platform.h': No such file or directory (compiling source file src\scenario_sources.c) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Do note i am building via Visual Studio Community 2015 but either method causes the same issue Link to comment
jensj12 Posted April 29, 2016 Share Posted April 29, 2016 Have you read the readme? There are some scripts that need to be run before you can build using VS. 1 Link to comment
craftxbox Posted April 29, 2016 Author Share Posted April 29, 2016 Didnt notice until now that there are alot of errors too, assuming those are a result of the issue already here as most of them reference somehting about SDL Link to comment
craftxbox Posted April 29, 2016 Author Share Posted April 29, 2016 Those are the scripts giving issues Link to comment
jensj12 Posted April 29, 2016 Share Posted April 29, 2016 (edited) You said you were using Visual Studio to build the game. Quit VS until you got the game to run at least once through PowerShell. Move towards the repository (if you use github, ...\documents\GitHub\OpenRCT2 is the default location) in PowerShell and run '.\setenv.ps1', then 'install', 'build all' and at last 'run'. If the game pops up you can quit safely and continue in VS. Running 'install' should take care of all the dependencies you need. Edited April 29, 2016 by jensj12 typo Link to comment
craftxbox Posted April 29, 2016 Author Share Posted April 29, 2016 2 minutes ago, jensj12 said: You said you were using Visual Studio to build the game. Quit VS until you got the game to run at least once through PowerShell. Move towards the repository (if you use github, ...\documents\GitHub\OpenRCT2 is the default location) in PowerShell and run '.\setenv.ps', then 'install', 'build all' and at last 'run'. If the game pops up you can quit safely and continue in VS. Running 'install' should take care of all the dependencies you need. Do you mean .\setenv.ps1? setenv.ps does not exist Link to comment
jensj12 Posted April 29, 2016 Share Posted April 29, 2016 Just now, craftxbox said: Do you mean .\setenv.ps1? setenv.ps does not exist Yes, fixed it in my post. 1 Link to comment
craftxbox Posted April 29, 2016 Author Share Posted April 29, 2016 okay so setenv.ps1 runs and quickly exits, assuming thats normal cause it didnt spit errors but install gave me this: Installing OpenRCT2 development environment for Windows Updating dependencies... The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, function, script file, or o perable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\luke_2\Source\Repos\OpenRCT22\install.ps1:58 char:22 + Invoke-WebRequest <<<< $libsUrl -OutFile $zipPath + CategoryInfo : ObjectNotFound: (Invoke-WebRequest:String) [], ParentContainsErrorRe cordException + FullyQualifiedErrorId : CommandNotFoundException Link to comment
jensj12 Posted April 29, 2016 Share Posted April 29, 2016 (edited) I think I know what you did there as I did the same thing yesterday. Don't navigate to the file and run it with powershell, first open powershell, then navigate to the repository inside powershell (using 'cd C:\Users\luke_2\Source\Repos\OpenRCT22'). Then you can run the scripts after each other inside the same powershell window. If powershell gives a security error, follow the link it gives and look there for information on how to run it in 'remoteSigned' security mode. On another note, it looks like you've cloned the repository using VS, but I highly recommend using github desktop for that (for easy syncing later on). Make sure you follow these steps (missed them the first time too) and open your own fork in github windows (the official OpenRCT2 repository will be your 'remote tracking branch'). You might want to come to the dev chat to continue the conversation there. Edit: the version of windows powershell was outdated Edited April 29, 2016 by jensj12 Link to comment
craftxbox Posted April 29, 2016 Author Share Posted April 29, 2016 i actually use SourceTree but i clone it via VS Link to comment
Broxzier Posted April 30, 2016 Share Posted April 30, 2016 (edited) You are able to call install, so that means setenv.ps has done its job. install however seems to have some errors. From the + signs in there it looks like it has some conflicts. Try resetting your cloned branch: git reset --hard upstream/develop assuming upstream is the original repository, and you are on the develop branch. Then run the install script to download the dependencies - this will rid you of all the missing files Then run `build all` to build the game and its dependencies. From here you should be able to build the game from VS. Edited May 29, 2016 by Broxzier Fixed command Link to comment
Duncans_pumpkin Posted May 26, 2016 Share Posted May 26, 2016 On 29/04/2016 at 19:47, craftxbox said: okay so setenv.ps1 runs and quickly exits, assuming thats normal cause it didnt spit errors but install gave me this: Installing OpenRCT2 development environment for Windows Updating dependencies... The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, function, script file, or o perable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\luke_2\Source\Repos\OpenRCT22\install.ps1:58 char:22 + Invoke-WebRequest <<<< $libsUrl -OutFile $zipPath + CategoryInfo : ObjectNotFound: (Invoke-WebRequest:String) [], ParentContainsErrorRe cordException + FullyQualifiedErrorId : CommandNotFoundException Generally that issue is caused when you don't have the correct version of powershell. Update powershell and Invoke-WebRequest will work. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now