An error occurred while adding qmake rebuild to QT creator.

Source: Internet
Author: User

Turn: http://blog.csdn.net/c05170519/article/details/6339207

Add qmake (for Qt embeddedd) to QT creater --> Tools --> qptios --> qt4 --> QT versions, and then rebuild degugging
The following error occurs when helper (that is, the red X is changed to a green check:
Building debugging helper library in/QT/qte-4.5.0/QTc-debugging-helper/

Running/usr/bin/make distclean...
Rm-F gdbmacros. o
Rm-f *~ Core *. Core
Rm-F libgdbmacros. so.1.0.0
Rm-F libgdbmacros. So libgdbmacros. so.1 libgdbmacros. so.1.0 libgdbmacros.
Rm-F makefile

Running/QT/qte-4.5.0/bin/qmake...
Cannot find file :.

Running/usr/bin/make...
Arm-Linux-G ++-C-pipe-g-wall-w-d_reentrant-FPIC-duse_qt_gui = 1-dqt_gui_lib-dqt_core_lib-dqt_shared-I .. /mkspecs/qws/Linux-arm-G ++-I. -I .. /include/qtcore-I .. /include/qtgui-I .. /include-I. -I. -O gdbmacros. O gdbmacros. CPP
Make: Arm-Linux-G ++ has been running ½ ä ä» too many has been running too many °
Make: *** [gdbmacros. O] ******* 127

 

The last two lines are garbled, and Baidu and Google have no solutions.

I forgot how to find out the problem. I just remember that when I added qmake to the environment variable above, if I wrote it into/etc/bash. bashrc, auto-detect cannot be found, so/etc/profle and/etc/bash. bashrc is curious about the two files. When asked, the teacher knows that the former is global and has an effect on the entire system, while the latter only works on the terminal, although qmake writes/etc/profile, the cross compiler writes it into/etc/bash and bashrc (it saves time to modify the profile and restarts the computer, the latter only requires the following source). During rebuild, the related cross compiler needs to be called. If it is written in/etc/bash and bashrc, the compiler will not be able to find it, so an error will occur.

On the Internet, I also found a blog of Dongda reading Bo Ge, which is related to qmake. conf has been modified. It seems that the correct address can be added before the cross compiler, but it contains the qmake of the cross compiler. conf has many files with the same name. The change may be "correct", but nothing else happens. Who knows what will happen in the future?

 

 

Solution: Write the cross compiler into/etc/profile instead of/etc/bash. Bash. RC.

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.