Author Topic: Building with wxWidgets 2.9  (Read 37040 times)

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Building with wxWidgets 2.9
« on: September 28, 2010, 01:41:27 am »

 Has anyone managed to do this, lately? I've read everything I can find here and elsewhere but can't get it to work.

Firstly, wx2.9.1 release refused to build with both mingw and TDM. I eventually managed to get the latest SVN (2.9.2) to build with TDM but nothing I've tried will get C::B to build.

I've tried every combination of wxUSE_PROPGRID and wxUSE_STC, with and without the removal of the propgrid and scintilla requirements from the build file. I saw some propgrid errors but they seemed to stop when using wxUSE_PROPGRID=1 and removing propgrid from the build settings but I can't get past a bunch of scintilla errors whatever I try. I've rebuilt wx so many times I've lost count. If anyone has managed it I'd love to know how you did it.

Cheers,

  Cryo.


Online stahta01

  • Lives here!
  • ****
  • Posts: 7602
    • My Best Post
Re: Building with wxWidgets 2.9
« Reply #1 on: September 28, 2010, 03:31:05 am »
I am trying to do it; but, it will take about 24 hours to finish since I have other things to do.
It worked with 2.9.0; I do not remember if it worked with 2.9.1.

I used wxWidgets version of PropertyGrid and Code::Blocks version of STC the last time it worked for me.

But, Code::Blocks STC has changed since then. And, wxWidgets has had major changes.

Will post my results, when I succeed or fail.

For my first try
 Using wxWidgets trunk SVN 65660.
 And, the TDM's GCC Compiler shipped with Code::Blocks 10.05
 Under MS Windows 6.1 AKA 7 32bit (64bit was broken in C::B the last time I tried.)

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online stahta01

  • Lives here!
  • ****
  • Posts: 7602
    • My Best Post
Re: Building with wxWidgets 2.9
« Reply #2 on: September 28, 2010, 06:05:22 am »
On the Building of Code::Blocks against wxWidgets are you having:
Compiler errors?
Linking errors?
or Run-time errors?

It compiled and linked OK for me then I get run-time errors.

patch for CodeBlocks.cbp; that I am using on second re-build of Code::Blocks trunk; it has not finished yet. I will check on it in morning. CB Loaded OK

Code
Index: src/CodeBlocks.cbp
===================================================================
--- src/CodeBlocks.cbp    (revision 6647)
+++ src/CodeBlocks.cbp    (working copy)
@@ -128,27 +128,6 @@
                     <Add library="gdi32" />
                 </Linker>
             </Target>
-            <Target title="wxpropgrid">
-                <Option output="devel\wxpropgrid" prefix_auto="1" extension_auto="1" />
-                <Option working_dir="devel" />
-                <Option type="3" />
-                <Option compiler="gcc" />
-                <Option createStaticLib="1" />
-                <Compiler>
-                    <Add option="-DWXMAKINGDLL_PROPGRID" />
-                    <Add option="-DwxPG_USE_WXMODULE=0" />
-                    <Add directory="sdk\wxpropgrid\include" />
-                    <Add directory="include" />
-                </Compiler>
-                <ResourceCompiler>
-                    <Add directory="sdk\wxpropgrid\include" />
-                </ResourceCompiler>
-                <Linker>
-                    <Add option="-Wl,--enable-auto-image-base" />
-                    <Add option="-Wl,--add-stdcall-alias" />
-                    <Add option="-Wl,--enable-auto-import" />
-                </Linker>
-            </Target>
             <Target title="sdk">
                 <Option output="devel\codeblocks" prefix_auto="1" extension_auto="1" />
                 <Option working_dir="devel" />
@@ -169,7 +148,6 @@
                     <Add directory="include\scripting\include" />
                     <Add directory="include\scripting\sqplus" />
                     <Add directory="include\mozilla_chardet" />
-                    <Add directory="sdk\wxpropgrid\include" />
                 </Compiler>
                 <Linker>
                     <Add option="-Wl,--enable-auto-image-base" />
@@ -179,13 +157,11 @@
                     <Add library="shfolder" />
                     <Add library="txml" />
                     <Add library="wxscintilla" />
-                    <Add library="wxpropgrid" />
                     <Add library="sqplus" />
                     <Add library="sqstdlib" />
                     <Add library="squirrel" />
                     <Add directory="devel" />
                     <Add directory="sdk\scripting\lib" />
