r2136 Compile error mmdeviceapi.h

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: r2136 Compile error mmdeviceapi.h

Re: r2136 Compile error mmdeviceapi.h

by Graf Zahl » Wed Jan 27, 2010 1:39 am

Well, I don't think we need this anymore.


EDIT: Grrr, I should have listened to my bad feeling about this. Microsoft cannot be trusted with such stuff. Now my VS2008 installation which I need for work is broken.

Re: r2136 Compile error mmdeviceapi.h

by Guest » Tue Jan 26, 2010 8:16 pm

You could have lightened your download even further: You don't need the IA64 Libraries, since those are only for Itaniums. You also don't need the x64 Libraries if you don't plan on making any 64-bit binaries (which you can't do without hacking the Visual C++ Express Edition anyway).

Re: r2136 Compile error mmdeviceapi.h

by Enjay » Tue Jan 26, 2010 7:08 pm

For info, with some help from Gez, I have managed to get the right files and compiled both Zdoom and GZdoom. I've tested them both and they seem OK.

For info, you can do this with a relatively small download using the Web setup program from the MS SDK website. This is a screenshot showing the sections that I downloaded.

Image
(it says 0 bytes because I already have them - the DL took about 15 minutes for me)

I don't suppose all of that is needed, but it worked.

When setting up the path to the include directory in Visual C++, it needs to be quite high in the list otherwise your get a bunch of errors mentioning "REFPROPVARIANT". Moving the new include directory to the top of the list cured this. I'm not sure, however, if I should simply remove references to the old SDK include directory. I'll check that tomorrow. It's getting late.

Re: r2136 Compile error mmdeviceapi.h

by randi » Tue Jan 26, 2010 5:47 pm

Graf Zahl wrote:the very latest SDK
Err, I'm pretty sure this was part of the Windows Vista SDK, which I believe was 6.0 and released some three years ago. It's certainly in the current version 7.0 of the Windows SDK, at any rate. Maybe I could try and pull the necessary bits out of the header, but I don't really like to copy-paste COM interface definitions out of their SDK header files.
Graf Zahl wrote:I see no real need to upgrade the Windows SDK
I can see a configuration utility the Windows SDK installs to select the active version of the SDK, so it looks like you can have multiple installations of different versions of the SDK. So you wouldn't exactly need to upgrade, so to speak.

Re: r2136 Compile error mmdeviceapi.h

by Gez » Tue Jan 26, 2010 2:15 pm

Here's the start of the file, so you can see what's #included in it.
Spoiler:
Also, you can get a mmdeviceapi.zip from the SVN FTP, but I'm not sure it'd be helpful; in my experience mixing and matching parts from different versions of an SDK seldom result in something that accepts to work.

Re: r2136 Compile error mmdeviceapi.h

by Enjay » Tue Jan 26, 2010 1:48 pm

Is it just a header or does it have any dependant includes and would it be possible for you to upload it, and any dependancies somewhere? I've looked at the SDK and the size of the download is a bit rich for my internet connection. :?

Re: r2136 Compile error mmdeviceapi.h

by Gez » Tue Jan 26, 2010 12:10 pm

I have it.

Re: r2136 Compile error mmdeviceapi.h

by Graf Zahl » Tue Jan 26, 2010 11:47 am

It's something Vista related. I noticed I don't have it either - and I see no real need to upgrade the Windows SDK for it because I fear that'd cause more problems than it'll solve. Can't you place the stuff you need directly into the source so that ZDoom does not require the very latest SDK which most people do not have?

r2136 Compile error mmdeviceapi.h

by Enjay » Tue Jan 26, 2010 11:42 am

Code: Select all

.\src\sound\music_win_mididevice.cpp(45) : fatal error C1083: Cannot open include file: 'mmdeviceapi.h': No such file or directory
GZdoom 730 too.

I'm guessing that this file should be part of an MS SDK or something but I have been keeping my machine up to date and I don't seem to have this file. :?

[edit] It seems this should come with "Vista aware SDKs". Any suggestions? [/edit]

Top