buyuer 发表于 2018-1-18 15:48:26

ubuntu17.10静态编译qt,程序运行卡死。

我在ubuntu17.10上,编译静态的qt库,编译完之后,发现运行后,只要鼠标点击界面上的按钮或者拉伸窗体(只要触发事件),程序就会直接卡死,然后失去反应,只能强制关闭。

而在链接动态的qt库就没有问题。

qt 版本5.10.0

configure参数:-confirm-license -opensource -c++std c++11 -platform linux-g++-64 -release -qt-sqlite -fontconfig -qt-zlib -qt-libpng -qt-libjpeg -qt-xcb -qt-xkbcommon-x11 -nomake examples -nomake tests-prefix ./qt-install -static


后来我以为可能是17.10用了wayland,我就把-qt-xcb -qt-xkbcommon-x11去掉了重新编译了一遍,可是链接上还是不能使。

希望有解决办法的朋友帮帮忙。多谢。


页: [1]
查看完整版本: ubuntu17.10静态编译qt,程序运行卡死。