Having upgraded my FreeBSD system and VirtualBox, I found that VirtualBox does not work when invoked from the window manager’s menu. So, I tried running it from the command line, and got the following message:
/usr/local/lib/virtualbox/VirtualBox.so: Undefined symbol “_ZNK6QColor6darkerEi@Qt_5”
I tried to search the web for the cause, and found a link to a compatibility report including added symbols. My symbol was nott found there, but at least I got a clue about what I had to do: upgrade Qt5.
From some reasons I’m not notified that it’s time to upgrade my Qt5.
I found a great option for command pkg:I
pkg version| grep qt5
The output reveals the current version of a package, and if there are later versions; following is a typical output line:
The less-then symbols indicates that there is a more recent version.
I started upgrading Qt5 packages, first qt5-core, then qt5-gui and saw a little progress: new undefined symbols. Finally, VirtualBox started working.
Another application affected by the failure to upgrade Qt5 is VLC , the famous media player from https://www.videolan.org
VLC does not show any error message, and you can run it from the command line with no problems. Specifying the path of the media device or file. For example by typing the command:
if you want to listen to a compact disc.
Now, upgrading Qt5 has made VLC displaying its GUI window.