为Windows 98编译Qt [英] Compiling Qt for Windows 98

查看:212
本文介绍了为Windows 98编译Qt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要支持Windows98。Qt文档声称这是可能的,但是没有说明。 Qt 4.6的分布式二进制文件无法在Win98上运行,而我采样的大多数Qt应用程序也不能运行。对于一些确实可以在98上运行的应用程序,我曾问过作者它们是如何做到的,但是常见的答案是它是偶然的,他们不知道是什么原因造成的。



在搜索论坛中寻求帮助时,我只发现事实证明是错误的猜测。例如,一种信念是要为Win9x进行编译,必须在该平台上构建工具和应用程序。但是,我发现要运行的东西是在Windows的较新版本上构建的。




  • 构建Qt开发工具和应用程序需要什么? Win98?

  • 如何从WinXP或Linux进行交叉编译?

  • 是否存在无法在Win98上运行的特定组件? / li>
  • 动态或静态链接对Win98的支持是否存在特别困难?


解决方案

据我所知,



您可以从任何Windows版本使用MinGW或VC ++ 6 SP5定位Windows 98 。从Linux进行交叉编译是可行的,但设置



Qt 4.4.3是Win98上官方测试的最新版本。要运行分布式的二进制文件在Win98上,您需要安装旧版本的glu32.dll和opengl32.dll,可从微软。由于存在未解决的错误,助手将启动,但无法加载帮助文件。 bin目录中的替代版本assistant_adp.exe可以正常工作。似乎唯一的其他潜在问题是QtOpenGL可能会使用较旧的包装盒不提供的功能。



Qt 4.5.3似乎仍然兼容,但WebKit,OpenGL和声子QtOpenGL期望使用OpenGL 1.5,我不知道甚至在较旧的盒子上也可以实现。我没有对Phonon进行足够深入的研究,以确切地了解问题所在。 QtWebKit现在需要Win2K或更高版本。分布式二进制文件大多可以正常工作好。助手依赖于QtWebKit,因此无法启动,但assistant_adp.exe仍然可以使用。



Qt 4.6.3已分发二进制文件现在与Win98完全不兼容。可能有一些东西可以与MinGW 4.4一起使用,并且可以进行大量黑客攻击。



构建Qt Creator需要Qt 4.6.0和MinGW 4.4或VS 2008。 / p>

I need to support Windows 98. The Qt documentation claims this is possible, but there are no instructions. The distributed binaries of Qt 4.6 don't run on Win98 and the majority of Qt applications I have sampled also don't. For several apps that do run on 98, I have asked authors how they did it, but the common answer is that it was accidental and they don't know what factors caused it.

In searching the forums for help, I found only guesses that turned out to be wrong. For example, one belief is that to compile for Win9x, you must build the tools and the apps on that platform. Yet, things I found to run were built on newer versions of Windows.

  • What is required to build the Qt dev tools and then applications for Win98?
  • How about cross-compiling from WinXP or Linux?
  • Are there specific components that can't be made to run on Win98?
  • Are there particular difficulties with dynamic or static linking for Win98 support?

解决方案

Here is as far as I'm going to get on this:

You can target Windows 98 using MinGW or VC++ 6 SP5 from any Windows version. Cross-compiling from Linux is doable but not easy to set up.

Qt 4.4.3 was the last version officially tested on Win98. To run the distributed binaries on Win98, you need to install older versions of glu32.dll and opengl32.dll that are available from Microsoft. Due to an unresolved bug, Assistant will launch but can't load the help files. The alternate version in the bin directory, assistant_adp.exe, works fine. It seems the only other potential problem is that QtOpenGL may use features not available on older boxes.

Qt 4.5.3 appears to be still compatible except for WebKit, OpenGL, and Phonon. QtOpenGL expects OpenGL 1.5, which I don't know is even possible on older boxes. I didn't look into Phonon deeply enough to see exactly what the problems are. QtWebKit now requires Win2K or better. The distributed binaries work mostly OK. Assistant depends on QtWebKit, so will not launch, but assistant_adp.exe still works.

Qt 4.6.3 distributed binaries are now completely incompatible with Win98. It may be possible to get some things working with MinGW 4.4 and a lot of hacking.

Building Qt Creator requires Qt 4.6.0 and either MinGW 4.4 or VS 2008.

这篇关于为Windows 98编译Qt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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