-                    <Add directory="sdk\propgrid" />
                 </Linker>
                 <ExtraCommands>
                     <Add before="build_tools/autorevision/autorevision +wx +int +t . include/autorevision.h" />
@@ -212,7 +188,6 @@
                     <Add option="-Wl,--enable-auto-import" />
                     <Add library="codeblocks" />
                     <Add library="wxscintilla" />
-                    <Add library="wxpropgrid" />
                     <Add library="shfolder" />
                     <Add library="kernel32" />
                     <Add library="user32" />
@@ -532,14 +507,14 @@
             </Target>
             <Environment>
                 <Variable name="WX_SUFFIX" value="u" />
-                <Variable name="WX_VERSION" value="28" />
+                <Variable name="WX_VERSION" value="29" />
                 <Variable name="WX_CFG" value="" />
             </Environment>
         </Build>
         <VirtualTargets>
-            <Add alias="All" targets="tinyXML;AutoRevision;ConsoleRunner;Squirrel;Squirrel std lib;SqPlus;scintilla;wxpropgrid;sdk;src;AStyle;Compiler depslib;Compiler;Debugger;Code-completion;Class wizard;Default MIME handler;Open files list;Scripted wizard;To-do;Autosave;XP look &amp; feel;Projects-workspaces importer;" />
+            <Add alias="All" targets="tinyXML;AutoRevision;ConsoleRunner;Squirrel;Squirrel std lib;SqPlus;scintilla;sdk;src;AStyle;Compiler depslib;Compiler;Debugger;Code-completion;Class wizard;Default MIME handler;Open files list;Scripted wizard;To-do;Autosave;XP look &amp; feel;Projects-workspaces importer;" />
             <Add alias="Core app &amp; plugins" targets="sdk;src;AStyle;Autosave;Compiler depslib;Compiler;Debugger;Code-completion;Class wizard;Default MIME handler;Projects-workspaces importer;Scripted wizard;Open files list;To-do;XP look &amp; feel;" />
-            <Add alias="Third-party libs" targets="tinyXML;AutoRevision;ConsoleRunner;Squirrel;Squirrel std lib;SqPlus;scintilla;wxpropgrid;Compiler depslib;" />
+            <Add alias="Third-party libs" targets="tinyXML;AutoRevision;ConsoleRunner;Squirrel;Squirrel std lib;SqPlus;scintilla;Compiler depslib;" />
         </VirtualTargets>
         <Compiler>
             <Add option="-Wall" />
@@ -560,7 +535,6 @@
             <Add directory="$(#wx)\contrib\include" />
             <Add directory="$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)" />
             <Add directory="sdk\wxscintilla\include" />
-            <Add directory="sdk\wxpropgrid\include" />
             <Add directory="include\tinyxml" />
         </Compiler>
         <ResourceCompiler>
@@ -2715,57 +2689,6 @@
         <Unit filename="sdk\workspaceloader.cpp">
             <Option target="sdk" />
         </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\advprops.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\editors.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\extras.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\manager.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\odcombo.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\propdev.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\propgrid.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\props.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\include\wx\propgrid\xh_propgrid.h">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\src\advprops.cpp">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\src\editors.cpp">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\src\extras.cpp">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\src\manager.cpp">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\src\odcombo.cpp">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\src\propgrid.cpp">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\src\props.cpp">
-            <Option target="wxpropgrid" />
-        </Unit>
-        <Unit filename="sdk\wxpropgrid\src\xh_propgrid.cpp">
-            <Option target="wxpropgrid" />
-        </Unit>
         <Unit filename="sdk\wxscintilla\include\wx\wxscintilla.h">
             <Option target="scintilla" />
         </Unit>

Tim S.
« Last Edit: September 28, 2010, 06:36:12 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Building with wxWidgets 2.9
« Reply #3 on: September 28, 2010, 07:28:17 am »
Using wxWidgets propgrid should work (after some changes), but you have to use "our" scintilla, because there are some C::B specific patches we use.
Nevertheless there are other errors with wx2.9 that have not been fixed until now.
There is a thread about C::B and wx2.9, but you have to search for it.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7602
    • My Best Post
Re: Building with wxWidgets 2.9
« Reply #4 on: September 28, 2010, 03:54:14 pm »
I used the new Build of Code::Blocks linked against wxWidgets trunk to build Code::Blocks. It still has an issue on shutdown.

Did not try the contrib plugins; took me several hours and still two or three contrib plugins failed last time I tried 3 or so months ago.

