FS#79130 - [wxwidgets-qt5] linking failed with wxWidgets Qt5 3.2.2.1-1
Attached to Project:
Arch Linux
Opened by Takina Lina (0tkl) - Monday, 17 July 2023, 16:49 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 18 July 2023, 07:22 GMT
Opened by Takina Lina (0tkl) - Monday, 17 July 2023, 16:49 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 18 July 2023, 07:22 GMT
|
Details
Description:
When building and linking a minimum example, the linker reports: undefined reference to `wxSoundData::DecRef()' and `wxSoundData::IncRef()'. Add -DwxUSE_LIBSDL=OFF to Qt5 parts in PKGBUILD can fix this problem. |
This task depends upon
Closed by Antonio Rojas (arojas)
Tuesday, 18 July 2023, 07:22 GMT
Reason for closing: Fixed
Additional comments about closing: wxwidgets-qt5 3.2.2.1-2
Tuesday, 18 July 2023, 07:22 GMT
Reason for closing: Fixed
Additional comments about closing: wxwidgets-qt5 3.2.2.1-2
The bug template specifically asks for "Steps to reproduce:". Please provide the exact steps you used (or a Makefile etc).
$ g++ 1.o -o 1 `wx-config-qt --libs`
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib/libwx_qtu_core-3.2.so: undefined reference to `wxSoundData::IncRef()'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib/libwx_qtu_core-3.2.so: undefined reference to `wxSoundData::DecRef()'
collect2: error: ld returned 1 exit status
Then I modified the PKGBUILD of wxwidgets-qt5 (see the patch) and built it on my local computer. No errors when I build 1.cpp again.