Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Building with wxWidgets 2.9
Cryogen:
--- Quote from: oBFusCATed on October 18, 2010, 12:29:50 am ---
--- Quote from: Cryogen on October 17, 2010, 10:34:25 pm ---2.9 has been out for ages in one form or another and more and more folks will want to use it. Once we sort this out I'll send you the result. What exactly worked well for you?
--- End quote ---
I don't see any problem for wx2.9 users? Why would they care what C::B is using?
C::B can't be ported to 2.9-only, because none of the distros provide packages for 2.9 (except gentoo:) ).
--- End quote ---
...because they're going to want to use 2.9 for the new features and not want to have to build 2 versions. Your point is probably quite valid if they're using a pre-built version of CB, though. ;-)
Loaden:
--- Quote from: jens on September 28, 2010, 07:28:17 am ---but you have to use "our" scintilla, because there are some C::B specific patches we use.
--- End quote ---
Maybe we can move the specific patches from wxScintilla to cbEditor or cbStyledTextCtrl?
stahta01:
Too All:
There is three setup.h files directly involved.
<WXWIN>\include\wx\msw\setup0.h
<WXWIN>\include\wx\msw\setup.h
<WXWIN>\lib\gcc_dll\mswu\wx\setup.h
You should verify the last two have wxUSE_STC set correctly in both or at least correctly in the last one.
The last one use used by Code::Blocks and would cause an compile or link error if it is wrong. The next to the last might cause an link or run error.
I almost never edit setup0.h; unless I have an wxWidgets patch I need to test. Or the wxWidgets team appears to have made an error.
Note: I am always using wxWidgets trunk for my test builds unless I stated otherwise in the post.
Tim S.
Loaden:
There is a possible way: using MONOLITHIC = 0
I am trying, and feedback the result.
--- Quote ---make -f makefile.gcc LDFLAGS=-s SHARED=1 BUILD=release UNICODE=1 MONOLITHIC=0 OFFICIAL_BUILD=1 RUNTIME_LIBS=static >nul
--- End quote ---
In wx2.9.2svn, the MONOLITHIC default to 0
--- Code: ---# Multiple libraries or single huge monolithic one? [0,1]
MONOLITHIC ?= 0
--- End code ---
Cryogen:
--- Quote from: stahta01 on October 18, 2010, 01:27:49 am ---
--- Quote from: Cryogen on October 17, 2010, 10:34:25 pm ---
My understanding is that wxUSE_STC on the command line overrides what's in setup.h.
--- End quote ---
You understanding IS NOT correct.
You NEED to fix your build of wxWidgets, so it does NOT build wxscintilla/STC!!!!
--- End quote ---
You may be right but, as explained, it's turned off everywhere. wxscintilla is always built. Looking at the makefile, which I don't claim to understand, it appears to be linked into the monolithic build all over the place, so maybe it's intended to be that way. What I don't understand is why it won't work for me if it works for you guys. I'm using the standard configuration and your project file. I'm now thinking that CB might be finding the libwxscintilla built with wx and not finding the mods as a result. Does scintilla build for you guys with wxUSE_STC turned off? If not, how the hell do I prevent it? All switches are off. The build is cleaned before buidling. I've gone through and manually deleted all files, including the copied setup.h. I even tried deleting the entire build and lib directories and checking them out again but nothing will prevent scintilla from building.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version