Small Problems Encountered during installation and compilation in qt sdk 4.8.4 Fedora

Source: Internet
Author: User

Qt SDK 4.8.4: http://qt-project.org/downloads

Select the desired version.

I selected: QT libraries 4.8.4 for Linux/X11 (225 MB)

Download the source package: qt-everywhere-opensource-src-4.8.4.tar.gz

Put it in a specified directory.

**************************************** **********************************

My system environment:

OS: fedora 17

Memory: 1 GB

CPU: core2 1.6g dual-core

Preinstallation directory/home/UN/APP/QT

/Home/UN/APP is a partition mounted in the/dev/SDA ext4 format.

**************************************** ********************************

Http://qt-project.org/doc/qt-4.8/install-x11.html

(Installation steps on the official website)

(1) My installation steps:

Root permissions used throughout the process

1. Package decompression, # tar-xzvf qt-everywhere-opensource-src-4.8.4.tar.gz/home/UN/APP/tmp

Note: The problem 1 below is on the decompressed directory. (The first time I unwrapped the package to a partition in vfat format)

It is recommended that the file system format of the destination address be the same as that of the file system of the installation address,

My installation address is/home/UN/APP/QT/. The source code package decompress the target address:/home/UN/APP/tmp, which is in the ext4 format.

2. the compiling environment and MAKEFILE file are generated, #./configure-Prefix/home/UN/APP/QT/

-The prefix dir option is the default installation directory; otherwise, it will be installed on/usr/local/trolltech/Qt-4.8.4/by default/

3. Compile, # gmake

This time is quite long. I have experienced about 2 ~ 3 hours

4. Install, # gmake install

5. Set the environment

  #PATH=/home/un/app/Qt/bin:$PATH  #export PATH

Or

Modify ~ in the Home Directory ~ /. Bash_profile file to set path to make the boot effective

# Vi ~ /. Bash_profile

Change

Path = $ path: $ home/. Local/bin: $ home/APP/QT/bin

**************************************** **************************************

(2) Let's talk about my problems and solutions:

Question 1.

#./Configure-Prefix/home/UN/APP/QT/

An error occurred while prompting you to create a file link. *** you do not have the permission information. For example:

Chmod:/mnt/winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/src/corelib/global/qconfig. cpp: The new permission is r-xrwxrwx, not r-XR-x
Creating qmake. Please wait...
LN: unable to create the Symbolic Link "mkspecs/Default": operation not allowed
G ++-c-o project. o-pipe-dqmake_opensource_edition-g-I. -igenerators/Unix-igenerators/Win32-igenerators/MAC-igenerators/Symbian-igenerators/integrity-I/mnt/winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/include-I/mnt // winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/include/qtcore
-I/mnt/winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/src/corelib/Global-I/mnt/winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/src/corelib/XML-I/mnt /winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/tools/Shared-dqt_no_pcre
-Dqt_build_qmake-dqt_bootstrapped-embedded-dqt_no_component-dqt_no_stl-embedded-I/mnt/winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/mkspecs/Linux-G ++-embedded-dqt_no_thread
-Dqt_no_qobject-dqt_no_geom_variant-dqt_no_deprecated project. cpp
G ++-c-o property. o-pipe-dqmake_opensource_edition-g-I. -igenerators/Unix-igenerators/Win32-igenerators/MAC-igenerators/Symbian-igenerators/integrity-I/mnt/winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/include-I/mnt // winf/software_linux/QT/qt-everywhere-opensource-src-4.8.4/include/qtcore
-I/mnt/

I didn't pay attention to it at the time, so I continued gmake and compiled it.

Result:

.............................

[../Lib/libqtgui. so.4.8.4] Error 1

Cause: I spent one day surfing the Internet looking for reasons and found a lot of relevant information without my related errors.

Later I thought it was the reason for the file system.

I decompress the package to a partition in vfat format, and then compile and install the package, which causes Linux File permissions.

Although my vfat format partition (Windows XP system f disk, FAT32 format, I set the boot Mount through the fstab file), I gave sufficient permissions umask = 000, read and write execution is fine, but still not.

Solution:

I decompress the package to the ext4 partition,

# Tar-xzvf qt-everywhere-opensource-src-4.8.4.tar.gz/home/UN/APP/tmp

The compilation result is incorrect.

It took a long time to compile gmake.

Question 2:

After a long compilation process, the following error occurs (I went to bed during compilation, but I didn't care if I woke up in the morning:

G ++: Error: Unrecognized command line option '-fuse-LD = Gold'
G ++: Error: Unrecognized command line option '-fuse-LD = Gold'
G ++: Error: Unrecognized command line option '-fuse-LD = Gold'
Gmake [2]: *** [../lib/libqtwebkit. so.4.9.3] Error 1
Gmake [2]: Leave the directory "/home/UN/APP/tmp/qto484/src/3 rdparty/WebKit/source/WebKit/Qt"
Gmake [1]: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
Gmake [1]: Leave the directory "/home/UN/APP/tmp/qto484/src/3 rdparty/WebKit/source"
Gmake: *** [sub-webkit-make_default-ordered] Error 2

Cause:

I am looking for the cause and solution on the Internet.

The original address is as follows:. (qt4.8.3 transplant summary ---Wuyuan's blog)

Http://wuyuans.com/2012/11/qt4-8-3-transplant/

This is a bug in QT: https://bugs.webkit.org/show_bug.cgi? Id = 89312
In a system with a gold linker installed, the-fuse-LD = gold option is added to the compilation script, but this option is not supported by GCC.

Solution:

Open

.../Src/3 rdparty/WebKit/source/common. PRI file,

Find qmake_lflags + =-fuse-LD = gold. Add the preceding # comment out

# Qmake_lflags + =-fuse-LD = gold, save.

Recompile

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.