Note: I was the person who started the first two threads on building C::B with wxWidgets 2.9.x.

Note: I have never gotten C::B to build and run using 64Bit TDM/other MinGW GCC under Windows.

In setup.h make sure "wxUSE_STC" is defined as "0". Note, use "USE_OPENGL=1" is not required.
Code
mingw32-make -f makefile.gcc USE_QA=1 USE_STC=0 USE_OPENGL=1 BUILD=release UNICODE=1 MONOLITHIC=1 SHARED=1

Tim S.
« Last Edit: September 28, 2010, 07:10:13 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: Building with wxWidgets 2.9
« Reply #5 on: September 29, 2010, 03:49:25 am »

 Hi Guys,

Thanks for the assistance. Yes I read all of the threads. I was getting compiler errors, as I remember. Thanks for the patch. I'll probably have to wait for the weekend to try again but I will give it a go.

Cheers.

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: Building with wxWidgets 2.9
« Reply #6 on: October 16, 2010, 10:51:45 pm »

 I finally got around to trying this. I can now build the latest wx 2.9.2 SVN but CB refuses to co-operate. I get errors relating to scintilla. I applied the patch to a fress project file, although i had dome much the same myself. No go.

Code
||=== Code::Blocks, sdk ===|
C:\Utilities\Programming\CBfor2.9\src\sdk\encodingdetector.cpp||In member function 'bool EncodingDetector::ConvertToWxStr(const wxByte*, size_t)':|
C:\Utilities\Programming\CBfor2.9\src\sdk\encodingdetector.cpp|138|warning: value computed is not used|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|811|undefined reference to `_imp___ZN11wxScintilla7SetZoomEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|816|undefined reference to `_imp___ZN11wxScintilla13SetMarginMaskEii'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|817|undefined reference to `_imp___ZN11wxScintilla13SetMarginMaskEii'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|818|undefined reference to `_imp___ZN11wxScintilla13SetMarginMaskEii'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|819|undefined reference to `_imp___ZN11wxScintilla13SetMarginMaskEii'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|879|undefined reference to `_imp___ZNK11wxScintilla9GetModifyEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|889|undefined reference to `_imp___ZN11wxScintilla12SetSavePointEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|895|undefined reference to `_imp___ZNK11wxScintilla11GetReadOnlyEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|926|undefined reference to `_imp___ZN11wxScintilla7GotoPosEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|927|undefined reference to `_imp___ZN11wxScintilla12ScrollToLineEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|928|undefined reference to `_imp___ZN11wxScintilla14ScrollToColumnEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|961|undefined reference to `_imp___ZNK11wxScintilla13GetCurrentPosEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|962|undefined reference to `_imp___ZNK11wxScintilla19GetFirstVisibleLineEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|969|undefined reference to `_imp___ZN11wxScintilla12MarkerDefineEiiRK8wxColourS2_'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|970|undefined reference to `_imp___ZN11wxScintilla19MarkerSetForegroundEiRK8wxColour'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|971|undefined reference to `_imp___ZN11wxScintilla19MarkerSetBackgroundEiRK8wxColour'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|975|undefined reference to `_imp___ZN11wxScintilla12MarkerDefineEiiRK8wxColourS2_'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|976|undefined reference to `_imp___ZN11wxScintilla19MarkerSetForegroundEiRK8wxColour'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|977|undefined reference to `_imp___ZN11wxScintilla19MarkerSetBackgroundEiRK8wxColour'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|983|undefined reference to `_imp___ZN11wxScintilla12SetFoldFlagsEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|985|undefined reference to `_imp___ZN11wxScintilla12SetFoldFlagsEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|998|undefined reference to `_imp___ZN11wxScintilla8UsePopUpEb'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1006|undefined reference to `_imp__wxEVT_SCI_MARGINCLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1009|undefined reference to `_imp__wxEVT_SCI_UPDATEUI'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1012|undefined reference to `_imp__wxEVT_SCI_CHANGE'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1015|undefined reference to `_imp__wxEVT_SCI_CHARADDED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1018|undefined reference to `_imp__wxEVT_SCI_DWELLSTART'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1021|undefined reference to `_imp__wxEVT_SCI_DWELLEND'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1024|undefined reference to `_imp__wxEVT_SCI_USERLISTSELECTION'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1027|undefined reference to `_imp__wxEVT_SCI_MODIFIED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_STYLENEEDED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_SAVEPOINTREACHED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_SAVEPOINTLEFT'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_ROMODIFYATTEMPT'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_KEY'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_DOUBLECLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_MACRORECORD'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_NEEDSHOWN'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_PAINTED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_URIDROPPED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_START_DRAG'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_DRAG_OVER'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_DO_DROP'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_ZOOM'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_HOTSPOT_CLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_HOTSPOT_DCLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_CALLTIP_CLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_AUTOCOMP_SELECTION'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1122|undefined reference to `_imp___ZN11wxScintilla13GetDocPointerEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1122|undefined reference to `_imp___ZN11wxScintilla13SetDocPointerEPv'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 8 warnings (4 minutes, 12 seconds) ===|


