Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Building with wxWidgets 2.9

<< < (6/10) > >>

Loaden:
New configure:

--- Code: ---make -f makefile.gcc LDFLAGS=-s SHARED=1 BUILD=debug UNICODE=1 DEBUG_INFO=0 DEBUG_FLAG=1 MONOLITHIC=0 OFFICIAL_BUILD=1 RUNTIME_LIBS=static >nul
make -f makefile.gcc LDFLAGS=-s SHARED=1 BUILD=release UNICODE=1 DEBUG_INFO=0 DEBUG_FLAG=0 MONOLITHIC=0 OFFICIAL_BUILD=1 RUNTIME_LIBS=static >nul
--- End code ---
see: http://trac.wxwidgets.org/ticket/12574

Cryogen:

 OK, progress so far...

Part 1 - Overcome stoopidity.
No-one picked up that I was using e.g. wxUSE_STC on the command line, rather than USE_STC, least of all me!!. Deary me. Discovering that has allowed me to build wx as a monolithic lib, as well.

Part 2 - Experiments
I've now tried building monolithic and shared lib versions, using all combinations of STC and PropGrid on and off. I've found that CB will build with the wx version of propgrid. It will build using the shared libs even with USE_STC on. The problem is that wxSmith won't build with the wx version of propgrid. The version in CB is quite different to that one. I think it's because we've got the latest and the wx version has been modified for wx but that causes issues, too. There are various other problems depending on how wx is built, too. Whatever I do I can't get both CB and wxSmith to build with the same build of wx. That's a real bummer. Has anyone achieved it?

Maybe we need to create a wx29 branch at some stage and work on getting it running. It's important for wxSmith because users (and we) are going to want to use the funky new controls that it brings and to do that we need to build wxSmith with 2.9. I've made a start on getting it to work with the 2.9 version but there's more to do, yet.
Some things in CB's code need to change due to deprecated or missing functions, etc. I'll keep chipping away at that and I'm happy to contribute whatever comes out if it to the greater good. I know Tim's made some progress, too, so we should make sure that the work isn't lost. A new branch would seem to be a good way to do it.

Cheers.

Loaden:

--- Quote from: Cryogen on October 28, 2010, 02:31:57 am ---A new branch would seem to be a good way to do it.

--- End quote ---
Agree. :)

daniloz:
Sorry to bump an old thread, but I cannot build C::B using wxWidgets 2.9.1... I have an error while compiling the SDK:

--- Code: ----------------- Build: sdk in Code::Blocks ---------------

mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DwxDEBUG_LEVEL=0  -DEXPORT_LIB -DEXPORT_EVENTS -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=1 -DWXMAKINGDLL_SCI    -IC:\Work\wxWidgets-2.9.1\include -IC:\Work\wxWidgets-2.9.1\contrib\include -IC:\Work\wxWidgets-2.9.1\lib\gcc_dll_32\mswu -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude -Iinclude\tinyxml -Iinclude\scripting\bindings -Iinclude\scripting\include -Iinclude\scripting\sqplus -Iinclude\mozilla_chardet  -c C:\Work\codeblocks_trunk64\src\sdk\cbauibook.cpp -o .objs\sdk\cbauibook.o
C:\Work\wxWidgets-2.9.1\include/wx/event.h: In member function 'void cbAuiNotebook::MinimizeFreeSpace(wxAuiTabCtrl*)':
C:\Work\wxWidgets-2.9.1\include/wx/event.h:2997:18: error: 'virtual bool wxEvtHandler::ProcessEvent(wxEvent&)' is inaccessible
C:\Work\codeblocks_trunk64\src\sdk\cbauibook.cpp:520:36: error: within this context

--- End code ---

I've changed setup0.h (wxUSE_STC=0) and used the following command line to build wxWidgets:

--- Code: ---mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 USE_STC=0 USE_PROPGRID=1 BUILD=release clean
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 USE_STC=0 USE_PROPGRID=1 BUILD=release

--- End code ---

I'm trying to build on Vista 32 with MINGW gcc (tdm). Result of gcc -v

--- Code: ---Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw32/bin/../libexec/gcc/mingw32/4.5.1/lto-wrapper.exe
Target: mingw32
Configured with: ../../src/gcc-4.5.1/configure --build=mingw32 --enable-languages=c,ada,c++,fortran,objc,obj-c++ --enable-threads=win32 --enable-libgomp --enabl
e-lto --enable-fully-dynamic-string --enable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-nls --disable-win32-registry --disable-symvers --p
refix=/mingw --disable-werror --enable-cxx-flags='-fno-function-sections -fno-data-sections' --with-pkgversion=tdm-1 --enable-sjlj-exceptions --with-bugurl=http
://tdm-gcc.tdragon.net/bugs
Thread model: win32
gcc version 4.5.1 (tdm-1)

--- End code ---

I don't quite get the error, any help would be appreciated...

Edit:
I'm using the CodeBlocks_wx29 project and latest version from trunk r7032...

oBFusCATed:

--- Quote from: Loaden on October 28, 2010, 02:39:24 am ---
--- Quote from: Cryogen on October 28, 2010, 02:31:57 am ---A new branch would seem to be a good way to do it.

--- End quote ---
Agree. :)

--- End quote ---
There is already a wx/wxsmith branch why would you need another one?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version