Compile Pioneer, Windows 8, Visual Studio 2012

Pioneer is an open-ended space adventure game. Explore the galaxy, make your fortune trading between systems, or work for the various factions fighting for power, freedom or self-determination.
Homepage: http://pioneerspacesim.net/
IRC: http://pioneerspacesim.net/irc
Downloads: https://pioneerspacesim.net/page/download/
Post Reply
Bugbear
Private
Posts: 78
Joined: Thu Nov 11, 2010 9:08 am

Compile Pioneer, Windows 8, Visual Studio 2012

Post by Bugbear »

Hi all, I've done a bit of searching in this forum with no success...please forgive me if this question has been answered elsewhere.I've got a Windows 8 box with a fresh install of Visual Studio 2012. Following the compile Pioneer instructions, I'm getting an error.I've downloaded the pioneer and pioneer-thirdparty git repositories (both repositories are in sibling folders), and opened the pioneerwin32vs2012pioneer.sln project in Visual Studio, then hit F7 to build.1 IntelliSense: cannot open source file "GL/glu.h" c:UsersadrianDocumentsGitHubpioneer-thirdpartywin32includeGLglew.h 1180 1 textError 2 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 graphicsError 3 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 textError 4 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 guiError 5 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 colliderError 6 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 galaxyError 7 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 terrainError 8 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 scenegraphError 9 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 uiError 10 error C1083: Cannot open include file: 'GL/glu.h': No such file or directory c:usersadriandocumentsgithubpioneer-thirdpartywin32includeglglew.h 1180 1 gameuiSo...doing a bit of googling to find out how to include the GL folder, I think I've determined that there's actually a problem with the pioneer.sln file itself.If I look at the Solution Explorer at the pioneer node, there's an error message:pioneer (load failed)The project requires user input. Reload the project for more information.However, when I reload the project, I get the same error.Any suggestions from the hive mind?Cheers.
fluffyfreak
Private
Posts: 1292
Joined: Sun Nov 27, 2016 12:55 pm

RE: Compile Pioneer, Windows 8, Visual Studio 2012

Post by fluffyfreak »

I'll take a look when I get home in an hour or so, that is odd though as the "glu.h" should have been installed with vs2012... I think, I don't recall having any trouble when I recently installed it on my laptop.
Bugbear
Private
Posts: 78
Joined: Thu Nov 11, 2010 9:08 am

RE: Compile Pioneer, Windows 8, Visual Studio 2012

Post by Bugbear »

FYI, I spun up a virtual machine with Windows 8 and Visual Studio 2012, still getting the same symptoms.
fluffyfreak
Private
Posts: 1292
Joined: Sun Nov 27, 2016 12:55 pm

RE: Compile Pioneer, Windows 8, Visual Studio 2012

Post by fluffyfreak »

Ah ha, it's not "glu.h" that it can't find it's "glew.h" in the "pioneer-thirdparty" which it thinks should be checked out to : "c:usersadriandocumentsgithubpioneer-thirdpartywin32includegl"So I'm assuming that your Pioneer directory is checked out to : "c:usersadriandocumentsgithubpioneer" or something like that yes? In which case everything should "just-work"(tm)... however you have an error on loading the solution?Does it have any more information about that error? I've just tried moving my "pioneer-thirdparty" directory away to see if it gives an error on load but it doesn't. So things to check I guess. The Pioneer project gives an error on loading, it shouldn't as the version in master seems ok.Can you make sure that there's no changes to the files in the "pioneerwin32vs2012" folder and if there are revert them?Then could you check the "Additional Include Directories" in the Pioneer project match the following:../../../src;../../src;../../../pioneer-thirdparty/win32/include;../../../../pioneer-thirdparty/win32/include;../../win32/include;../../include;../../../contrib;../../contribhmm, some awesome repetition there! :) Does your Git config have anything like AutoCRLF, SafeCRLF, or other line ending conversion enabled too? Also do you get this problem if you download the ZIP of the repository from GitHub and extract that into a folder alongside you checked out copy of Pioneer? It doesn't have tobe a folder called "Pioneer", I have "Pioneer" - "Pioneer-ssh" - and "Pioneer-hacking" folders alongside my "pioneer-thirdparty" folder :) ...ok lets just try that for now and see if there's anything different that might cause it. Andy
Bugbear
Private
Posts: 78
Joined: Thu Nov 11, 2010 9:08 am

RE: Compile Pioneer, Windows 8, Visual Studio 2012

Post by Bugbear »

Hey, thanks for the tips.On reloading the solution file, I've been able to get the following error:Project 'pioneer' could not be loaded because this edition of Visual C++ does not support classic style native application or managed projects.C:UsersadrianDocumentsGitHubpioneerwin32vc2012pioneer.vcxproj : error : The operation could not be completedDon't ya just love those descriptive error messages.I'm not able to view or edit any of the pioneer project settings - I'm assuming this is a result of the errors being thrown when the project file is being loaded.When I open the project file in a text editor, I am able to see the include directories, and they are exactly as you have specified above.I've been using the default GIT settings; I'll have to work out whether any line ending conversions have been enabled.I did try downloading the ZIPs of the two repositories and extracted to their own folders. Again, I'm getting the same error when loading and attempting to compile pioneer.Incidentally, the file glew.h DOES exist in the following directories:pioneer-thirdpartysourceglewincludeGLpioneer-thirdpartywin32includeGLMaybe I should try installing Visual Studio 2010...I'll give it a try and get back to you on that one, but if you can see what's going on with VS2012, it would be appreciated.Cheers
fluffyfreak
Private
Posts: 1292
Joined: Sun Nov 27, 2016 12:55 pm

RE: Compile Pioneer, Windows 8, Visual Studio 2012

Post by fluffyfreak »

Ok I think I know what this is, there's TWO editions of Visual Studio 2012 Express. One is for Metro style apps and won't work with Pioneer.One is for Desktop style apps with Windows XP / 2000 / 7 / etc support and will work with Pioneer. I have both installed myself and just tried it and I get the same error message :)Ok that looks like it's the problem. This is the version you want here: [url]http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-windows-desktop[/url]
Bugbear
Private
Posts: 78
Joined: Thu Nov 11, 2010 9:08 am

RE: Compile Pioneer, Windows 8, Visual Studio 2012

Post by Bugbear »

Yep, that's fixed it. (Damn Metro - a solution in search of a problem...at least as far as non-touch devices are concerned) Thanks for your help.Currently compiling... ... ... Success!!
fluffyfreak
Private
Posts: 1292
Joined: Sun Nov 27, 2016 12:55 pm

RE: Compile Pioneer, Windows 8, Visual Studio 2012

Post by fluffyfreak »

Yep Metro on Desktop is every kind of dumb :)Glad you've got it sorted now! I think Microsofts approach to all this is making the need to have a Code::Blocks solution ever more urgent, not to mention if we ever want to support 64-bit and still use free software (yet another ridiculous arbitrary limitation!).
Post Reply

Return to “Pioneer”