Build Error

Discuss new features and functions
Posts: 2
Joined: 6 Jul 2025

wiamPP

Any idea about this error:
ui/file_grid.cpp:338:47: error: ‘wxReadOnlyDC’ does not name a type
338 | const wxSize& getTextExtentBuffered(const wxReadOnlyDC& dc, const std::wstring_view& text)
| ^~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:132: /tmp/FreeFileSync_x86_64_Make/ffs/src/ui/file_grid.cpp.o] Error 1

i looked in the forums but did not find any similar issues. I looked into the dc.h file also but couldn't locate the rpoblem, everything was defined properly.

The source i am trying the build is the latest 14.3
Thanks
Posts: 346
Joined: 7 Jan 2018

bgstack15

My notes indicate this is caused by using wx older than 3.3.0. If you have the ability to use wx3.3.0 or higher, you should not need to patch this.

https://bgstack15.ddns.net/cgit/stackrpms/tree/freefilesync/debian/patches/no-wx3.3.0.patch
Posts: 2
Joined: 6 Jul 2025

wiamPP

My notes indicate this is caused by using wx older than 3.3.0. If you have the ability to use wx3.3.0 or higher, you should not need to patch this.

https://bgstack15.ddns.net/cgit/stackrpms/tree/freefilesync/debian/patches/no-wx3.3.0.patch bgstack15, 06 Jul 2025, 16:05
Thank you bgstack15, I didn't notice that the 3.3 was an unstable release, and used the last stable release of wx... I compiled the 3.3 libraries and it worked.