user841550
user841550

Reputation: 1075

Compiling wxWidgets 2.8.12 and 2.9.3 under Visual Studio 11 Beta

I tried tried to compile wxWidgets and got errors pertaining to missing "wx/setup.h" header file.

wxMSW-2.8.12\include\wx/platform.h(196): fatal error C1083: Cannot open include file: 'wx/setup.h': No such file or directory

Are there simple configuration changes that I can make to allow me to compile the libraries?
Environment
Windows 7 64-bit
Visual C++ 11 Beta

fyi: I have successfully built wxWidgets on this machine using Visual C++ 9.

Upvotes: 1

Views: 6347

Answers (2)

Sponge Bob
Sponge Bob

Reputation: 1621

setup.h is actually in the "msvc" directory next to "wx" in "include". You need to include the msvc folder as well and it should work.

Upvotes: 2

VZ.
VZ.

Reputation: 22753

Compiling from command line should work, see http://wxwidgets.blogspot.com/2012/02/building-wxwidgets-with-microsoft.html (although I only tested this with 2.9, not 2.8). Notice that you should use a different COMPILER_PREFIX to avoid conflicts between your existing VC9 build and this one, e.g. nmake -f makefile.vc COMPILER_PREFIX=vc100.

If you use project files then you should check that importing VC9 versions worked correctly, perhaps something bad has happened during the import process.

Upvotes: 1

Related Questions