Forum > General

I got an linker error when compile a small project

(1/1)

morningdragon:
Error:linker:/usr/bin/ld.bfd: cannot find -lQt4Pas: No such file or directoryPray.Ipr(65,0)
Error: Error while linking


 target OS: Ubuntu 22.04.4 LTS aarch64
 
 I tried all  versions   but eventually got  the same mistake. any ideas will be useful .


zeljko:
You're missing libqt4pas which isn't packaged for modern distros anymore. Set your project to build against Qt5 (qt5 widgetset) and install libqt5pas.

morningdragon:
Sure enough, that's the reason,It works!,thank you!!

Rizzz:
Install Qt4Pas:

bash
sudo apt-get install libqt4pas-dev

Verify the Installation:
bash
find /usr/lib -name libQt4Pas.so

Update the Library Path:
bash
sudo update-alternatives --install /usr/lib/libQt4Pas.so libQt4Pas /usr/lib/libQt4Pas.so 1

Recompile the Project:

bash
make clean
make

Thaddy:
Better listen to @zeljko and do not use Qt4.
That you CAN compile it is no excuse for actually using it.

Navigation

[0] Message Index

Go to full version