User forums > Nightly builds
The 11 April 2016 build (10762) is out.
stahta01:
noPCH Patch needed when I do a very cut-down build of Code::Blocks (I am trying to remove all the GUI code a little bit at a time.)
Tim S.
--- Code: ---Index: src/sdk/cbproject.cpp
===================================================================
--- src/sdk/cbproject.cpp (revision 10850)
+++ src/sdk/cbproject.cpp (working copy)
@@ -9,9 +9,8 @@
#include "sdk_precomp.h"
-#ifndef wxUSE_CHOICEDLG
- #define wxUSE_CHOICEDLG 1
-#endif
+// needed in wxWidgets 2.8.12 to define wxUSE_CHOICEDLG when NOPCH
+#include <wx/defs.h>
#include <wx/choicdlg.h>
#include <wx/filedlg.h>
Index: src/sdk/manager.cpp
===================================================================
--- src/sdk/manager.cpp (revision 10850)
+++ src/sdk/manager.cpp (working copy)
@@ -12,6 +12,7 @@
#ifndef CB_PRECOMP
#include <wx/xrc/xmlres.h>
#include <wx/fs_zip.h>
+ #include <wx/frame.h>
#include <wx/menu.h>
#include "manager.h" // class's header file
Index: src/src/environmentsettingsdlg.cpp
===================================================================
--- src/src/environmentsettingsdlg.cpp (revision 10850)
+++ src/src/environmentsettingsdlg.cpp (working copy)
@@ -15,6 +15,7 @@
#include <wx/radiobut.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
+ #include <wx/listbox.h>
#include <wx/listctrl.h>
#include <wx/combobox.h>
#include <wx/choice.h>
--- End code ---
oBFusCATed:
--- Quote from: stahta01 on May 06, 2016, 06:17:56 pm --- (I am trying to remove all the GUI code a little bit at a time.)
--- End quote ---
What do you mean by this?
C::B builds fine on linux in no-pch mode with autotools and wx2.8.12.
stahta01:
--- Quote from: oBFusCATed on May 06, 2016, 07:32:38 pm ---
--- Quote from: stahta01 on May 06, 2016, 06:17:56 pm --- (I am trying to remove all the GUI code a little bit at a time.)
--- End quote ---
What do you mean by this?
C::B builds fine on linux in no-pch mode with autotools and wx2.8.12.
--- End quote ---
I am trying to REMOVE all the GUI code; as in set wxUSE_GUI equal to zero.
Tim S.
oBFusCATed:
From where? This is pretty hard task generally.
stahta01:
--- Quote from: oBFusCATed on May 06, 2016, 11:49:27 pm ---From where? This is pretty hard task generally.
--- End quote ---
Here's where I did most of the work; I stopped about a month ago; because my Git Repo got messed up.
[I noticed the Git Repo issue when an CB Dev edited a SVN commit message; fixing that I discovered I had messed up a few months back.)
https://github.com/stahta01/codeblocks_console/commits/wxUSE_guard
I tried once prior to removing the GUI code all at once and failed; this time I decided to remove just a little bit at a time.
My noPCH fixes was discovered when I disable a header that included the header I added in the patch.
I just now got my Git Repo so once more "git svn info" works.
I do NOT think the CB Team would want my changes that added wxUSE; but, see no downside to doing the noPCH fixes.
I figure once I get CB to work without the GUI part a few people will want the patches that does that.
I am primarily doing this as a learning experience on using Git, C++, CB, and wxWidgets.
I have NOT built this repo for a while; but, it was working a few months back.
https://github.com/stahta01/codeblocks_console/tree/build/reducedGUI
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version