I personally feel that installing software in Linux is a headache. qt is used to compile a graph 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 ). try to compile the Helloworld example after installation.
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
QTDIR =/usr/lib/qt-3.1
PATH = $ QTDIR/bin: $ PATH
MANPATH = $ QTDIR/man: $ MANPATH
LD_LIBRARY_PATH = $ QTDIR/lib: $ LD_LIBRARY_PATH
Still does not work, do not know why
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
It takes effect after restart.