First install g ++ (Click here to download ):
1. Install expat in source code or binary
2. Install libintl: pkgadd-d libintl-3.4.0-sol10-x86-local in Binary Package
3. Binary Package installation gettext: pkgadd-d gettext-0.14.1-sol10-intel-local
4. Install libiconv in source code or binary
5. Replace the built-in iconv:
Mv/usr/bin/iconv/usr/bin/iconv_old
Ln-s/usr/local/bin/iconv/usr/bin/iconv
6. Install gcc in binary reporting: pkgadd-d gcc-3.4.6-sol10-x86-local
Install Solaris 12.3 and Oracle 10g. For more information, see
Solaris temporary swap increase/decrease
Install Solaris Studio12.3 in Solaris 10 u10
Solution to errors during Oracle 10g2 installation on Solaris 10 u10
Set the environment variable (/etc/profile) and add the following line:
JAVA_HOME =/usr/jdk/jdk1.6.0 _ 26
Export JAVA_HOME
ORACLE_BASE =/export/home/oracle/product
Export ORACLE_BASE
ORACLE_HOME =/export/home/oracle/product/10.2.0/db_1
Export ORACLE_HOME
ORACLE_SID = orcl
Export ORACLE_SID
NLS_LANG = AMERICAN_AMERICA.ZHS16GBK
Export NLS_LANG
DISPLAY = localhost: 0.0
Export DISPLAY
QTDIR =/export/home/app/qt/4.7.5
Export QTDIR
LD_LIBRARY_PATH =/usr/lib:/usr/ucb/lib:/usr/local/lib:/usr/sfw/lib:/usr/openwin/sfw/lib: $ LD_LIBRARY_PATH: $ QTDIR/lib: $ JAVA_HOME/jre/lib/i386: $ JAVA_HOME/jre/lib/i386/client: $ ORACLE_HOME/lib: $ ORACLE_HOME/network/lib
PATH = $ PATH:/usr/bin:/usr/ucb/bin:/usr/local/bin:/usr/sbin:/usr/sfw/bin: /usr/ccs/bin: $ QTDIR/bin:/export/home/app/opt/solarisstudio12.3/bin: $ JAVA_HOME/jre/bin: $ ORACLE_HOME/bin
Export LD_LIBRARY_PATH
Export PATH
Generate the/export/home/dev_tools_gnu.sh file with the following content:
PATH =/usr/local/bin:/usr/sfw/bin:/usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ucb: /usr/ccs/bin:/export/home/app/opt/solarisstudio12.3/bin: $ PATH
LD_LIBRARY_PATH =/usr/local/lib:/usr/openwin/sfw/lib:/usr/lib: /usr/ccs/lib:/export/home/app/opt/solarisstudio12.3/lib:/opt/SUNWits/Graphics-sw/xil/lib:/opt/SUNWmlib/lib: /export/home/app/opt/solarisstudio12.3/prod/lib: $ LD_LIBRARY_PATH
INCLUDE =/usr/local/include:/usr/openwin/include:/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include: /usr/local/include/c ++/3.4.6:/usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include:/usr/sfw/include: /opt/SUNWmlib/include:/usr/include
Export PATH
Export LD_LIBRARY_PATH
Export INCLUDE
Run the following command: source/export/home/dev_tools_gnu.sh.
It seems that INCLUDE is not very useful, so don't worry about it.
Decompress the source code qt-digia-qt-4.7.5.tar.gz and run it in the source code directory:
. /Configure-platform solaris-g ++-no-qt3support-prefix/export/home/app/qt/4.7.5-L/opt/SUNWits/Graphics-sw/xil/lib-L/ opt/SUNWmlib/lib-Lusr/openwin/lib-L/usr/openwin/sfw/lib-L/usr/ccs/lib-L/ export/home/app/opt/solarisstudio12.3/prod/lib-L/usr/local/lib-I/usr/local/include-I/usr/openwin/include-I/ usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/include-I/usr/local/include/c ++/3.4.6-I/usr/local/lib/gcc/i386-pc-solaris2.10/ 3.4.6/include-I/usr/sfw/include-I/opt/SUNWmlib/include-I/usr/include
Run: gmake & gmake install
Run qtdemo or qtdesigner to verify the installation of Qt.