UBUNTU+ECLIPSE+QT Installation

Source: Internet
Author: User
Tags gtk file permissions

One, download:
1,QT Download Installation:
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig Qt4-designer
Qmake-v, view QT version
2, if the computer does not have the C + + development environment installed, it also requires:
sudo apt-get install build-essential g++ gcc-4.3-doc
3,eclipse for C + + (Eclipse IDE for C + + developers): http://www.eclipse.org/downloads/
File is: eclipse-cpp-helios-sr1-linux-gtk.tar.gz
4,eclipse qt Plugin: http://qt.nokia.com/developer/eclipse-integration
File is: qt-eclipse-integration-linux.x86-1.6.1.tar.gz
5, download JDK:
Http://java.sun.com
Second, install:
0, install the configuration jdk.
sudo chmod u+x/usr/lib/jvm/java/jdk1.6.0_12.bin
Modify bin file permissions so that it is executable


Then, execute
Sudo-s/usr/lib/jvm/java/jdk1.6.0_12.bin
will appear subtitles, continue to press ENTER, until the screen display requires input yes/no, then enter Y return, will extract the JDK to the folder, get Jdk1.6.0_12 directory.


At this point, the JDK is installed and configured below
Perform
sudo vi/etc/environment
Modified in environment, the following section appears
Reference:
Path= "...:/usr/lib/jvm/java/jdk1.6.0_12/bin"
classpath=.:/ Usr/lib/jvm/java/jdk1.6.0_12/lib
Java_home=/usr/lib/jvm/java/jdk1.6.0_12


Perform
sudo source. bashrc
At this point, the environment variables are set successfully (there are many ways to set up environment variables, not listed)


There may be default JDK, such as OpenJDK, in Ubuntu, so in order to use the JDK we have installed by default, the following work is done.
Perform
Update-alternatives--install/usr/bin/java Java/usr/lib/jvm/java/jdk1.6.0_12/bin/java 300
Update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/java/jdk1.6.0_12/bin/javac 300
This step adds the JDK we have installed to the Java menu.


And then execute
Update-alternatives--config Java
Select the system default JDK through this step


So, then enter in the shell
Java-version
1, install Eclipse:
(Qt has been installed on its own)
Direct TAR–ZXVF eclipse-cpp-ganymede-linux-gtk.tar.gz
2, install the Eclipse plugin:
Place the qt-eclipse-integration-linux.x86-1.4.0.tar.gz in the same level directory as the eclipse-cpp-ganymede-linux-gtk.tar.gz, directly TAR–ZXVF Qt-eclipse-integration-linux.x86-1.4.0.tar.gz can
3, Configuration:
Open Eclipse and configure the following information in "WINDOW->PREFERENCE->QT":
Name:qt4
Bin Path:/usr/bin
Include Path:/usr/include/qt4
This is the QT4 path for the default installation. If the path differs from this, please modify it yourself.
Referenced from: http://www.cnitblog.com/yunshichen/archive/2009/08/08/60595.html
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.