관리 메뉴

Value Creator의 IT(프로그래밍 / 전자제품)

#1 QT 5.6.3 + QT Creator 4.2.1 Ubuntu 14.04에 설치 본문

1. 프로그래밍/3) QT

#1 QT 5.6.3 + QT Creator 4.2.1 Ubuntu 14.04에 설치

valuecreatort 2019. 4. 8. 18:42
반응형

QT가 있고, QT Creator가 있다.

위 두 개는 별개이다.

하지만 최근에는 통합 설치 파일을 지원하므로 상관없다.

QT, QT Creator 구버전 설치방법은 추후 참고.

 

 

5.6.3 버전 설치는 아래대로 따라하면 된다.

https://wiki.qt.io/Install_Qt_5_on_Ubuntu#Install_Qt_5_on_Ubuntu

 

Install Qt 5 on Ubuntu - Qt Wiki

From Qt Wiki En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh Install Qt 5 on Ubuntu Introduction This is a tutorial for installation of Qt 5.7.0 to Ubuntu 12.10. It may be used for some newer versions of Qt and Ubuntu. As a count

wiki.qt.io

위 링크에서도 설치과정을 볼 수 있다. 머리아프면 아래 과정을 따라하면 된다.

 

1. QT creator 5.6.3이 Ubuntu 14.04에 지원가능한 최신 QT 버전이다.

(현재 QT는 QT 5.13버전까지 나온 상태이다. QT 5.9 버전이후로는 Ubuntu 16.04 이후의 버전이 지원한다.)

(5.8 버전까지도 Ubuntu 14.04에 설치는 가능하지만, LTS(Long time Support) 가 아니므로 5.6.3을 설치했다.)

 

2. 다운로드 링크

http://download.qt.io/official_releases/qt/5.6/5.6.3/qt-opensource-linux-x64-5.6.3.run.mirrorlist

 

Qt Downloads

Powered by MirrorBrain Size: 681M (713716970 bytes) Last modified: Tue, 19 Sep 2017 04:54:59 GMT (Unix time: 1505796899) SHA-256 Hash: f1fbd6b7ee067f6af6412d16c33c5478aed230c655c888d9cc7b1037f8048ec5 SHA-1 Hash: c5a7821b57970a9aecbb30724a7705c33eabed1c MD5

download.qt.io

위 링크 들어가서 가운데 쯤에 있는 Download file 을 클릭한다.

 

qt-opensource-linux-x64-5.6.3.run 을 받을 수 있다.

 

3. 설치 명령어

터미널을 띄운다. Ctrl Alt T

허가를 받기위해 명령어 입력. 아래 명령어대로 안하면 설치가 안된다.(부등호 > 는 빼고 입력한다.)

(다운로드 받은 해당 경로로 가서 아래 명령어 입력한다. 경로이동 명령어 예시 > cd /root/Downloads)

> chmod +x qt-opensource-linux-x64-5.6.3.run

> ./qt-opensource-linux-x64-5.6.3.run

 

4. 설치화면이 뜬다. QT 5.6.3이 기본적으로 체크해제가 되어있다. 설치를 위해 반드시 체크를 해주고 설치한다.

기본적으로 위의 네모박스가 체크해제 되어있다.

 

5. 설치 끝나고 실행하면된다.

 

 

 

 

 

 

 

-----------------------------------------------------------------------------------------------------------------------------------

구버전 설치하고 싶은 사람을 위한 QT 4.8.2 설치 링크

http://download.qt.io/official_releases/qtcreator/4.8/4.8.2/qt-creator-opensource-linux-x86_64-4.8.2.run.mirrorlist

 

Qt Downloads

Powered by MirrorBrain Size: 148M (155471047 bytes) Last modified: Fri, 01 Mar 2019 09:47:25 GMT (Unix time: 1551433645) SHA-256 Hash: 933ba9b51e18f2d5d65db6c825fc29241d93e61d71fbf9d20182b4037f27e5c6 SHA-1 Hash: a663af8c157ce183556c8d7371dea56166980376 MD5

download.qt.io

 

수동 설치는 아래 링크 참조.

https://download.qt.io/archive/qt/INSTALL

불러오는 중입니다...

 

 

[내용]

                          INSTALLING Qt/X11 Version 4.1.3.

1.  If you have the commercial edition of Qt, install your license
    file as $HOME/.qt-license.

    For the open source version you do not need a license file.

--> QT를 아무데나 다운받으라는 얘기다.


