在64位Debian环境下编译32位qt源 [英] Compiling 32bits qt sources on a 64bit Debian environement

查看:618
本文介绍了在64位Debian环境下编译32位qt源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Debian 64位环境中构建32位应用程序。



所以,我试图编译Qt源,以获得32位图书馆。



我正在尝试使用以下配置命令:

  ./ configure -platform linux-g ++  -  32 

不幸的是,我收到如下错误: / p>

 基本的XLib功能测试失败! 
您可能需要通过编辑

修改包含和库搜索路径,但是当我做以下内容:

  ./ configure -platform linux-g ++  -  64 
pre>

它的工作正常。



任何猜测?

解决方案

根据所提及的官方文档和依赖关系,请尝试:


sudo apt-get install libx11-6:i386 libfontconfig1-dev:i386 libfreetype6-dev:i386 libx11-dev:i386 libxcursor-dev:i386 libxext-dev:i386 libxfixes-dev:i386 libxft-dev:386 libxi-dev:l386 libxrandr-dev:i386 libxrender-dev:i386



I want to build 32 bits applications on my Debian 64 bits environment.

So, I'm trying to compile the Qt sources in order to get the 32 bits libraries.

I am trying to use the following configure command:

./configure -platform linux-g++-32

Unfortunately, I get an error as below:

Basic XLib functionality test failed!
 You might need to modify the include and library search paths by editing

But when I do the following:

./configure -platform linux-g++-64

It's working fine.

Any guesses?

解决方案

Based on the the official documentation and dependencies mentioned in there, try this:

sudo apt-get install libx11-6:i386 libfontconfig1-dev:i386 libfreetype6-dev:i386 libx11-dev:i386 libxcursor-dev:i386 libxext-dev:i386 libxfixes-dev:i386 libxft-dev:386 libxi-dev:l386 libxrandr-dev:i386 libxrender-dev:i386

这篇关于在64位Debian环境下编译32位qt源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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