Author Topic: Revision 1886 - Linux  (Read 3737 times)

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Revision 1886 - Linux
« on: January 27, 2006, 03:38:32 pm »
Revision 1886 needs a few patches to work on Linux.

First, a missing include:
Code
Index: src/sdk/configurationpanel.h
===================================================================
--- src/sdk/configurationpanel.h        (revision 1886)
+++ src/sdk/configurationpanel.h        (working copy)
@@ -1,9 +1,10 @@
-#ifndef CONFIGURATIONPANEL_H
-#define CONFIGURATIONPANEL_H
+#ifndef CONFIGURATIONPANEL_H
+#define CONFIGURATIONPANEL_H
 
 #include "settings.h"
 #include <wx/dialog.h>
 #include <wx/string.h>
+#include <wx/panel.h>
 
 class wxButton;
(You can ignore the first lines - this must have been an issue with line-endings.)

Second, an outdated Makefile.am:
Code
Index: src/plugins/debuggergdb/Makefile.am
===================================================================
--- src/plugins/debuggergdb/Makefile.am (revision 1886)
+++ src/plugins/debuggergdb/Makefile.am (working copy)
@@ -2,7 +2,8 @@
 
 INCLUDES = $(WX_CXXFLAGS) \
                -I$(top_srcdir)/src/sdk \
-               -I$(top_srcdir)/src/sdk/wxscintilla/include
+               -I$(top_srcdir)/src/sdk/wxscintilla/include \
+               -I$(top_srcdir)/src/sdk/as/include
 
 libdir = $(pkgdatadir)/plugins

And last but not least: A patch that fixes a segfault while opening the environment-settings-dialog:
Code
Index: src/src/environmentsettingsdlg.cpp
===================================================================
--- src/src/environmentsettingsdlg.cpp  (revision 1886)
+++ src/src/environmentsettingsdlg.cpp  (working copy)
@@ -120,7 +120,6 @@
     XRCCTRL(*this, "chkDDE", wxCheckBox)->Enable(false);
     XRCCTRL(*this, "chkAssociations", wxCheckBox)->Enable(false);
     XRCCTRL(*this, "btnSetAssocs", wxButton)->Enable(false);
-    XRCCTRL(*this, "txtBatchBuildsCmdLine", wxTextCtrl)->Enable(false);
 #endif
 
     // add all plugins configuration panels
("txtBatchBuildsCmdLine" does not exist any more in this dialog, thus this line dereferences a zero-pointer => segfault.)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Revision 1886 - Linux
« Reply #1 on: January 27, 2006, 03:56:38 pm »
Fixed in revision 1887. Thanks.
Be patient!
This bug will be fixed soon...