eclipse 下 QT 開發環境的搭建

來源:互聯網
上載者:User
Installation and Uninstallation
  • Dependencies
  • Installation on Linux
  • Uninstallation on Linux
  • Upgrading on Linux
  • Installation on Windows
  • Uninstallation on Windows
  • Upgrading on Windows

Dependencies

You need Eclipse version 3.2.1 or newer and the CDT plugin version
3.1.1 or newer to run the Qt integration plugin successfully. Both are
available for download from the Eclipse project at:

http://www.eclipse.org/downloads and

http://www.eclipse.org/cdt/downloads.php

Installation on Linux
  1. Download the Qt Eclipse Integration package corresponding to your Linux distribution.

    For
    older gcc 3.3 systems like Ubuntu 5.04, Red Hat WS 4 or SuSE 9.3, use
    the package with "gcc3.3" after the version number. The other package is
    for newer systems like Ubuntu 6.06, SuSE 10 or Fedora Core 6.

  2. Find your eclipse/plugins folder.

    If you installed Eclipse to
    /usr/local, you will find the directory /usr/local/eclipse/plugins
    there. If you used the package management system of your Linux
    distribution to install Eclipse, this directory might possibly be
    /usr/lib/eclipse/plugins.

  3. Unpack the package.

    Go to the location where you found the
    eclipse/plugins directory (i.e., /usr/local or /usr/lib in the example
    above) and untar the Qt Eclipse Integration package; e.g.

     cd /usr/local tar xzf ~/Downloads/qt-eclipse-integration-linux.x86-<version>.tar.gz

    You may need to be the root user to do this.

  4. Start Eclipse with a clean configuration.

    We highly recommended that you start Eclipse once from the command line with

     eclipse -clean

    after you have unpacked the Qt Eclipse Integration plugins and
    feature. This will not change anything in your workspace but will clear
    Eclipse's caches.

Uninstallation on Linux
  1. Remove the installed plugins and feature.

    Go to the location where
    you installed the Qt Eclipse Integration package; e.g.,
    /usr/local/eclipse or /usr/lib/eclipse, and remove all files/directories
    in plugins/ and features/ that start with com.trolltech.qtcppcpp

     cd /usr/local/eclipse rm -r plugins/com.trolltech.qtcppcpp* rm -r features/com.trolltech.qtcppcpp*
  2. Restart Eclipse with a clean configuration.

    We highly recommended that you start Eclipse once from the command line with

     eclipse -clean

    after you have removed the Qt Eclipse Integration plugins and
    feature. This will not change anything in your workspace but will clear
    Eclipse's caches.

Upgrading on Linux

To upgrade to a newer version of the Qt Eclipse Integration, first uninstall any old version as described in Uninstallation on Linux
above, then install the new one.

Installation on Windows
  1. Download the installer qt-eclipse-integration-win32-<version>.exe
  2. Run the installer.

    When the installer asks you, specify the location of your Eclipse installation and where you have MinGW installed.

  3. Start Eclipse via the Start Eclipse with MinGW
    shortcut in the Start menu.

    This runs Eclipse with the appropriate environment settings for you to develop Qt applications with MinGW in Eclipse.

Uninstallation on Windows

Run the uninstaller Uninstall Qt Eclipse Integration
in the Qt Eclipse Integration Start menu entry.

Upgrading on Windows

To upgrade to a newer version of the Qt Eclipse Integration, first uninstall any old version as described in Uninstallation on Windows
above, then install the new one.

Copyright 2009 Nokia Corporation and/or its subsidiary(-ies)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.