Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Ubuntu OS 中编译 Qt 4.5 中的示例程序时出现以下错误。
/usr/bin/ld: cannot find -lgthread-2.0 collect2: ld returned 1 exit status
我有一个类似的问题。gthread是libglib当今的一部分。
gthread
libglib
我的解决方案是
aptitude install libglib2.0-dev libglibmm-2.4-dev
这比libqt4-dev朋友拉进来的包裹少了一吨。
libqt4-dev
我找到了解决方案,我通过输入命令安装了库 libqt4-dev
sudo apt-get install libqt4-dev
问题就解决了。