Re: select a compiler by 'mbuild -setup' but cann't find SDK



"Quanzeng " <quanzeng@xxxxxxx> wrote in message <fgcuj7
$4uo$1@xxxxxxxxxxxxxxxxxx>...
Dear all,
I was trying to run the 'mbuild -setup' command in
MATLAB.
However, the Microsoft Visual C++ compilers did not
work,following is the details when I run :

mbuild -setup
Please choose your compiler for building standalone
MATLAB
applications:

Would you like mbuild to locate installed compilers
[y]/n?
y

Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1
\MATLAB\R2007a\sys\lcc
[2] Microsoft Visual C++ 2005 Express Edition in
C:\Program Files\Microsoft Visual Studio 8
[3] Microsoft Visual C++ .NET 2003 in C:\Program
Files\Microsoft Visual Studio .NET 2003
[4] Microsoft Visual C++ 6.0 in C:\Program
Files\Microsoft
Visual Studio

[0] None

Compiler: 2

Please verify your choices:

Compiler: Microsoft Visual C++ 2005 Express Edition
Location: C:\Program Files\Microsoft Visual Studio 8

Are these correct?([y]/n): y


***********************************************************
******************
Error: The Microsoft Platform Software Development Kit
(SDK) was not found.
Microsoft Visual C++ 2005 Express Edition
requires that the SDK is
installed properly. MATLAB Compiler uses the
environment variable
"MSSdk" to find the SDK. If it is installed
properly, please
verify that the environment variable "MSSdk"
points to the
correct location. Otherwise, install the SDK
and
try again.

***********************************************************
******************

Trying to update options file: C:\Documents and
Settings\QQW8\Application
Data\MathWorks\MATLAB\R2007a\compopts.bat
From template: C:\PROGRA~1
\MATLAB\R2007a\bin\win32\mbuildopts\msvc80freecompp.bat

Done . . .


Then I follow the instruction of 'Using Visual C++ 2005
Express Edition with the Microsoft Platform SDK' at
http://msdn2.microsoft.com/en-us/express/aa700755.aspx
to
install the SDK and run the 'mbuild -setup' again.
Still,
it didn't work.

Anyone has a sugestion?

Thanks in advance.



Hi,
I have found the answer at other place. Here is the copy
of the answer (thanks Patrick):

Subject: Re: how do define MSSdk variable

From: Patrick Schoeneich

Date: 02 Aug, 2007 16:02:50

Message: 2 of 4
Reply to this messageAdd author to My Watch List
View original formatFlag as spam
Hi,
I found your post as I had exactly the same problem !

To add the MSSdk environment variable, go to
Control Panel -> System
then "Advanced" and "Environment variables"

Then create a new variable with name "MSSDk" and value
C:\Program Files\Microsoft Platform SDK for Windows Server
2003 R2
(this is where the sdk platform is installed).

Then restart matlab and it should work...

Patrick


.



Relevant Pages

  • Re: How to make application work on Symbol MC3000?
    ... You can't say that, because an eVC program ... there's something wrong with Visual Studio or the .NET CF. ... install of Visual Studio or the SDK. ... For simple applications you don't need any Symbol SDK at all. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Cheap Compiler and a Book
    ... > should choose to install both the MSDN Express Library and SQL Server 2005 ... If you have the full Visual Studio 2005, ... Precompiled header files, to give a short explanation, prevent the compiler ...
    (comp.lang.cpp)
  • Re: Standalone .NET CF SDK?
    ... NETCF SDK installer is included with NDP ... %ProgramFiles%\Microsoft Visual Studio ... at the moment I'm setting up a standalone server for continuous ... I've googled a while and it seems like I've to install the full Visual ...
    (microsoft.public.dotnet.framework.compactframework)
  • SmartPhone C# build fails
    ... I installed the SmartPhone 2003 SDK yesterday and I'm having trouble ... I'm using Visual Studio .NET 2003 on a WinXP Pro machine. ... Smartphone, ... repairing my Visual Studio install, and adding the SDK back in - but ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: help needed about mex setup. thanks
    ... Select a compiler: ... The Microsoft Platform Software Development Kit (SDK) was not ... environment variable "MSSdk" points to the correct location. ... install the SDK and try again. ...
    (comp.soft-sys.matlab)