Unable to build Freefilsync 11.20 on Ubuntu Jammy

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

xtradeb

Hi!

I'm unable to compile FreeFileSync 11.20 on Ubuntu (20.04). This version requires wx 3.1. Unfortunately, Ubuntu Jammy (latest) only has 3.0 available.

This is the error I get:

In file included from ui/file_grid_attr.h:12,
from config.h:14,
from base_tools.h:12,
from base_tools.cpp:7:
../../wx+/dc.h:15:10: fatal error: wx/bmpbndl.h: No such file or directory
15 | #include <wx/bmpbndl.h>
| ^~~~~~~~~~~~~~
compilation terminated.

Can anyone help me reverse patch the code to work with wx 3.0?

You can find the full set of patches I was using up to Freefilesyncversion 11.18 here: https://launchpad.net/~xtradeb/+archive/ubuntu/apps/+sourcefiles/freefilesync/11.18-1~xtradeb2/freefilesync_11.18-1~xtradeb2.debian.tar.xz

Btw, I also had to reverse: c++2b. It doesn't exist in Ubuntu Jammy.

Thank you!
Jhonny Oliveira
https://xtradeb.net
Posts: 309
Joined: 7 Jan 2018

bgstack15

It's buried in patch https://gitlab.com/bgstack15/stackrpms/-/blob/master/freefilesync/debian/patches/revert_zenju_aggressive_upstreamisms.patch. I should have put it in ffs_no_wx311.patch but I didn't for some reason. I should fix that next time. Search for 11.20 to see the few files that got updated in that patch for this release.

Does Ubuntu Jammy have g++-11? That's what I used (Devuan Ceres) to get c++2b.
User avatar
Posts: 18
Joined: 13 Mar 2021

xtradeb

Thanks @bgstack15!

I have imported all of your patches, made some minor adjustments, et voila!

You are totally right, c++2b is also available. I don't know what happened...

Once again, thank you very much!