This website uses browsing/session and functional cookies to ensure you get the best experience. Learn More

YARP and Visual Studio 2005 Express Edition

From Wiki for iCub and Friends
Jump to: navigation, search

YARP can be compiled with Visual Studio 2005 Express Edition (available at no charge from Microsoft's website: http://msdn.microsoft.com/vstudio/express/default.aspx).

You need also the Microsoft platform SDK.

Follow the instructions here: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

If you are careful enough you can manage to remove enough components from the SDK platform so that the installation does use too much of your hard drive (after all, who needs all that stuff?).


Important: DON'T FORGET to follow steps 3 and 4, failing to do so will cost you a lot of pain trying to figure out why CMake does not work and/or ACE does not link.

For your convenience we report them here:

  • Step 3: "Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box":

Add the paths to the appropriate subsection:

 -Executable files: $(VSInstallDir)..\Microsoft Platform SDK for Windows Server 2003 R2\Bin
 -Include files: $(VSInstallDir)..\Microsoft Platform SDK for Windows Server 2003 R2\Include
 -Library files: $(VSInstallDir)..\Microsoft Platform SDK for Windows Server 2003 R2\Lib
  • Step 4: Update the corewin_express.vsprops file.

Edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and

Change the string that reads:

  AdditionalDependencies="kernel32.lib" 

to

  AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
  advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"


Errors you might get if SDK is not correctly installed:

  • CMake shows the following error:
  "LINK : fatal error LNK1104: cannot open file 'user32.lib'"

(see also: http://www.cmake.org/Wiki/CMake_FAQ)

  • Unresolved external errors when building ACE
Personal tools
Namespaces

Variants
Actions
Navigation
Print/export
Toolbox