Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README does not mention that Visual C++ 2005 Express lacks the core Platform SDK headers & import libs #106

Open
pphaneuf opened this issue Aug 22, 2014 · 4 comments

Comments

@pphaneuf
Copy link
Member

No description provided.

@pphaneuf
Copy link
Member Author

What steps will reproduce the problem?

  1. Check out the Quadra trunk branch from SVN
  2. Follow the instructions to build with MSVC 2005 Express

What is the expected output? What do you see instead?
I expected to maybe get some linker errors related to zlib, pnglib, or SDL, since I did not build them from source. Instead, I got errors from stuff like #include <windows.h> and #include <winsock.h>. For quite a while I thought the VC install had failed and kept trying to repair/reinstall it; finally I decided to google for Visual C++ 2005 Express and windows.h to see if anyone else had this kind of problem, and bingo ... the PlatformSDK directory was intentionally omitted from the 2005 Express edition!

What version of the product are you using? On what operating system?

SVN trunk. Windows XP SP3.

Please provide any additional information below.

Having installed the Platform SDK into the PlatformSDK subdirectory, I'm now getting linker errors relating to such symbols as __imp__MessageBoxA@16, which are much less mysterious but still seem kind of bad :-(.

@pphaneuf
Copy link
Member Author

Wow, I'm so out of my depth here... I think the README assumes a fully-working compiler set-up (the project files do specify the right library dependencies, I'm pretty sure). I don't remember how I did it, but I did compile with MSVC 2005 Express a while back, although it might have been the 1.2 branch rather than trunk. It did involve downloading what seemed like a petabyte of platform SDK junk. Ugh.

Help?

@pphaneuf
Copy link
Member Author

Well, okay, I've got it working now. I had to add a few import libraries to the projects, and it turned out that it really was important to build zlib and libpng from sources, following the directions in the README very carefully and being sure to actually pick the "/MT" CRT flag for the zlib/libpng builds. I also had to do some search/replace in the libpng project files to account for the visualc6 project directory having been moved from projects/ to old/ in zlib's sources, in addition to putting zlib in a directory named just "zlib" next to libpng's directory...

My changes to the Quadra project files are available from the Bazaar branch at https://code.launchpad.net/~naesten/quadra/vc2005express-build (whoa, neat, that one URL works both for looking at in a browser and pulling with bzr! I'm pretty sure that didn't work last time I tried it). I'm probably going to update the README to match my experiences pretty soon, too.

@pphaneuf
Copy link
Member Author

Okay, I've pushed my README changes to that branch now.

@pphaneuf pphaneuf assigned quadra-game and unassigned quadra-game Aug 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant