Unable to build Freefilesync 11.26 on Ubuntu Jammy (22.04)

Get help for specific problems
User avatar
Posts: 18
Joined: 13 Mar 2021

xtradeb

Hi!

I'm unable to build Freefilesync 11.26 on Ubuntu Jammy (22.04) due to the fact that only wx 3.0 is available.

This is the first error I got:
ui/main_dlg.cpp: In member function ‘void fff::MainDialog::onCfgGridContext(zen::GridContextMenuEvent&)’:
ui/main_dlg.cpp:3623:20: error: ‘class wxBitmap’ has no member named ‘SetScaleFactor’; did you mean ‘GetScaleFactor’?
 3623 |     bmpColorPicker.SetScaleFactor(getDisplayScaleFactor());
      |                    ^~~~~~~~~~~~~~
      |                    GetScaleFactor
compilation terminated due to -Wfatal-errors.
I remove the associated line and then I got this:
ui/main_dlg.cpp: In lambda function:
ui/main_dlg.cpp:3636:16: error: ‘class wxColourData’ has no member named ‘SetChooseAlpha’
 3636 |         colCfg.SetChooseAlpha(false);
      |                ^~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
I also removed the associated line and I got this:
ui/main_dlg.cpp: In lambda function:
ui/main_dlg.cpp:3655:18: error: ‘wxEVT_COLOUR_CHANGED’ was not declared in this scope; did you mean ‘wxEVT_SYS_COLOUR_CHANGED’?
 3655 |         dlg.Bind(wxEVT_COLOUR_CHANGED, [&](wxColourDialogEvent& event2)
      |                  ^~~~~~~~~~~~~~~~~~~~
      |                  wxEVT_SYS_COLOUR_CHANGED
compilation terminated due to -Wfatal-errors.
At this point, I'm not sure I know what I'm doing anymore. Can anyone help me reverse patch the code to work with wx 3.0 again?

You can find the full set of patches I'm using on Freefilesyncversion 11.25 here: https://launchpad.net/~xtradeb/+archive/ubuntu/apps/+sourcefiles/freefilesync/11.25-1~xtradeb1/freefilesync_11.25-1~xtradeb1.debian.tar.xz . To be more specific: ffs_no_wx311.patch and revert_zenju_aggressive_upstreamisms.patch, I think.

Thank you!
Jhonny Oliveira
https://xtradeb.net