I got GitBlocks to build using wxWidgets 3.2.2.1 with 28 compatible mode; but, I would guess it will not work well
https://github.com/stahta01/GitBlocks/commit/5f90a704b6b54a10afb80b0a4528765f76e53054 (https://github.com/stahta01/GitBlocks/commit/5f90a704b6b54a10afb80b0a4528765f76e53054)
Edit: I got it to build and install using wxWidgets 3.2.2.1 with default 3.0 compatibility; but, it crashes when trying to use it.
Tim S.
Workaround patch to get CB to build with wxWidgets 3.2.2.1 with 28 compatible mode.
--- src/src/main.cpp (revision 13260)
+++ src/src/main.cpp (working copy)
@@ -1478,7 +1478,7 @@
void MainFrame::AddToolbarItem(int id, const wxString& title, const wxString& shortHelp, const wxString& longHelp, const wxString& image)
{
- m_pToolbar->AddTool(id, title, cbLoadBitmap(image, wxBITMAP_TYPE_PNG));
+ m_pToolbar->AddTool(id, title, wxBitmapBundle(cbLoadBitmap(image, wxBITMAP_TYPE_PNG)));
m_pToolbar->SetToolShortHelp(id, shortHelp);
m_pToolbar->SetToolLongHelp(id, longHelp);
}
I compiled it with current trunk and wx3.2.2.1 using the attached project. I did not test the plugin, though.
To remove a warning about "no return value" just edit GitBlocks.cpp so it reads
int GitBlocks::Configure()
{
return 0;
}