Results 1 to 6 of 6
  1. #1
    Join Date
    May 2011
    Location
    Katy, TX
    Posts
    9

    wxWidgets-2.9.4 and Visual Studio 2012 Express Edition

    Was just curious if anyone has any advice on getting wxWidgets-2.9.4 to work with Visual Studio 2012 Express Edition on a Windows 7 PC. Was trying to follow along with the installation instructions that are on the C++ Volumes 1-6 Complete DVD. Currently on Volume 4 VTM's however they are out of date as well as I keep getting errors trying to get wxWidgets to work or install properly.

    Currently have the following setup:
    Code:
    wxWidgets Version 2.9.4
    
    =======================================
    For Setting up the Enviroment
    =======================================
    VC++ Directories ->(Include Files/Directories)
    ---------------------------------------
    C:\Dev\wxWidgets-2.9.4\include
    
    ---------------------------------------
    VC++ Directories ->(Library Files/Directories)
    ---------------------------------------
    C:\Dev\wxWidgets-2.9.4\lib
    
    =======================================
    For Setting up your project
    =======================================
    C/C++ -> (Preprocessor Definitions)
    ---------------------------------------
    WIN32 		//Windows Specific
    _DEBUG 		//Windows Specific
    _WINDOWS 	//Windows Specific
    
    -----------Add The Following-----------
    wxUSE_GUI=1
    _WXDEBUG_
    WXDEBUG=1         
    _CRT_SECURE_NO_DEPRECATE
    _CRT_NONSTDC_NO_DEPRECATE
    
    ---------------------------------------
    C/C++ -> (Code Generation)
    ---------------------------------------
    Runtime Library = Multi-threaded Debug DLL (/MDd)
    
    ---------------------------------------
    C/C++ -> (General)
    ---------------------------------------
    Additional Include Directories = C:\Dev\wxWidgets-2.9.4\lib\vc_lib\mswud
    
    
    =======================================
    Linker-> (Input / Additional Dependecies)
    ---------------------------------------
    comctl32.lib		//Windows Specific
    rpcrt4.lib		//Don't need to worry about it, just needs it
    wsock32.lib		//Internet type stuff
    wxmswd.lib 		//The d represents a debug version
    One thing I have noticed is that wxWidgets has updated their file naming convention. I've tried using the following library files but still not having any luck.
    wxmswd.lib = Error Can't Find file
    wxmsw29ud.lib = Error cannot open file

    The two files below get the same two errors
    wxmsw29ud_core.lib =
    wxbase29u.lib
    Code:
    Error	1	error CVT1100: duplicate resource.  type:MANIFEST, name:1, language:0x0409	C:\Users\gcla\Documents\Visual Studio 2012\Projects\wxWidgetTest\wxWidgetTest\CVTRES	wxWidgetTest
    Error	2	error LNK1123: failure during conversion to COFF: file invalid or corrupt	C:\Users\gcla\Documents\Visual Studio 2012\Projects\wxWidgetTest\wxWidgetTest\LINK	wxWidgetTest
    Any help or suggestions would be appreciated, Thanks!

  2. #2
    Join Date
    Jun 2003
    Location
    Trier, Germany
    Posts
    1,350
    As you have already noticed, the VTMs are unfortunately quite outdated by now and this is one of the places where it shows.

    Be prepared to consult the official documentation to fill the gaps. As for installation issues, the wxWiki has a ton of material on the subject. Two things to note though: VS 2012 has only been out a few months so don't expect too much material covering it. There's no official support for it in wxWidgets (yet), so if it breaks, it's likely that you will be on your own. Second, Version 2.9 of wxWidgets is currently not stable. So don't expect too much official support for it either. Usually when people chose the development version, they should really know what they are doing.

    Both of these points can be real killers for a beginner. So you might want to consider to downgrade to VS2010/wx2.8 instead, if only for the better documentation and support, at least until you're more comfortable with the library.

  3. #3
    Join Date
    Jun 2011
    Posts
    75
    Try these links:

    http://forums.wxwidgets.org/viewtopic.php?f=19&t=35788

    http://wxwidgets.blogspot.cz/2012/07...xperience.html

    http://old.nabble.com/wx_vc11.sln-an...d34470910.html

    It looks like you open the wx_vc11.sln and then build your binaries from there. There have been some people who have cleaned up the sln and posted them so this may help also.

    I was thinking of playing around with wxWidgets 2.9.x for a project soon, so if I have any more insight during I will post back :-).

    Michael
    Last edited by MichaelV_; 12-18-2012 at 10:00 AM. Reason: added another link

  4. #4
    Join Date
    Jun 2011
    Posts
    75
    I was not sure if I should just edit my last post or re-post, so I re-posted :-).

    So I could not get 2.9.4 to build inside of VS 2012. So instead I utilized the makefile.vc that was included. Here are the steps I used:

    Step 01: Open a developer command prompt.
    Step 02: Change your directory to where you unziped your wxWidgets.
    Step 03: Change your directory to \build\msw
    Step 04: run the following command: nmake /f makefile.vc

    Worked perfectly for me and I was able to get a general Hello World window up and running.

    I got this information from:

    Building wxWidgets with Microsoft Visual C++ 11

    Hope this helps!

    Michael

    Edit:

    The wiki is all over the place. I found this in a random place as I was looking through. Basically says the same as my post.

    http://wiki.wxwidgets.org/Compiling_...he_Commandline
    Last edited by MichaelV_; 12-18-2012 at 01:11 PM. Reason: added wiki link

  5. #5
    Join Date
    May 2011
    Location
    Katy, TX
    Posts
    9
    Thanks for the replies.

    Yeah, I also posted on the wxWidgets forum as well and was able to get my problem fixed.

    http://forums.wxwidgets.org/viewtopic.php?f=19&t=36557

    Get rid of one problem onto another one *sigh*. Problem I have now is that I'm using the Visual Studio 2012 Express edition, so go figure Microsoft decided to disable "adding resources" in the express edition. Trying to figure out how I can add the BMP images without spending the 500 bucks just to learn. Also would be nice to have a copy of those BMP images they used in the VTM.

  6. #6
    Join Date
    Jun 2011
    Posts
    75

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •