Some qt problems under RedHat $ QTDIR -- Linux general technology-Linux programming and kernel information. The following is a detailed description. I personally feel that installing software in LINUX is a headache. qt is used to compile a graphics program.
I tried the downloaded installation package several times before, but I had to go back to the next step. I used the qt that comes with redhat (it is understood that the self-contained software in the redhat installation package is basically rpm, and the version is relatively low, you cannot configure installation paths or other important options. Therefore, it may be a mess in/usr/local (by default, rpm is installed in/usr/lib ).
After installing Helloworld, I tried to compile the Helloworld example and encountered many confusing problems. I found the cause of the problem, but it was not finally solved perfectly.
The problem is as follows:
1 \ qmake-project
2 \ qmake
3 \ make compilation Error
G ++-o hello. o main. o moc_hello.o-L/root/qt-2.3.7/lib-L/usr/X11R6/lib-lqt-mt-Xext-1X11-1 m
/Usr/bin/ld: cannot fid-lqt-mt
Collect2: ld returned 1 exit status
Make: *** [hello] Error 1
It seems that the library file cannot be found, so gedit manually opens Makefile, replace $ QTDIR in LNCPATH and LIBS with the installation path/usr/lib/qt-3.1 (or/usr/local/qt) of qt)
Finally compiled successfully.
Issues to be resolved:
1 \ I always wanted to set $ QTDIR to/usr/lib/qt-3.1, added in the configuration file/etc/profile and/root/. bash_profile
Solution: PATH = .. QTDIR is replaced by the actual PATH (/usr/lib/qt-3.1). It takes effect after cancellation.
The linux_tools in 2 \ redhat does not work either. I do not know where it is not configured.
Solution: in VMware Workstation 5.5.3, after VMware Tools is installed, you must manually execute/usr/bin/vmware-toolbox to display the effect.
./Usr/lib/vmware-tools/vmware-configure-tools.pl
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