User forums > Help
wxWidgets 2.6 (MSW, GCC) installation instructions
Anonymous:
OK here are the *OFFICIAL* instructions. Forget everything I posted previously.
---- (copied from the README-wx2.6.0 that will ship from now on) ---
Now that wxWidgets-2.6.0 is released, work has begun to port Code::Blocks to work with it.
Officialy, Code::Blocks still uses wxWidgets-2.4.2, until all issues from porting it to wxWidgets-2.6.0 are resolved.
KNOWN ISSUES
------------
Win32: MDI client window is not behaving correctly when maximized (initially, by code)
HOWTO build wxWidgets-2.6.0 for use with Code::Blocks
------------------------------------------------------
This process requires that you have MinGW installed. MSYS is *not* needed.
Download and decompress the wxWidgets-2.6.0 source distribution. For the rest of this small HOWTO, C:\wx2.6.0 will be assumed to be the directory wxWidgets-2.6.0 exists in.
Open a command prompt and type the following:
--- Code: ---cd C:\wx2.6.0\build\msw
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=cb
cd ..\..\contrib\build\stc
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=cb
--- End code ---
If all has gone well, the necessary libs and DLLs will exist in C:\wx2.6.0\lib\gcc_dll.
Copy the DLLs somewhere in your path (c:\windows\system32 is a good choice).
Open CodeBlocks-wx2.6.0.cbp with Code::Blocks and add the following search dirs:
--- Code: ---
Compiler:
C:\wx2.6.0\include
C:\wx2.6.0\contrib\include
Linker:
C:\wx2.6.0\lib\gcc_dll
Resource compiler:
C:\wx2.6.0\include
--- End code ---
Now hit "Compile".
That's it!
Now, fix that MDI window bug ;)
REMARKS:
- If all goes well and you build Code::Blocks with wx2.6.0, but when you launch it it crashes, delete all plugins and hit "Compile" again (it will only link the plugins).
- Different object files output dirs are used for building Code::Blocks with wx2.6.0, so you can have Code::Blocks work with either wxWidgets version (2.4.2 or 2.6.0) independently.
If you have any problems, post them in the Development forum at http://www.codeblocks.org/index.php?name=PNphpBB2&file=viewforum&f=7
Yiannis.
rickg22:
Um that was me. Forgot to log in. :oops:
Anonymous:
What do yuo mean MDI Bug please see
http://www.codeblocks.org/index.php?name=PNphpBB2&file=viewtopic&p=1172#1172
David Perfors:
When using the above instructions not every is compiled (such as OpenGL support :) or ODBC support) when you want to be able to have some special features (for compiling other programs) or remove some features (to reduce the size of the dll) you have to edit the setup.h file first.
You can find this setup.h file in the directory "<wxdir>/include/wx/msw/setup.h"
On other systems (unix, mac) you need to use the ./configure script.
Game_Ender:
Sorry, if this is the wrong area to post a problem with wx 2.6.0 building, but here is my issue: I am using CodeBlocks final beta and I followed the instruction above with only one change, I had to use "make" instead of "mingw32-make", and i got this error:
--- Code: ---if not exist gcc_msw mkdir gcc_msw
if not exist ..\..\lib\gcc_lib\msw mkdir ..\..\lib\gcc_lib\msw
if not exist ..\..\lib\gcc_lib\msw\wx mkdir ..\..\lib\gcc_lib\msw\wx
if not exist ..\..\lib\gcc_lib\msw\wx\setup.h copy ..\..\include\wx\msw\setup.h
..\..\lib\gcc_lib\msw\wx\setup.h
1 file(s) copied.
gcc -c -o gcc_msw\wxregex_regcomp.o -O2 -mthreads -DHAVE_W32API_H -I..\..\inc
ude -I..\..\lib\gcc_lib\msw -D__WXMSW__ ../../src/regex/regcomp.c
In file included from ../../src/regex/regguts.h:38,
from ../../src/regex/regcomp.c:33:
../../src/regex/regcustom.h:39:23: wx/wxchar.h: No such file or directory
--- End code ---
It was quite difficult to grab, becuase that is the first of what must be hundreds of errors (they scroll by with almost one every line). My hunch is that I am using the wrong version of make, can you help me.
BTW- wxWidgets is in c:\wx, so there are no file name spaces.
EDIT- Make version - 3.77
UPDATE-
I download Mingw 3.1.0-1 and wxWidgets is now compiling, but that only uses GCC 3.2.x. Will this compiled version of wxWidgets work wtih codeblocks? and why does this compiled with an independent Mingw install but not codeblocks?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version