我正在Windows 7机器上开发,但最终产品将是linux,我也使用Ubuntu虚拟机。
我需要搜索并连接到一个蓝牙设备并运行示例,但是从研究中看,QT蓝牙API并不真正支持windows --这是好的,我无论如何都需要它。供参考的蓝牙设备发现代码是:
void MyClass::startDeviceDiscovery()
{
// Create a discovery agent and connect to its signals
QBluetoothDeviceDiscoveryAgent *discoveryAgent = new QBluetoothDevice
出于学术原因,我安装了QT-everywhere 5.15开源,但我没有运行一个程序。
首先,我用make编译了必要的源文件并安装了qmake,然后选择了qmake在其中运行程序。当我试图运行一个示例程序时,我遇到了以下错误:
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "/usr/lib/x86-64-linux-gnu"
This application failed to start because no Qt platform plugin could be initiali
我正试着在ubuntu20.4上运行wireshark,在windows(pc)上的WSL2上运行。(我也在AWS实例Ubuntu上进行了尝试,得到了相同的错误) 这是我尝试运行wireshark时收到的错误消息 qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt
platform plugin "xcb" in "/opt/wireshark/libs/Qt/plugins/platforms" even though it was found. Thi
我试图从这里运行代码,和我发现自己被这个错误信息困住了:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix
我试图在ncu-ui 7 Linux系统(使用ncu-ui 2022.1)上运行CentOS分析器GUI,它既是根用户,也是普通用户。我得到了错误:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may
我想要在窗口上创建一个码头映像,而坞文件中的图像库则是linux操作系统。我的程序使用了open程序,它的输出图像必须用CV2.imshow()显示。但是在运行容器之后,我得到了这个错误。
请帮我修一下。
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.9/site-packages/cv2/qt/plugins" even though it was fou
在启动wireshark时,我收到以下错误:
sudo wireshark
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix the problem.
Aborted (core dumped)
安装xcb之后,我仍然会得到相同
当我试图用Project ERROR: Unknown module(s) in QT: positioning构建依赖于QT5的项目时,出现了错误的qmake,我怀疑以前安装的旧QT4安装中可能会出现问题。
qmake -version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
所以我的问题是:
1.如何解决这一错误?
2.如何完全删除Qt4 (并可能重新安装QT5?)?
更新:
which qmake
/usr/bin/qmake
ls -l /usr/bin/qmake
lrwxrwxrw
我正在尝试在Linux上安装Qt5,但是我得到了这个错误:
[root@localhost Desktop]# ./qt-linux-opensource-1.4.0-x86-online.run
./qt-linux-opensource-1.4.0-x86-online.run: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./qt-linux-opensource-1.4.0-x86-online.run)
./qt-linux-opensource-1.4.0-x86-onli
我正在尝试编译,这是的一部分。我将它作为SUBDIRS的一部分包含在subdirs项目中。我通过Qt在qmake上运行了,然后运行了生成的Makefile,并收到了来自moc文件的这个错误:
/the_path/buildlib/moc_qtpropertybrowser.cpp:360: error: member access into incomplete type 'QtAbstractPropertyBrowserPrivate'
case 4: _t->d_func()->slotPropertyInserted((*reinterpre
我希望能够在我的Ubuntu21.04系统上使用AutoType特性的KeePasssXC,我相信它使用Wayland。
KeePassXC用户指南指出:
Auto-Type will be disabled when run with a Wayland compositor on Linux. To use
Auto-Type in this environment, you must set QT_QPA_PLATFORM=xcb or start
KeePassXC with the -platform xcb command-line flag.
发出命令:
/usr/bin/k
当我试图用./deemix-pyweb打开一个可执行文件时,会出现以下错误:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform
我对Linux非常陌生,我正在使用Windows 11
从MS store安装ubuntu bash,并使用以下命令安装Spyder
sudo apt-get install spyder
但当我打电话给Spyder
我知道这个错误
user1@DELLG3:~$ spyder
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This applica
根据Yunnosch对的无益反应
我正在运行一个带有Android工作室的linux机箱,并设置了一个AVD。我可以在android手动运行它,但是像emulator -avd emulator-5554一样运行它或者从Azure管道运行会给我带来QT错误。我从命令行安装了QT,并直接从他们的网站安装了所有工具和路径。
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this probl
我用Qt Designer创建了一个简单的"hello world“,并用auto-py-to-exe编译了它。编译期间没有错误消息,但当我双击创建的可执行文件时,我的终端中有以下内容:
(venv) (base) saltz@saltz:~/Bureau/70 5 applications Qt/test/output$ ./main
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Q
我想为ARM设备编译一个Qt程序。
我安装了ARM的工具链,下面是我的qmake.conf文件的样子:
#
# qmake configuration for building with arm-none-linux-gnueabi-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_
我知道在这个问题上有很多答案,但是没有一个对我有帮助。我正在通过Oracle VM Virtual使用Ubunty 20.04,我面临的错误与所有其他人完全相同。在使用正式的Qt手册构建Qt6源代码之后,我尝试运行不同的项目来测试一切是否正常。控制台类型的项目构建和运行正常。没有错误。不幸的是,当我试图运行Widget类型的应用程序时,它会因众所周知的错误而失败.
t.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This appli
Qt到5.13有一个奇怪的bug,所以我尝试将Qt的库版本更改为最新版本(5.15)。我将QT5.15库安装到/home/myaccount/Qt/5.15.0/gcc_64/lib中,并相应地设置了/etc/ld.so.conf.d/Qt.5.15.0.conf。以下是ldd usr/bin/konsole的结果:
/usr/bin/konsole: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /home/myaccount/Qt/5.15.0/gcc_64/lib/l
我试图在一个新的Debian上安装Qt开发环境,但没有成功。首先,由于xserver崩溃,自动在线安装程序甚至没有设法使我达到可用状态。我不得不手动将buster-backports添加到我的sources.list中(这可能会在以后变得相关)
之后的第一件事是从Qt网站下载并启动netinstaller。(qt-统一-linux-x64-4.0.1-1-online.run)
Qt设计器、翻译器和其他应用程序正常启动,但Qt创建者没有启动。
当从控制台启动它时,我会得到以下错误:
qt.qpa.plugin: Could not load the Qt platform plugin
在ubuntu15.10上执行eiskaltdc++时,我得到以下错误:
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5: version `Qt_5' not found (required by eiskaltdcpp-qt)
eiskaltdcpp-qt: /usr/li
我使用的是Ubuntu14.04,我需要让rspec和水豚在QT5上工作。我已经安装了QT5。但是当我运行rspec/feature/ get _test时,会得到这样的警告:
WARNING: The next major version of capybara-webkit will require at least version 5.0 of Qt. You're using version 4.8.6.
但是:
~ % TDIR=/usr/share/qtX qmake --version
QMake version 3.0
Using Qt version 5.2.1 in
您好,我运行了许多关于这个问题的参考教程,但没有一个解决了我的问题。当我安装笔记本电脑模式工具并尝试启动GUI时,出现了问题。
sudo apt-get install laptop-mode-tools
pkexec /usr/sbin/lmt-config-gui
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform
我运行Ubuntu 16.04 LTS。我的问题是我不能运行我可以编译的Qt5应用程序。
这是我尝试运行它时得到的结果:
/home/user/Desktop/sconfig/dist/Release/GNU-Linux/SCongif: /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5: version `Qt_5' not found (required by /home/user/Desktop/sconfig/dist/Release/GNU-Linux/SCongif)
/home/user/Desktop/sconfig/dist/Re
我正在尝试编译Linux源代码,但总是找不到qt,下面是一个输出
[root@localhost linux-2.6.32.5]# yum install qt3
Loaded plugins: refresh-packagekit
Setting up Install Process
Package qt3-3.3.8b-25.fc11.i586 already installed and latest version
Nothing to do
[root@localhost linux-2.6.32.5]# make xconfig
CHECK qt
*
* Unable to