wxWidgets + VS2008 = ?

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Zdravko
Earned a small fee
Earned a small fee
Posts: 16
Joined: Sat Jun 04, 2005 8:11 am

wxWidgets + VS2008 = ?

Post by Zdravko » Sat Jan 12, 2008 4:05 pm

I have a VS2008. How do I install wxWidgets?

Zdravko
Earned a small fee
Earned a small fee
Posts: 16
Joined: Sat Jun 04, 2005 8:11 am

Post by Zdravko » Sun Jan 13, 2008 7:52 am

As no one is willing to help me, I will have to report a significant bug! Wxwidgets DOES NOT build under VS2008.

1. I downloaded the wxMSW - installer for Windows.
2. I installed it under c:\wxwidgets
3. I modified include/wx/msw/setup.h according to my needs, e.g. I specified unicode usage.
4. Since I wanted to have static linkage, I ran:
c:\wxwidgets\build\msw>nmake -f makefile.vc RUNTIME_LIBS=static BUILD=debug
and got:
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /nologo /TC /Fovc_mswd\wxregex_regcomp.obj /MTd /DWIN32 /Zi /Fd..
\..\lib\vc_lib\wxregexd.pdb /D_DEBUG /Od /I..\..\include /I..\..\lib\vc_lib\m
swd /D__WXMSW__ ..\..\src\regex\regcomp.c
regcomp.c
c:\wxwidgets\include\wx/chkconf.h(1854) : fatal error C1189: #error : "wxDataVi
ewCtrl requires wxVariant"
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.
I checked setup.h once more - the wxVariant was set to 1. Sorry guys, you did something wrong!

User avatar
T-Rex
Moderator
Moderator
Posts: 1188
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Sun Jan 13, 2008 6:47 pm

wxWidgets perfectly builds with Visual Studio 2008. The approach is same as for Visual Studio 2005.

http://wxwidgets.info/?q=wxwidgets_and_vc2005_video

Zdravko
Earned a small fee
Earned a small fee
Posts: 16
Joined: Sat Jun 04, 2005 8:11 am

Post by Zdravko » Mon Jan 14, 2008 5:55 am

Ok, I will have a second look at it, then.

arust
Knows some wx things
Knows some wx things
Posts: 34
Joined: Tue Jan 15, 2008 5:13 am
Location: Beijing, China

Post by arust » Tue Jan 15, 2008 5:27 am

I'm using visual studio 2008 express, everything is OK.But in VS2005 express, it's take an error during building wxWidgets, I don't know why? :oops:

Post Reply