• 7639阅读
  • 2回复

请问qt在64位处理器windows系统下可以安装吗 [复制链接]

上一主题 下一主题
离线mingmingkan
 

只看楼主 倒序阅读 楼主  发表于: 2008-04-29
请问qt在64位处理器windows系统下可以安装吗
— 本帖被 XChinux 执行加亮操作(2008-04-29) —
各位大大好,我刚刚接触QT,在windows系统下安装qt-win-opensource-src-4.3.2和Qt Visual Studio Integration 1.2.2,之前一直安装错误,为此还重装了电脑,重装电脑后先装了VisualStudio.net2005完整版,然后按照使用说明安装,安装说明如下:

Compiling Qt 4.3.2 for Visual Studio 2005 + Setting up Visual Studio 2005 Integration
=====================================================================================

1.) Unzip "qt-win-opensource-src-4.3.2.zip" to a directory (e.g.: F:\MyProgies\Qt4).

    This folder is from now on called QTDIR. Make sure that your partition has at
    least 2 GB free space that is needed to compile the Q-Toolkit on your computer.

2.) Start the "Visual Studio 2005 Command Promt" using the Start Menu of Windows.
    The command prompt is located within the "Visual Studio Tools".

3.) Goto the QTDIR using the "cd" command, e.g.:

    F:
    cd F:\MyProgies\Qt4

4.) Type the following line and press enter:

    configure -buildkey msvc2005 -qt-gif -qt-sql-odbc -qt-sql-sqlite -no-qt3support

    If you need backward compatibility and want to compile Qt 3.X applications you
    should remove the last command line argument ("-no-qt3support"). If not you should
    add it to fasten the compile process.

5.) Type the following line and press enter to start the compilation:

    nmake

    NOTE: this can take up to an hour depending on your processor and hard disk.

6.) You should clean up the installation of Qt which should take up about 2 GB on
    you hard disk by entering the following command (NOTE: !!! create a backup of
    your QTDIR\lib directory first, because some Qt versions also clean that
    directory. Copy the files back after the command has finished !!!):

    nmake clean

    Now the QTDIR folder should only be about 0.5 GB in size.

7.) Press <Windows>+<Pause> to bring up the "System Settings" of Windows. Now choose
    the "Advanced" tab and click the "Environment Variables" button.

    @ user variables list:

      * Edit the INCLUDE variable and append the QTDIR\include folder to it.
        (e.g. by appending "; F:\MyProgies\Qt4\include" without double quotes)

      * Edit the LIB variable and append the QTDIR\lib folder to it.
        (e.g. by appending "; F:\MyProgies\Qt4\lib" without double quotes)

      + Create a new variable called QMAKESPEC and add "win32-msvc2005" as content.
        (e.g. QMAKESPEC should contain "win32-msvc2005" without double quotes)

    @ system variables list:

      * Edit the PATH variable and append the QTDIR\bin folder to it.
        (e.g. by appending "; F:\MyProgies\Qt4\bin" without double quotes)

      + Create a new variable called QTDIR and add the QTDIR as content.
        (e.g. QTDIR should contain "F:\MyProgies\Qt4" without double quotes)

    Close the dialog by clicking OK. Close the "System Settings" by clicking OK again.

8.) Install the Qt Visual Studio Integration 1.2.2.

9.) Start Visual Studio 2005 and goto "Extras->Options...". Open the "Qt" tree item and
    select the node called "Builds". Click on "Add" and enter the following data:

    Name: Qt-4.3.2
    Path: Your QTDIR (e.g.: F:\MyProgies\Qt4)

10.) ENJOY building Qt applications under Windows.

可是我按照流程安装后(省掉nmake clean这一步),用户变量里没有include和lib变量,于是新建了这两个变量
但是我在打开学长已经做好的文件时,出现了下面的问题:

fatal error C1083:Cannot open include file: 'QtGui': No such file or directory
fatal error C1083: Cannot open include file: 'QApplication': No such file or directory

我想是环境变量没有设好,但是实在找不到哪里和说明的不吻合,确切的说我不知道怎么设置
请问这和我的处理器是64位的有关吗?还是我的环境变量哪里出错了呢?

我知道自己的问题很初级,但是也没有找到明确的资料,小弟在此先谢过各位大大了
离线XChinux

只看该作者 1楼 发表于: 2008-04-29
官方文档说支持64位windows的。
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线364风
只看该作者 2楼 发表于: 2008-05-01
我的也是64位机,安同样版本,无问题啊
快速回复
限100 字节
 
上一个 下一个