EGSnrc icon indicating copy to clipboard operation
EGSnrc copied to clipboard

Building Qt GUIs on WSL with qt5 fails

Open mainegra opened this issue 1 year ago • 0 comments

There is a WSL bug which prevents libQt5Core.so.5 from being treated as a suitable library, hence GUIs can't be compiled.

Here is the workaround:

$ find /usr -name libQt5Core.so.5
/usr/lib/qt5/lib/libQt5Core.so.5
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5

$ sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

Above solution taken from a reply to a 2020 question on stackoverflow.

mainegra avatar Jan 06 '23 21:01 mainegra