kevincdurand1 / quadra

Automatically exported from code.google.com/p/quadra
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 :-(.

Original issue reported on code.google.com by naesten on 8 Jun 2010 at 5:57

GoogleCodeExporter commented 8 years ago
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?

Original comment by pphaneuf on 10 Jun 2010 at 4:49

GoogleCodeExporter commented 8 years ago
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.

Original comment by naesten on 10 Jun 2010 at 9:11

GoogleCodeExporter commented 8 years ago
Okay, I've pushed my README changes to that branch now.

Original comment by naesten on 10 Jun 2010 at 11:12