安装:
Ubuntu Linux
Python 3 + Qt5
sudo apt-get install pyqt5-dev-tools
sudo pip3 install -r requirements/requirements-linux-python3.txt
make qt5py3
python3 labelImg.py
python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
记QT5.12.2安装失败version `Qt_5_PRIVATE_API' not found 及解决方案
安装的最后,软件提示运行qtcreator,于是开始了我的无限循环操作,
并报错libQt5OpenGL.so.5: version
Qt_5’ not found`
就很奇怪。咋能没找到呢!
解决方法
在查资料时,查到这种情况可能有两种原因,一种是混合编译,一种是之前的没卸载干净。
于是尝试着把报错的旧库给删掉
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt5.12.2/Tools/QtCreator/bin/platforms" ...
Cannot load library /opt/Qt5.12.2/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (/usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5: version `Qt_5_PRIVATE_API' not found (required by /opt/Qt5.12.2/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so))
因为我经过几次辗转,知道之前的库在/usr/lib/x86_64-linux-gnu/
中,于是删掉了其中涉及报错的库。
竟然好了!!
上面的报错真的折磨了我2天。
还是学艺不精,继续加油!