简体   繁体   English

如何使用DW2构建自定义MinGW交叉编译器

[英]How do I build a Customized MinGW Cross Compiler with DW2

I'm stuck in my work because of compatibility issues with libraries compiled with dw2 exception handling, where the MinGW Cross Compiler I use on Ubuntu has sjlj instead. 由于与使用dw2异常处理编译的库的兼容性问题,我在工作中陷入困境,我在Ubuntu上使用的MinGW交叉编译器改为使用sjlj。

Its been a real pain trying to figure this out on my own. 试图自己解决这个问题真的很痛苦。 I somehow need to build a custom MinGW Cross Compiler I can use on Ubuntu that has dw2, instead of sjlj. 我不知何故需要构建一个自定义的MinGW交叉编译器,我可以在Ubuntu上使用dw2而不是sjlj。 Otherwise I will keep getting errors like: undefined reference to _unwind_resume. 否则我会不断收到错误:undefined reference to _unwind_resume。 If anyone could possibly point me in the right direction, I would be most grateful. 如果有人能指出我正确的方向,我将非常感激。

Try with MXE (MinGW Cross Environment) http://mxe.cc/ 尝试使用MXE(MinGW Cross Environment) http://mxe.cc/

MXE is built according to MinGW.org's (MinGW on Windows) instructions as far as I've tested (Meaning dw2). MXE是根据MinGW.org(Windows上的MinGW)指令构建的,据我测试过(意义为dw2)。 Mingw-w64 and the repos from most distros use sjlj too, so, that's a nope.. Mingw-w64和大多数发行版的回购也使用了sjlj,所以,这是一个禁忌......

MXE's only "problem" is that it only builds static libs, but it includes quite a repertoire. MXE唯一的“问题”是它只构建静态库,但它包含了相当多的曲目。 It also may not be a problem. 它也可能不是问题。

Should that be unacceptable, http://mingw.org/wiki/LinuxCrossMinGW follow those steps. 如果这是不可接受的, http://mingw.org/wiki/LinuxCrossMinGW请遵循这些步骤。 If the script fails due to a Function Name, go to line 130 in the .function file and comment those 3 lines about local 如果脚本由于函数名称而失败,请转到.function文件中的第130行并注释这3行关于本地的行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM