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

Building with wxWidgets 2.9

(1/10) > >>

Cryogen:

 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.

stahta01:
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.

stahta01:
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>

--- End code ---

Tim S.

Jenna:
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.

stahta01:
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

--- End code ---

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version