Avidemux from Git has a very limited menu, Kubuntu 24.10

Started by kennethrc, January 21, 2025, 03:49:06 AM

Previous topic - Next topic

kennethrc

I've been building and running Avidemux out of git for years now. Upgraded to Kubuntu 24.10 (X11) last week, and after figuring out a few build issues with Qt6, have a series of .debs in pkgs, same as always.

Using git master of 9e525222cd6.

But other than 4 icons (Open, Save, Information and Play Filtered) I have no other menu options.

FWIW, my workflow was:
- git pull
- git submodule update (when necessary)
- rm -rf build* (when necessary)
- qtchooser -install qt6 $(which qmake6)
- export QT_SELECT=qt6
- export QT_HOME=/usr/lib/x86_64-linux-gnu/qt6
- bash ./makeAppImageBuster.sh
- sudo dpkg --install pkgs/*
- avidemux3_qt6

Jan Gruuthuse

Build once this way, this will check for important components
cd ~/avidemux2 && bash createDebFromSourceUbuntu.bash --deb then install the install build components
cd ~/avidemux2/pkgs && sudo dpkg -i *.deb
There should be text menu on the top:

eumagga0x2a

makeAppImageBuster.sh is not intended to work with anything at all. The similar script with "Minimal" in the name creates a working appImage on Debian Buster (that appImage is not fully self-contained, relying on system libraries to provide some hw accel features).

Ubuntu (not Kubuntu) was famous for pushing the macOS-inspired global menu, breaking a lot of stuff.

The latest bootStrap.bash and CMake scripts should find Qt6 on *ubuntu without the help of QT_HOME.

kennethrc

... so after:
\rm -rf build* pkgs/*
time bash ./bootStrap.bash  --deb
sudo dpkg --install pkgs/*
avidemux3_qt6

I still get no menu bar. (Ignore that "... Readback benchmark ..." stuff, it was the text on the kconsole underneath).

Any suggestions?

QuoteUbuntu (not Kubuntu) was famous for pushing the macOS-inspired global menu, breaking a lot of stuff

It appears to be breaking here with Kubuntu as well (the Global Menu at the top of my screen is that for Konsole), anything I can do to work around it?

You cannot view this attachment.

eumagga0x2a

Quote from: kennethrc on January 21, 2025, 10:28:41 PMAny suggestions?

QuoteUbuntu (not Kubuntu) was famous for pushing the macOS-inspired global menu, breaking a lot of stuff

It appears to be breaking here with Kubuntu as well (the Global Menu at the top of my screen is that for Konsole), anything I can do to work around it?

I am sorry, but if you would like to use Avidemux with Global Menu, you would need to resolve all compatibility issues in the code yourself. To upstream your patches, they may not affect any other platforms (especially Unix / Linux desktop environments not using Global Menu), and you should commit to maintaining them for forseeable future.

An easy solution would be to remove Global Menu related packages.

kennethrc

Well, "Option 1" is a non-starter, and I'm not sure how to do "Option 2".

Is there a way to build the Qt5 version from git (which was working just fine last week)?

kennethrc

Quote from: kennethrc on January 22, 2025, 12:19:00 AMWell, "Option 1" is a non-starter
... or is it? I mean, if I knew (i.e., "were told") what/how to change I could keep that in my own branch and manage the merges myself.

So, what would "[resolving] all compatibility issues in the code yourself" entail?

eumagga0x2a

Quote from: kennethrc on January 22, 2025, 12:19:00 AMI'm not sure how to do "Option 2".

There are plenty of search results for "kubuntu" + "remove" + "global menu", albeit I cannot verify their effectiveness (but you would be easily able to).

Quote from: kennethrc on January 22, 2025, 12:19:00 AMIs there a way to build the Qt5 version from git (which was working just fine last week)?

It should still work (if it stopped, this is a bug to be fixed), please don't hesitate to view the available options:

bash /path/to/bootStrap.bash --help
which gives us

bash /path/to/bootStrap.bash --enable-qt5
You would need to have Qt5 developer packages (qttools5-dev-tools and qtbase5-dev which in turn would pull in the necessary dependencies) installed.

Quote from: kennethrc on January 22, 2025, 12:22:24 AMI mean, if I knew (i.e., "were told") what/how to change I could keep that in my own branch and manage the merges myself.

The Avidemux Qt GUI code lives in avidemux/qt4 (mostly in avidemux/qt4/ADM_userInterfaces). Menus are partially created in avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2.cpp in MainWindow::buildMyMenu() function from templates in avidemux/common/ADM_commonUI/myOwnMenu.h, partially generated dynamically in avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_gui2_menu.cpp. You would need to study the requirements of the software component which implements global menu and either find a solution (yourself, of course) to make it work without breaking stuff in Avidemux or, totally possible, discover unsolvable incompatibilities.

Quote from: kennethrc on January 22, 2025, 12:22:24 AMSo, what would "[resolving] all compatibility issues in the code yourself" entail?

Mostly to unbreak the functionality over and over again broken by other contributors who don't use global menu themselves and don't have time and motivation to create one more testing platform.

kennethrc

Quote from: eumagga0x2a on January 22, 2025, 11:56:47 PM... [Building the Qt5 version] ... should still work
It does. I still have the "no menu on the top bar" issue, but at least now there's a "hamburger" menu that gives me all the options I need.

That being said, "LibVA" as the Display output (via Edit->Preferences) doesn't render into the screen, which it did before the Kubuntu 24.10 upgrade. I now just get whatever was under the screen displayed and it doesn't move. Switching to the OpenGL backend works, however.

If you want some info on what that LibVA bug could be, I can start a new topic for it, just tell me what kinds of input you'd need (MESA version, etc.) to help fix it.