过程入口点__gxx_personality_sj0不能位于... [英] The procedure entry point __gxx_personality_sj0 could not be located in...

查看:104
本文介绍了过程入口点__gxx_personality_sj0不能位于...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设法(以某种方式)使用Mingw-w64 Project的32位Windows交叉编译Qt5.所有库都已安装到~/i686-w64-mingw32.

I have managed to (somehow) cross-compile Qt5 with the Mingw-w64 Project's compiler for 32-bit Windows. All of the libraries have been installed to ~/i686-w64-mingw32.

我有一个要交叉编译的基于CMake的Qt项目.按照这些说明,我已经能够编译该项目.到目前为止一切顺利.

I have a CMake-based Qt project that I am trying to cross-compile. By following these instructions, I have been able to get the project to compile. So far so good.

不幸的是,当在Windows上执行生成的二进制文件时,我最终收到错误消息:

Unfortunately, when executing the resulting binary on Windows, I end up getting an error:

过程入口点__gxx_personality_sj0不能位于动态链接库[application_name] .exe中"

"The procedure entry point __gxx_personality_sj0 could not be located in the dynamic link library [application_name].exe"

* [application_name]是主可执行文件的完整路径

我听说这种类型的问题有时可能是由混合使用不同版本的MinGW编译的库引起的.但是,这台计算机上的所有内容(所有库和可执行文件)都由同一编译器(i686-w64-mingw32工具链)编译.

I've heard that this type of problem can sometimes be caused by mixing libraries compiled with different versions of MinGW. But everything on this machine (all of the libraries and the executable) have all been compiled by the same compiler (the i686-w64-mingw32 toolchain).

此外,我感到奇怪的是,该错误抱怨该应用程序可执行文件而不是.dll文件之一缺少入口点.

Also, I find it odd that the error complains about the entry point being missing from the application executable instead of one of the .dll files.

什么可能导致此错误,并且可以采取什么措施予以纠正?

What could cause this error and what can be done to remedy it?

推荐答案

最后,事实证明,问题是由$PATH中某个地方的libstdc++-6.dll任性引起的.在确保Mingw-w64构建的副本位于应用程序的目录中之后,一切正常.

In the end, it turned out that the problem was caused by a wayward libstdc++-6.dll somewhere in $PATH. After ensuring that the copy built by Mingw-w64 was in the application's directory, everything worked.

这篇关于过程入口点__gxx_personality_sj0不能位于...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