Author Topic: Code::Blocks not building on MX-Linux 19 (Debian-Buster based)  (Read 2813 times)

Offline var_null

  • Single posting newcomer
  • *
  • Posts: 3
Code::Blocks not building on MX-Linux 19 (Debian-Buster based)
« on: February 28, 2020, 08:18:33 pm »
Hello, I downloaded the sourcecode for the latest version of Code::Blocks and tried to build on MX-Linux 19 (Debian-Buster based), got the following errors:

Code
watchesdlg.cpp:89:30: error: invalid use of incomplete type ‘class wxPGEditor’
 class cbDummyEditor : public wxPGEditor
                              ^~~~~~~~~~
In file included from /usr/include/wx-3.1-unofficial/wx/propgrid/property.h:18,
                 from /usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:22,
                 from watchesdlg.cpp:29:
/usr/include/wx-3.1-unofficial/wx/propgrid/propgriddefs.h:197:32: note: forward declaration of ‘class wxPGEditor’
 class WXDLLIMPEXP_FWD_PROPGRID wxPGEditor;
                                ^~~~~~~~~~
watchesdlg.cpp:99:5: error: ‘wxPGWindowList’ does not name a type; did you mean ‘wxWindowList’?
     wxPGWindowList CreateControls(wxPropertyGrid* propgrid, wxPGProperty* property,
     ^~~~~~~~~~~~~~
     wxWindowList
watchesdlg.cpp:94:27: error: ‘wxPG_CONST_WXCHAR_PTR cbDummyEditor::GetName() const’ marked ‘override’, but does not override
     wxPG_CONST_WXCHAR_PTR GetName() const override
                           ^~~~~~~
watchesdlg.cpp:105:10: error: ‘void cbDummyEditor::UpdateControl(wxPGProperty*, wxWindow*) const’ marked ‘override’, but does not override
     void UpdateControl(wxPGProperty* property, wxWindow* ctrl) const override {}
          ^~~~~~~~~~~~~
watchesdlg.cpp:106:10: error: ‘bool cbDummyEditor::OnEvent(wxPropertyGrid*, wxPGProperty*, wxWindow*, wxEvent&) const’ marked ‘override’, but does not override
     bool OnEvent(wxPropertyGrid* propgrid, wxPGProperty* property, wxWindow* wnd_primary, wxEvent& event) const override
          ^~~~~~~
watchesdlg.cpp:111:10: error: ‘bool cbDummyEditor::GetValueFromControl(wxVariant&, wxPGProperty*, wxWindow*) const’ marked ‘override’, but does not override
     bool GetValueFromControl( wxVariant& variant, wxPGProperty* property, wxWindow* ctrl ) const override
          ^~~~~~~~~~~~~~~~~~~
watchesdlg.cpp:115:10: error: ‘void cbDummyEditor::SetValueToUnspecified(wxPGProperty*, wxWindow*) const’ marked ‘override’, but does not override
     void SetValueToUnspecified( wxPGProperty* property, wxWindow* ctrl ) const override {}
          ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.1-unofficial/wx/object.h:57,
                 from /usr/include/wx-3.1-unofficial/wx/wx.h:15,
                 from /usr/include/wx-3.1-unofficial/wx/wxprec.h:42,
                 from ./sdk_common.h:37,
                 from ./sdk_precomp.h:13,
                 from ./sdk.h:17:
/usr/include/wx-3.1-unofficial/wx/rtti.h:166:24: error: incomplete type ‘wxPGEditor’ used in nested name specifier
             &basename::ms_classInfo,                                          \
                        ^~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:175:5: note: in expansion of macro ‘wxIMPLEMENT_CLASS_COMMON’
     wxIMPLEMENT_CLASS_COMMON(name, basename, NULL, func)
     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:186:5: note: in expansion of macro ‘wxIMPLEMENT_CLASS_COMMON1’
     wxIMPLEMENT_CLASS_COMMON1(name, basename, name::wxCreateObject)           \
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/object.h:462:69: note: in expansion of macro ‘wxIMPLEMENT_DYNAMIC_CLASS’
 #define IMPLEMENT_DYNAMIC_CLASS(n,b)                                wxIMPLEMENT_DYNAMIC_CLASS(n,b)
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp:118:1: note: in expansion of macro ‘IMPLEMENT_DYNAMIC_CLASS’
 IMPLEMENT_DYNAMIC_CLASS(cbDummyEditor, wxPGEditor);
 ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: In static member function ‘static wxObject* cbDummyEditor::wxCreateObject()’:
watchesdlg.cpp:118:25: error: cannot convert ‘cbDummyEditor*’ to ‘wxObject*’ in return
 IMPLEMENT_DYNAMIC_CLASS(cbDummyEditor, wxPGEditor);
                         ^~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:188:22: note: in definition of macro ‘wxIMPLEMENT_DYNAMIC_CLASS’
         { return new name; }
                      ^~~~
watchesdlg.cpp:118:1: note: in expansion of macro ‘IMPLEMENT_DYNAMIC_CLASS’
 IMPLEMENT_DYNAMIC_CLASS(cbDummyEditor, wxPGEditor);
 ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: At global scope:
watchesdlg.cpp:123:1: error: expected class-name before ‘{’ token
 {
 ^
watchesdlg.cpp:131:13: error: ‘wxPGWindowList’ does not name a type; did you mean ‘wxWindowList’?
     virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid, wxPGProperty* property,
             ^~~~~~~~~~~~~~
             wxWindowList
In file included from /usr/include/wx-3.1-unofficial/wx/object.h:57,
                 from /usr/include/wx-3.1-unofficial/wx/wx.h:15,
                 from /usr/include/wx-3.1-unofficial/wx/wxprec.h:42,
                 from ./sdk_common.h:37,
                 from ./sdk_precomp.h:13,
                 from ./sdk.h:17:
watchesdlg.cpp:144:59: error: ‘wxPGTextCtrlAndButtonEditor’ has not been declared
 IMPLEMENT_DYNAMIC_CLASS(cbTextCtrlAndButtonTooltipEditor, wxPGTextCtrlAndButtonEditor);
                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:166:14: note: in definition of macro ‘wxIMPLEMENT_CLASS_COMMON’
             &basename::ms_classInfo,                                          \
              ^~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:186:5: note: in expansion of macro ‘wxIMPLEMENT_CLASS_COMMON1’
     wxIMPLEMENT_CLASS_COMMON1(name, basename, name::wxCreateObject)           \
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/object.h:462:69: note: in expansion of macro ‘wxIMPLEMENT_DYNAMIC_CLASS’
 #define IMPLEMENT_DYNAMIC_CLASS(n,b)                                wxIMPLEMENT_DYNAMIC_CLASS(n,b)
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp:144:1: note: in expansion of macro ‘IMPLEMENT_DYNAMIC_CLASS’
 IMPLEMENT_DYNAMIC_CLASS(cbTextCtrlAndButtonTooltipEditor, wxPGTextCtrlAndButtonEditor);
 ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: In static member function ‘static wxObject* cbTextCtrlAndButtonTooltipEditor::wxCreateObject()’:
watchesdlg.cpp:144:25: error: cannot convert ‘cbTextCtrlAndButtonTooltipEditor*’ to ‘wxObject*’ in return
 IMPLEMENT_DYNAMIC_CLASS(cbTextCtrlAndButtonTooltipEditor, wxPGTextCtrlAndButtonEditor);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:188:22: note: in definition of macro ‘wxIMPLEMENT_DYNAMIC_CLASS’
         { return new name; }
                      ^~~~
watchesdlg.cpp:144:1: note: in expansion of macro ‘IMPLEMENT_DYNAMIC_CLASS’
 IMPLEMENT_DYNAMIC_CLASS(cbTextCtrlAndButtonTooltipEditor, wxPGTextCtrlAndButtonEditor);
 ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: At global scope:
watchesdlg.cpp:178:38: error: invalid use of incomplete type ‘class wxPGEditorDialogAdapter’
 class WatchRawDialogAdapter : public wxPGEditorDialogAdapter
                                      ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.1-unofficial/wx/propgrid/property.h:18,
                 from /usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:22,
                 from watchesdlg.cpp:29:
/usr/include/wx-3.1-unofficial/wx/propgrid/propgriddefs.h:210:32: note: forward declaration of ‘class wxPGEditorDialogAdapter’
 class WXDLLIMPEXP_FWD_PROPGRID wxPGEditorDialogAdapter;
                                ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: In member function ‘virtual wxPGEditorDialogAdapter* WatchesProperty::GetEditorDialog() const’:
watchesdlg.cpp:343:38: error: cannot convert ‘WatchRawDialogAdapter*’ to ‘wxPGEditorDialogAdapter*’ in return
     return new WatchRawDialogAdapter();
                                      ^
watchesdlg.cpp: In constructor ‘WatchesDlg::WatchesDlg()’:
watchesdlg.cpp:390:111: error: no matching function for call to ‘wxPropertyGrid::RegisterEditorClass(cbTextCtrlAndButtonTooltipEditor*, bool)’
 tor = wxPropertyGrid::RegisterEditorClass(new cbTextCtrlAndButtonTooltipEditor, true);
                                                                                     ^

In file included from watchesdlg.cpp:29:
/usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:928:24: note: candidate: ‘static wxPGEditor* wxPropertyGrid::RegisterEditorClass(wxPGEditor*, bool)’
     static wxPGEditor* RegisterEditorClass( wxPGEditor* editor,
                        ^~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:928:24: note:   no known conversion for argument 1 from ‘cbTextCtrlAndButtonTooltipEditor*’ to ‘wxPGEditor*’
watchesdlg.cpp:401:89: error: no matching function for call to ‘wxPropertyGrid::RegisterEditorClass(cbDummyEditor*, bool)’
     watchesDummyEditor = wxPropertyGrid::RegisterEditorClass(new cbDummyEditor, true);
                                                                                     ^

In file included from watchesdlg.cpp:29:
/usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:928:24: note: candidate: ‘static wxPGEditor* wxPropertyGrid::RegisterEditorClass(wxPGEditor*, bool)’
     static wxPGEditor* RegisterEditorClass( wxPGEditor* editor,
                        ^~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:928:24: note:   no known conversion for argument 1 from ‘cbDummyEditor*’ to ‘wxPGEditor*’
make[3]: *** [Makefile:746: watchesdlg.o] Error 1
make[3]: Leaving directory '/mnt/data/Linux Software/codeblocks-17.12/src/src'
make[2]: *** [Makefile:825: all-recursive] Error 1
make[2]: Leaving directory '/mnt/data/Linux Software/codeblocks-17.12/src/src'
make[1]: *** [Makefile:527: all-recursive] Error 1
make[1]: Leaving directory '/mnt/data/Linux Software/codeblocks-17.12/src'
make: *** [Makefile:660: all-recursive] Error 1

What can I do to solve this?

P.S.: I wasn't able to install the .deb packages because:

Code
 codeblocks-contrib : Depends: libboost-system1.62.0 but it is not installable
                      Depends: libgamin0 but it is not going to be installed
                      Depends: libhunspell-1.4-0 but it is not installable

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Code::Blocks not building on MX-Linux 19 (Debian-Buster based)
« Reply #1 on: February 28, 2020, 10:04:43 pm »
Where did you get the source code? You probably have to download the latest from svn.

Offline var_null

  • Single posting newcomer
  • *
  • Posts: 3
Re: Code::Blocks not building on MX-Linux 19 (Debian-Buster based)
« Reply #2 on: February 29, 2020, 08:26:55 pm »
The error messages on the first post are from this version: http://sourceforge.net/projects/codeblocks/files/Sources/17.12/codeblocks_17.12.tar.xz

Then I downloaded the source from github and I have the same problem when trying to build:

Code
watchesdlg.cpp:89:30: error: invalid use of incomplete type ‘class wxPGEditor’
 class cbDummyEditor : public wxPGEditor
                              ^~~~~~~~~~
In file included from /usr/include/wx-3.1-unofficial/wx/propgrid/property.h:18,
                 from /usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:22,
                 from watchesdlg.cpp:29:
/usr/include/wx-3.1-unofficial/wx/propgrid/propgriddefs.h:197:32: note: forward declaration of ‘class wxPGEditor’
 class WXDLLIMPEXP_FWD_PROPGRID wxPGEditor;
                                ^~~~~~~~~~
watchesdlg.cpp:99:5: error: ‘wxPGWindowList’ does not name a type; did you mean ‘wxWindowList’?
     wxPGWindowList CreateControls(cb_unused wxPropertyGrid* propgrid,
     ^~~~~~~~~~~~~~
     wxWindowList
watchesdlg.cpp:94:27: error: ‘wxPG_CONST_WXCHAR_PTR cbDummyEditor::GetName() const’ marked ‘override’, but does not override
     wxPG_CONST_WXCHAR_PTR GetName() const override
                           ^~~~~~~
watchesdlg.cpp:107:10: error: ‘void cbDummyEditor::UpdateControl(wxPGProperty*, wxWindow*) const’ marked ‘override’, but does not override
     void UpdateControl(cb_unused wxPGProperty* property, cb_unused wxWindow* ctrl) const override {}
          ^~~~~~~~~~~~~
watchesdlg.cpp:108:10: error: ‘bool cbDummyEditor::OnEvent(wxPropertyGrid*, wxPGProperty*, wxWindow*, wxEvent&) const’ marked ‘override’, but does not override
     bool OnEvent(cb_unused wxPropertyGrid* propgrid, cb_unused wxPGProperty* property,
          ^~~~~~~
watchesdlg.cpp:114:10: error: ‘bool cbDummyEditor::GetValueFromControl(wxVariant&, wxPGProperty*, wxWindow*) const’ marked ‘override’, but does not override
     bool GetValueFromControl(cb_unused wxVariant& variant, cb_unused wxPGProperty* property,
          ^~~~~~~~~~~~~~~~~~~
watchesdlg.cpp:119:10: error: ‘void cbDummyEditor::SetValueToUnspecified(wxPGProperty*, wxWindow*) const’ marked ‘override’, but does not override
     void SetValueToUnspecified(cb_unused wxPGProperty* property,
          ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.1-unofficial/wx/object.h:57,
                 from /usr/include/wx-3.1-unofficial/wx/wx.h:15,
                 from /usr/include/wx-3.1-unofficial/wx/wxprec.h:42,
                 from ./sdk_common.h:37,
                 from ./sdk_precomp.h:13,
                 from ./sdk.h:17:
/usr/include/wx-3.1-unofficial/wx/rtti.h:166:24: error: incomplete type ‘wxPGEditor’ used in nested name specifier
             &basename::ms_classInfo,                                          \
                        ^~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:175:5: note: in expansion of macro ‘wxIMPLEMENT_CLASS_COMMON’
     wxIMPLEMENT_CLASS_COMMON(name, basename, NULL, func)
     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:186:5: note: in expansion of macro ‘wxIMPLEMENT_CLASS_COMMON1’
     wxIMPLEMENT_CLASS_COMMON1(name, basename, name::wxCreateObject)           \
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/object.h:462:69: note: in expansion of macro ‘wxIMPLEMENT_DYNAMIC_CLASS’
 #define IMPLEMENT_DYNAMIC_CLASS(n,b)                                wxIMPLEMENT_DYNAMIC_CLASS(n,b)
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp:123:1: note: in expansion of macro ‘IMPLEMENT_DYNAMIC_CLASS’
 IMPLEMENT_DYNAMIC_CLASS(cbDummyEditor, wxPGEditor);
 ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: In static member function ‘static wxObject* cbDummyEditor::wxCreateObject()’:
watchesdlg.cpp:123:25: error: cannot convert ‘cbDummyEditor*’ to ‘wxObject*’ in return
 IMPLEMENT_DYNAMIC_CLASS(cbDummyEditor, wxPGEditor);
                         ^~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:188:22: note: in definition of macro ‘wxIMPLEMENT_DYNAMIC_CLASS’
         { return new name; }
                      ^~~~
watchesdlg.cpp:123:1: note: in expansion of macro ‘IMPLEMENT_DYNAMIC_CLASS’
 IMPLEMENT_DYNAMIC_CLASS(cbDummyEditor, wxPGEditor);
 ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: At global scope:
watchesdlg.cpp:128:1: error: expected class-name before ‘{’ token
 {
 ^
watchesdlg.cpp:136:13: error: ‘wxPGWindowList’ does not name a type; did you mean ‘wxWindowList’?
     virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid, wxPGProperty* property,
             ^~~~~~~~~~~~~~
             wxWindowList
In file included from /usr/include/wx-3.1-unofficial/wx/object.h:57,
                 from /usr/include/wx-3.1-unofficial/wx/wx.h:15,
                 from /usr/include/wx-3.1-unofficial/wx/wxprec.h:42,
                 from ./sdk_common.h:37,
                 from ./sdk_precomp.h:13,
                 from ./sdk.h:17:
watchesdlg.cpp:149:59: error: ‘wxPGTextCtrlAndButtonEditor’ has not been declared
 IMPLEMENT_DYNAMIC_CLASS(cbTextCtrlAndButtonTooltipEditor, wxPGTextCtrlAndButtonEditor);
                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:166:14: note: in definition of macro ‘wxIMPLEMENT_CLASS_COMMON’
             &basename::ms_classInfo,                                          \
              ^~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:186:5: note: in expansion of macro ‘wxIMPLEMENT_CLASS_COMMON1’
     wxIMPLEMENT_CLASS_COMMON1(name, basename, name::wxCreateObject)           \
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/object.h:462:69: note: in expansion of macro ‘wxIMPLEMENT_DYNAMIC_CLASS’
 #define IMPLEMENT_DYNAMIC_CLASS(n,b)                                wxIMPLEMENT_DYNAMIC_CLASS(n,b)
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp:149:1: note: in expansion of macro ‘IMPLEMENT_DYNAMIC_CLASS’
 IMPLEMENT_DYNAMIC_CLASS(cbTextCtrlAndButtonTooltipEditor, wxPGTextCtrlAndButtonEditor);
 ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: In static member function ‘static wxObject* cbTextCtrlAndButtonTooltipEditor::wxCreateObject()’:
watchesdlg.cpp:149:25: error: cannot convert ‘cbTextCtrlAndButtonTooltipEditor*’ to ‘wxObject*’ in return
 IMPLEMENT_DYNAMIC_CLASS(cbTextCtrlAndButtonTooltipEditor, wxPGTextCtrlAndButtonEditor);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/rtti.h:188:22: note: in definition of macro ‘wxIMPLEMENT_DYNAMIC_CLASS’
         { return new name; }
                      ^~~~
watchesdlg.cpp:149:1: note: in expansion of macro ‘IMPLEMENT_DYNAMIC_CLASS’
 IMPLEMENT_DYNAMIC_CLASS(cbTextCtrlAndButtonTooltipEditor, wxPGTextCtrlAndButtonEditor);
 ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: At global scope:
watchesdlg.cpp:183:38: error: invalid use of incomplete type ‘class wxPGEditorDialogAdapter’
 class WatchRawDialogAdapter : public wxPGEditorDialogAdapter
                                      ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/wx-3.1-unofficial/wx/propgrid/property.h:18,
                 from /usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:22,
                 from watchesdlg.cpp:29:
/usr/include/wx-3.1-unofficial/wx/propgrid/propgriddefs.h:210:32: note: forward declaration of ‘class wxPGEditorDialogAdapter’
 class WXDLLIMPEXP_FWD_PROPGRID wxPGEditorDialogAdapter;
                                ^~~~~~~~~~~~~~~~~~~~~~~
watchesdlg.cpp: In member function ‘virtual wxPGEditorDialogAdapter* WatchesProperty::GetEditorDialog() const’:
watchesdlg.cpp:348:38: error: cannot convert ‘WatchRawDialogAdapter*’ to ‘wxPGEditorDialogAdapter*’ in return
     return new WatchRawDialogAdapter();
                                      ^
watchesdlg.cpp: In constructor ‘WatchesDlg::WatchesDlg()’:
watchesdlg.cpp:395:111: error: no matching function for call to ‘wxPropertyGrid::RegisterEditorClass(cbTextCtrlAndButtonTooltipEditor*, bool)’
 tor = wxPropertyGrid::RegisterEditorClass(new cbTextCtrlAndButtonTooltipEditor, true);
                                                                                     ^

In file included from watchesdlg.cpp:29:
/usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:928:24: note: candidate: ‘static wxPGEditor* wxPropertyGrid::RegisterEditorClass(wxPGEditor*, bool)’
     static wxPGEditor* RegisterEditorClass( wxPGEditor* editor,
                        ^~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:928:24: note:   no known conversion for argument 1 from ‘cbTextCtrlAndButtonTooltipEditor*’ to ‘wxPGEditor*’
watchesdlg.cpp:406:89: error: no matching function for call to ‘wxPropertyGrid::RegisterEditorClass(cbDummyEditor*, bool)’
     watchesDummyEditor = wxPropertyGrid::RegisterEditorClass(new cbDummyEditor, true);
                                                                                     ^

In file included from watchesdlg.cpp:29:
/usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:928:24: note: candidate: ‘static wxPGEditor* wxPropertyGrid::RegisterEditorClass(wxPGEditor*, bool)’
     static wxPGEditor* RegisterEditorClass( wxPGEditor* editor,
                        ^~~~~~~~~~~~~~~~~~~
/usr/include/wx-3.1-unofficial/wx/propgrid/propgrid.h:928:24: note:   no known conversion for argument 1 from ‘cbDummyEditor*’ to ‘wxPGEditor*’
make[3]: *** [Makefile:792: watchesdlg.o] Error 1
make[3]: Leaving directory '/mnt/data/Linux Software/codeblocks-master/src/src'
make[2]: *** [Makefile:871: all-recursive] Error 1
make[2]: Leaving directory '/mnt/data/Linux Software/codeblocks-master/src/src'
make[1]: *** [Makefile:542: all-recursive] Error 1
make[1]: Leaving directory '/mnt/data/Linux Software/codeblocks-master/src'
make: *** [Makefile:675: all-recursive] Error 1
« Last Edit: February 29, 2020, 10:03:03 pm by var_null »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Code::Blocks not building on MX-Linux 19 (Debian-Buster based)
« Reply #3 on: March 01, 2020, 01:55:27 pm »
again, from what github do you get the code? It is possible that you use non up to date code...  The official code is only on sourceforge svn

Your errors come from wx3.1 compatibility issues, and they should all be fixed on trunk
What version of wxWidgets do you use (is installed on your system?) what does
Code
wx-config --list
gives you?

Are you sure you have overwritten/cleaned all the old code?
Have you tried this guide: https://github.com/bluehazzard/codeblocks_sf/wiki/build_linux_mint_18 ?

Offline var_null

  • Single posting newcomer
  • *
  • Posts: 3
Re: Code::Blocks not building on MX-Linux 19 (Debian-Buster based)
« Reply #4 on: March 01, 2020, 08:47:48 pm »
The error messages from the first post are from this download: https://sourceforge.net/projects/codeblocks/files/Sources/17.12/codeblocks_17.12.tar.xz

The error messages from the last post, were from this download (master): https://github.com/jenslody/codeblocks

Code
$ wx-config --list

    Default config is gtk2-unicode-3.1-unofficial

  Default config will be used for output

  Alternate matches:
    base-unicode-3.0
    base-unicode-3.1-unofficial
    gtk2-unicode-3.0


Quote
Your errors come from wx3.1 compatibility issues, and they should all be fixed on trunk

Thanks, this was the only version that worked for me, the one from trunk

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Code::Blocks not building on MX-Linux 19 (Debian-Buster based)
« Reply #5 on: March 02, 2020, 11:25:05 am »
Quote
The error messages from the last post, were from this download (master): https://github.com/jenslody/codeblocks
As i thought this is probably an old repo that not was synced with the main repo. If you want to use git it would be best to use this https://github.com/obfuscated/codeblocks_sf

But the main source for your code should be the svn from sourceforge

Quote
Thanks, this was the only version that worked for me, the one from trunk
So this is fixed now?