2.  Unpack the archive if you have not done so already:

        cd /tmp
        gunzip qt-x11-opensource-src-4.1.3.tar.gz        # uncompress the archive
        tar xvf qt-x11-opensource-src-4.1.3.tar          # unpack it

    This creates the directory /tmp/qt-x11-opensource-src-4.1.3 containing the files
    from the archive. We only support the GNU version of the tar
    archiving utility. Note that on some systems it is called gtar.

 

-> 터미널을 열어서 위와 같이 한줄씩 명령어를 넣으라는 소리다. 파일 이름은 다운받은걸로 바꿔줘야 한다.

3.  Building

    To configure the Qt library for your machine type:

        cd /tmp/qt-x11-opensource-src-4.1.3
        ./configure

    Type "./configure -help" to get a list of all available options.

 

-->압축풀린 파일로 가서(터미널 안에서) ./configure를 입력하라는 소리다.


    To create the library and compile all the demos, examples, tools,
    and tutorials, type:

        make

--> make 명령어 넣으라는 소리다.(위의 configure 과정이 끝나고 난뒤 입력해야한다. 터미널 여러개 띄우지 말고 차근차근 해야한다.)


    To install the library, demos, examples, tools, and tutorials,
    type:

        su -c "make install"

--> 위와 같이 명령어 넣는다.

    and enter the root password. Qt is by default installed into
    /usr/local/Trolltech/Qt-4.1.3 but this can be changed by using
    the -prefix parameter.

--> qt는 위 폴더에 기본으로 설치된다고 한다.


    Note that on some systems the make utility is named differently,
    e.g. gmake. The configure script tells you which make utility to
    use.

    If you need to reconfigure and rebuild Qt from the same location,
    ensure that all traces of the previous configuration are removed
    by entering the build directory and typing

        make confclean
--> 이건 재설정할 때 쓰는것 같다.
    before running the configure script again.

4.  Environment variables

    In order to use Qt, some environment variables needs to be
    extended.

        PATH               - to locate qmake, moc and other Qt tools
-->/etc 폴더에 environment라는 파일인듯한다.

터미널 열고 /etc경로 가서 sudo gedit environment 하면 수정할 수 있다.

https://dog-developers.tistory.com/61

 

/home/a/Downloads/qt-everywhere-opensource-src-4.8.4/bin
    This is done like this:

    In .profile (if your shell is bash, ksh, zsh or sh), add the
    following lines:

        PATH=/usr/local/Trolltech/Qt-4.1.3/bin:$PATH
        export PATH
-->저의 경우 /home/a/Downloads/qt-everywhere-opensource-src-4.8.4/bin

폴더입니다. 본인이 빌트한 폴더의 bin 인 것 같습니다.

 


    In .login (in case your shell is csh or tcsh), add the following line:

        setenv PATH /usr/local/Trolltech/Qt-4.1.3/bin:$PATH

    If you use a different shell, please modify your environment
    variables accordingly.

    For compilers that do not support rpath you must also extended the
    LD_LIBRARY_PATH environment variable to include
    /usr/local/Trolltech/Qt-4.1.3/lib. On Linux with GCC this step
    is not needed.

5.  That's all. Qt is now installed.

    If you are new to Qt, we suggest that you take a look at the demos
    and examples to see Qt in action. Run the Qt Examples and Demos
    either by typing 'qtdemo' on the command line or through the
    desktop's Start menu.

    You might also want to try the following links:

        http://doc.trolltech.com/4.1/how-to-learn-qt.html
        http://doc.trolltech.com/4.1/tutorial.html
        http://www.trolltech.com/developer

    We hope you will enjoy using Qt. Good luck!

 

 

 

-----------------------------------------------------------------------------------------------------------------------------------------------

1. qt version.xml permission denied 오류 발생시

https://forum.qt.io/topic/25256/cannot-overwrite-file

 

Cannot overwrite file

greetings after commiting a mistake of installing the old qt from the ubuntu software center i unistalled and downloaded the latest one from the website but now i get this erorr message: cannot overwrite file /home/usrname/./config/QtProject/qtcreator/qtv.

forum.qt.io

Question :

greetings after commiting a mistake of installing the old qt from the ubuntu software center i unistalled and downloaded the latest one from the website but now i get this erorr message:

cannot overwrite file /home/usrname/./config/QtProject/qtcreator/qtversion.xml: Permission denied

any idea guys?

 

Answer :

When are you getting this stuff?

  • A simple chmod or chown should do the trick:
    @
    sudo chown -R username /home/usrname/./config/QtProject/
    @

 

반응형
Comments