Building STK in Visual C++ 2008
Posted: 04 Jan 2010, 04:27
I'm trying to compile the SVN trunk, but I can't figure out VC++ 9. I'm more of a autotools kind of person (Linux).
So I've installed Visual C++ 2008 Express, I've downloaded all 1.8GB of the STK repo and opened the VC9 project, I've downloaded the Irrlicht 1.6 sources... and this is where I'm stuck. I suspect I'm missing all kinds of dependencies, but I have no idea where to look for the header files, or how to tell VC9 where to find them.
I'm only going to ask two questions, because from those two questions, I hope that I should be able to figure out the rest on my own.
1- How do I tell VC9 where to find irrlicht.h that trunk requires? Looking at the project file in a text editor, it looks like I have to change "Additional Include Directories" somewhere, because right now, its set to a local path on hiker's machine. How do I do this from within the IDE?
2- Where do I find the GL/*.h header files? I suppose I have to tell VC9 where to find them, and I doubt windows includes them.
This is one of those days I wish Windows had a single software repository
EDIT: I figured out the irrlicht.h problem, now I just need the rest of the dependencies
EDIT2: Looks like gl.h and glu.h are included, but they're from 1996... I guess I'd better start looking for newer header files.
EDIT3: Figured out one problem: Even though WIN32 is defined in the preprocessor defines, it isn't picking it up... Win64 isn't defined either. If I change all of the WIN32s to _WIN32, then compilation gets much further.
EDIT4: I should probably have done this alreay, but it looks like if you don't set STK_LIBS, then it tries to include WIN32 rather than define it.
So I've installed Visual C++ 2008 Express, I've downloaded all 1.8GB of the STK repo and opened the VC9 project, I've downloaded the Irrlicht 1.6 sources... and this is where I'm stuck. I suspect I'm missing all kinds of dependencies, but I have no idea where to look for the header files, or how to tell VC9 where to find them.
I'm only going to ask two questions, because from those two questions, I hope that I should be able to figure out the rest on my own.
1- How do I tell VC9 where to find irrlicht.h that trunk requires? Looking at the project file in a text editor, it looks like I have to change "Additional Include Directories" somewhere, because right now, its set to a local path on hiker's machine. How do I do this from within the IDE?
2- Where do I find the GL/*.h header files? I suppose I have to tell VC9 where to find them, and I doubt windows includes them.
This is one of those days I wish Windows had a single software repository
EDIT: I figured out the irrlicht.h problem, now I just need the rest of the dependencies
EDIT2: Looks like gl.h and glu.h are included, but they're from 1996... I guess I'd better start looking for newer header files.
EDIT3: Figured out one problem: Even though WIN32 is defined in the preprocessor defines, it isn't picking it up... Win64 isn't defined either. If I change all of the WIN32s to _WIN32, then compilation gets much further.
EDIT4: I should probably have done this alreay, but it looks like if you don't set STK_LIBS, then it tries to include WIN32 rather than define it.