There is a small patch necessary to build revision 1946 and newer on Linux:
Index: src/src/app.cpp
===================================================================
--- src/src/app.cpp (revision 1951)
+++ src/src/app.cpp (working copy)
@@ -534,7 +534,7 @@
#ifdef __WXMSW__
wxICON(A_MAIN_ICON),
#else
- wxIcon(app)
+ wxIcon(app),
#endif // __WXMSW__
_("Building ") + wxFileNameFromPath(wxString(argv[argc-1])));
Revision 1952 (yeah I'm the one with the outdated gcc that doesn't support pch):
Index: src/sdk/blockallocated.cpp
===================================================================
--- src/sdk/blockallocated.cpp (revision 1952)
+++ src/sdk/blockallocated.cpp (working copy)
@@ -13,6 +13,7 @@
#include <sdk_precomp.h>
#ifndef CB_PRECOMP
+ #include "wx/regex.h"
#include "blockallocated.h"
#endif
Index: src/sdk/projectoptionsdlg.cpp
===================================================================
--- src/sdk/projectoptionsdlg.cpp (revision 1952)
+++ src/sdk/projectoptionsdlg.cpp (working copy)
@@ -32,7 +32,8 @@
#include "projectmanager.h"
#include "compilerfactory.h"
#include "globals.h"
-
+ #include "scriptingmanager.h"
+
#include <wx/xrc/xmlres.h>
#include <wx/treectrl.h>
#include <wx/spinctrl.h>
Also I get the following when building cclistctrl.cpp from codecompletion plugin that I wasn't able to solve :(
../../../src/sdk/blockallocated.h: In destructor `BlockAllocator<T, pool_size, debug>::~BlockAllocator() [with T = CodeBlocksEvent, unsigned int pool_size = 75, bool debug = false]':
../../../src/sdk/blockallocated.h:140: instantiated from here
../../../src/sdk/blockallocated.h:85: error: `_U' undeclared (first use this
function)
And the last one (sorry I got stuck on the last one and didn't finish make) to build flawlesly, (this file does not use #ifndef CB_PRECOMP so you'll get the double header parsing I'm afraid):
Index: src/plugins/compilergcc/compilergcc.cpp
===================================================================
--- src/plugins/compilergcc/compilergcc.cpp (revision 1953)
+++ src/plugins/compilergcc/compilergcc.cpp (working copy)
@@ -36,7 +36,7 @@
#include <editormanager.h>
#include <scriptingmanager.h>
#include <configurationpanel.h>
-
+#include <pluginmanager.h>
#include <cbeditor.h>
#include <annoyingdialog.h>
#include <wx/xrc/xmlres.h>
But hey, 4 versus 25 minutes is quite convincing, I knew it was somewhat faster, but not that much :)
Please don't tempt me, you know what it means to switch compilers to an rpm based installation... (especially when no official rpms are available)
For the known reasons (revision 1982)
Index: src/sdk/compiler.cpp
===================================================================
--- src/sdk/compiler.cpp (revision 1982)
+++ src/sdk/compiler.cpp (working copy)
@@ -19,6 +19,7 @@
#include "messagemanager.h"
#include "configmanager.h"
#include "globals.h"
+ #include "compilerfactory.h"
#include <wx/intl.h>
#include <wx/regex.h>
Index: src/sdk/projectoptionsdlg.cpp
===================================================================
--- src/sdk/projectoptionsdlg.cpp (revision 1982)
+++ src/sdk/projectoptionsdlg.cpp (working copy)
@@ -32,6 +32,7 @@
#include "projectmanager.h"
#include "compilerfactory.h"
#include "globals.h"
+ #include "scriptingmanager.h"
#include <wx/xrc/xmlres.h>
#include <wx/treectrl.h>
A little typo:
Index: src/sdk/workspaceloader.cpp
===================================================================
--- src/sdk/workspaceloader.cpp (revision 2001)
+++ src/sdk/workspaceloader.cpp (working copy)
@@ -22,7 +22,7 @@
#include "projectmanager.h"
#include "messagemanager.h"
#include "cbproject.h"
- #inclued "globals.h"
+ #include "globals.h"
#include "workspaceloader.h"
#endif
Because I need the wxSmith plugin in linux I also did a --enable-contrib build and:
Index: src/plugins/contrib/wxSmith/wxsheaders.h
===================================================================
--- src/plugins/contrib/wxSmith/wxsheaders.h (revision 2001)
+++ src/plugins/contrib/wxSmith/wxsheaders.h (working copy)
@@ -3,7 +3,7 @@
#include <sdk.h>
-#ifdef CB_PRECOMP
+#ifndef CB_PRECOMP
#include <wx/propgrid/propgrid.h>
#include <wx/propgrid/propdev.h>
#include <wx/propgrid/advprops.h>
Index: src/plugins/contrib/wxSmith/wxsevent.cpp
===================================================================
--- src/plugins/contrib/wxSmith/wxsevent.cpp (revision 2001)
+++ src/plugins/contrib/wxSmith/wxsevent.cpp (working copy)
@@ -3,6 +3,7 @@
#include "wxsmith.h"
#include "wxsglobals.h"
+#include <messagemanager.h>
const wxEventType wxEVT_SELECT_RES = wxNewEventType();
const wxEventType wxEVT_UNSELECT_RES = wxNewEventType();