I tried adding it in several places. No change. It shouldn't be necessary to change that, anyway. I can't see why that would be any different.

Any ideas?


Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Building with wxWidgets 2.9
« Reply #7 on: October 17, 2010, 05:46:49 am »
I think we need create a new project named "CodeBlocks-29.cbp".
Any comments?

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Building with wxWidgets 2.9
« Reply #8 on: October 17, 2010, 09:15:20 am »
In setup.h make sure "wxUSE_STC" is defined as "0". Note, use "USE_OPENGL=1" is not required.
Code
mingw32-make -f makefile.gcc USE_QA=1 USE_STC=0 USE_OPENGL=1 BUILD=release UNICODE=1 MONOLITHIC=1 SHARED=1
When start build wxWidgets, you need change "include\wx\msw\setup0.h".
Code
// Use wxStyledTextCtrl, a wxWidgets implementation of Scintilla.
//
// Default is 1
//
// Recommended setting: 1
#define wxUSE_STC 1

The default value is 1, so we need set the value to 0.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Building with wxWidgets 2.9
« Reply #9 on: October 17, 2010, 11:05:40 am »
Works well for me. :lol:

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Building with wxWidgets 2.9
« Reply #10 on: October 17, 2010, 09:20:18 pm »
The default value is 1, so we need to set the value to 0.
No you don't, if should be possible to build C::B with STC enabled because cb is using the default build on all linux distros and if there STC is enabled C::B will be unbuildable!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: Building with wxWidgets 2.9
« Reply #11 on: October 17, 2010, 10:34:25 pm »

 Hi Guys,

Yeeees. I'm building on Windows, for the record, but I will be wanting to get it going on Linux once it's working.  My understanding is that wxUSE_STC on the command line overrides what's in setup.h. Either way it's set to 0 in both places. Besides, I've tried building with every combination of wxUSE_STC and wxUSE_PROPGRID and nothing works. I've tried my existing code base, and a new SVN copy. I've tried tweaking the project setting all over the place. It does seem related to STC, to me AND there were plenty of build references to wxscintilla when building wx, which I thought strange, since it's set to 0 everywhere AND it generated libwxscintalla.a. I fail to see why it would do that unless it's a dependency of something else and, even then, it shouldn't.

Yes, Loaden, I definitely think we should have a separate project in the system for this. 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? Can you summarise your approach for me, please?

Thanks everyone.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Building with wxWidgets 2.9
« Reply #12 on: October 18, 2010, 12:29:50 am »
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?
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:) ).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Online stahta01

  • Lives here!
  • ****
  • Posts: 7602
    • My Best Post
Re: Building with wxWidgets 2.9
« Reply #13 on: October 18, 2010, 01:27:49 am »

My understanding is that wxUSE_STC on the command line overrides what's in setup.h.

You understanding IS NOT correct.

You NEED to fix your build of wxWidgets, so it does NOT build wxscintilla/STC!!!!

I suggest reading; how to build with OpenGL it works just about the same to build without STC.
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.9_Monolithic_Build_with_openGL_for_Windows

I think that adding an wxWidgets 2.9 project is not really a good thing to do at this time; it would just result in more people who do not know how to build wxWidgets right posting questions on why it does not work. Unless someone is willing to write some detailed directions on how to build wxWidgets right for Code::Blocks. I have given what I think are good directions for  wxWidgets building experts; but they are not good enough for non experts.  

Anyone feel free to update my old 2.9.0 directions
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.9.0_to_develop_Code::Blocks_%28MSW%29

Tim S.
« Last Edit: October 18, 2010, 01:41:11 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Building with wxWidgets 2.9
« Reply #14 on: October 18, 2010, 03:33:04 am »