Building wxWidgets

Building the wxWidgets library may me needed on some machines if the lib is not available in binary form or if you want to work against a later version of the library. The base library is the lib that is needed for everything except for VSCP Works which needs the full GUI lib.

If you are using one of the supported compilers, you can download the pre-built in binaries from

  [[https://sourceforge.net/projects/wxwindows/files/3.0.0/binaries/]]

or

  [[ftp://ftp.wxwidgets.org/pub/3.0.0/binaries/]]
  

change version as necessary.

Windows

All makefiles and project are located in build\msw directory.

Microsoft Visual C++ Compilation

From command line using the provided makefiles

1

Open a “Visual Studio Command Prompt” window shortcut to which must have been installed to the “Start” menu or the “Start” screen by MSVS installation.

2

Change directory to %WXWIN%\build\msw and type

     > nmake /f makefile.vc

to build wxWidgets in the default debug configuration as a static library. You can also do

     > nmake /f makefile.vc BUILD=release

to build a release version. Finally, you can also add “TARGET_CPU=X64” to nmake command line to build Win64 versions (this only works if you are using a 64 bit compiler, of course).

See “Configuring the Build” for more information about the additional parameters that can be specified on the command line.

3

To verify your build, change the directory to samples\minimal and run the same nmake command (with the same parameters there), this should create a working minimal wxWidgets sample.

4

If you need to rebuild, use “clean” target first or “nmake /a”.

For 64 bit debug
nmake /f makefile.vc BUILD=debug  TARGET_CPU=X64
For 64 bit release
nmake /f makefile.vc BUILD=release  TARGET_CPU=X64
For 32 bit debug
nmake /f makefile.vc BUILD=debug  TARGET_CPU=X32

For 32 bit debug
nmake /f makefile.vc BUILD=release  TARGET_CPU=X32
note

3.0.2 and Visual studio 2015 must have file <wxdir>\src\tiff\libtiff\tif_config.h - line 367

change:

#define snprintf _snprintf

to:

#if (defined(_MSC_VER) && (_MSC_VER < 1900))
  #define snprintf _snprintf
#endif

https://forums.wxwidgets.org/viewtopic.php?t=40491

 
coding/building_wxwidgest.txt · Last modified: 2015/08/21 10:31 by akhe
[unknown button type]
 
Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki