包括Qt Creator中的声子环境设置

时间:2021-05-27 23:23:00

On Windows XP, I ran "configure", and Qt says that I'm configured to use phonon, but I'm not sure how to set up my environment correctly in Qt Creator. According to the Qt documentation, I need to call:

在Windows XP上,我运行“configure”,Qt说我配置为使用声子,但我不确定如何在Qt Creator中正确设置我的环境。根据Qt文档,我需要打电话:

Set DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (February 2007)

设置DXSDK_DIR = C:\ Program Files \ Microsoft DirectX SDK(2007年2月)

%DXSDK_DIR%\utilities\bin\dx_setenv.cmd

C:\program files\Microsoft Platform SDK\setenv.cmd

C:\ program files \ Microsoft Platform SDK \ setenv.cmd

How do I do this in the Qt Creator IDE?

我如何在Qt Creator IDE中执行此操作?

Thanks!

1 个解决方案

#1


As far as i understand those sets are required if you want to build phonon itself, but if you rely on already build qt that has phonon enabled, those are not required.

据我所知,如果你想构建声子本身就需要这些集合,但是如果你依赖已经构建了启用了声子的qt,那么这些都不是必需的。

However, if it indeed turns out that you need those too, optimal way would be that you first look into those 2 scripts, extract all the environment variables those 2 scripts set and then go to Control Panel->System->Advanced Tab->Environment Variable Button and set the variables there manually.

但是,如果事实证明您确实需要这些,那么最佳方式是首先查看这两个脚本,提取这两个脚本设置的所有环境变量,然后转到控制面板 - >系统 - >高级选项卡 - >环境变量按钮并手动设置变量。

There's also a tool call setx available somewhere that you can use, check this thread for example: http://forums.techarena.in/windows-xp-support/1152405.htm

还有一个可以使用的工具调用setx,请查看此主题,例如:http://forums.techarena.in/windows-xp-support/1152405.htm

#1


As far as i understand those sets are required if you want to build phonon itself, but if you rely on already build qt that has phonon enabled, those are not required.

据我所知,如果你想构建声子本身就需要这些集合,但是如果你依赖已经构建了启用了声子的qt,那么这些都不是必需的。

However, if it indeed turns out that you need those too, optimal way would be that you first look into those 2 scripts, extract all the environment variables those 2 scripts set and then go to Control Panel->System->Advanced Tab->Environment Variable Button and set the variables there manually.

但是,如果事实证明您确实需要这些,那么最佳方式是首先查看这两个脚本,提取这两个脚本设置的所有环境变量,然后转到控制面板 - >系统 - >高级选项卡 - >环境变量按钮并手动设置变量。

There's also a tool call setx available somewhere that you can use, check this thread for example: http://forums.techarena.in/windows-xp-support/1152405.htm

还有一个可以使用的工具调用setx,请查看此主题,例如:http://forums.techarena.in/windows-xp-support/1152405.htm