Compiling Qt for Windows 98

前端 未结 2 1437
青春惊慌失措
青春惊慌失措 2021-02-04 01:00

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 majorit

2条回答
  •  暖寄归人
    2021-02-04 01:35

    Wow...interesting mission.

    So, basically - yes, there is windows 98 support for Qt. The problem is that there is one big IF. For example if you even try to set some different QTextCodec::codecForName, you'll have to provide 3rd party ttf for this purpose, because in most cases Win98 will not recognize it as valid. If you provide the exact error, while compiling it on win98 machine, I could help you.

    "How about cross-compiling from WinXP or Linux?" - If you use ONLY Qt libraries everything goes fine. Otherwise in .pro file, you have to link these libs under win32 and unix conditions. So you could even forbid your code, to be compiled and executed in other systems...

    "Are there specific components that can't be made to run on Win98?" - Of course. In .pro file you could include different libraries, for different operating systems.

    "Are there particular difficulties with dynamic or static linking for Win98 support?" - As far as I know - there isn't.

    //off - But it still strange, that someone want to write application for win98, today...

提交回复
热议问题