Could not be compiled. Try rebuilding from source manually.

在使用ue4创建过c++类后,有时候运行项目时会出现这么一个提示框(解决方法在底部)
在这里插入图片描述
成功后就会打开项目,但是失败后就会显示
在这里插入图片描述
Could not be compiled. Try rebuilding from source manually. (图片中的CGame是我的项目名)
中文意思:无法编译。尝试从源手动重建。

编译失败的原因是:创建的c++类有错误
如图:在这里插入图片描述
这时候只要打开c++编辑器找出并改正c++类中的错误就可以正常打开ue4项目了

The error message you are seeing indicates that the Qt application you are running is unable to find the "xcb" platform plugin. This plugin is responsible for enabling the application to interact with the X Window System on Linux. To resolve this issue, you can try the following steps: 1. Make sure that you have the necessary dependencies installed. On Ubuntu or Debian-based systems, you can run the following command to install them: ``` sudo apt-get install libxcb-xinerama0 ``` If you are using a different Linux distribution, refer to its package manager for the equivalent package. 2. Set the `QT_DEBUG_PLUGINS` environment variable to get more information about which plugins are being loaded and where they are searched. Run your application with the following command: ``` QT_DEBUG_PLUGINS=1 ./your_application ``` This will print debug information about the plugin search paths and help you identify any issues with the plugin loading process. 3. Check if the `QT_QPA_PLATFORM_PLUGIN_PATH` environment variable is set correctly. This variable should point to the directory where the Qt platform plugins are located. You can set it manually before running your application: ``` export QT_QPA_PLATFORM_PLUGIN_PATH=/path/to/your/plugins ``` Replace `/path/to/your/plugins` with the actual path to the directory containing your Qt platform plugins. 4. If none of the above steps work, you can try reinstalling Qt or rebuilding your application from source. These steps should help you resolve the "Could not find the Qt platform plugin 'xcb'" error.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值