Порядок сборки ниже. За английский - это не стеб, на машине русского как то нет, а ставить - лениво.
Req's:
- uname -a
SunOS s9 5.9 Generic_112234-10 i86pc i386 i86pc
- cat /etc/release:
Solaris 9 12/03 s9x_u5wos_08b x86
Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 21 November 2003
Pre-installed Solaris packages: (pkginfo | egrep "SFW|SMC")
- GNU tools/other stuff:
system SFWgcmn gcmn - Common GNU package
system SFWmyjdb myjdb - MySQL Connector/J
system SFWmysql mysql - MySQL Database Management S
ystem
system SFWncur ncurses - new curses library
application SMCautoc autoconf
application SMCautom automake
application SMCgcc gcc
application SMCglib glib
application SMClibgcc lgcc
application SMCliconv libiconv
application SMCmake make
application SMCmc mc
application SMCncurs ncurses
application SMCtar tar
application SMCtop top
application SMCwget wget
- like, using only SMClibgcc,SMCgcc,SFWmysql packages
- SMC* packages - from sunfreeware.com
- SFWmy* - from mysql site. (mysql package from Solaris Companion CD)
PKGINST: SFWmysql
NAME: mysql - MySQL Database Management System
CATEGORY: system
ARCH: i386
VERSION: 4.0.15,REV=2003.09.24.00.05
BASEDIR: /opt
VENDOR:
http://www.mysql.com
DESC: mysql - MySQL Database Management System
PSTAMP: freeware20030924005022
INSTDATE: Mar 05 2004 14:49
HOTLINE: Please contact the owners of this software
STATUS: completely installed
FILES: 800 installed pathnames
5 shared pathnames
49 directories
75 executables
30949 blocks used (approx)
- 1. Prebuild stage:
- Unzip/untar:
gzip -dc qt-x11-free-3.2.3.tar.gz | tar xf -
cd qt-x11-free-3.2.3
set LD_LIBRARY_PATH & LDFLAGS, other CFLAGS stuff:
export LD_LIBRARY_PATH=/opt/sfw/mysql/lib/mysql:/usr/local/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L/opt/sfw/mysql/lib/mysql -lmysqlclient"
export CFLAGS="-I/opt/sfw/mysql/include/mysql"
export CPPFLAGS="-I/opt/sfw/mysql/include/mysql"
export CXXFLAGS="-I/opt/sfw/mysql/include/mysql"
however, СFLAGS, CPPFLAGS does not help with including mysql.h header to build proccess (?!!)
- 2. configure stage:
add "/opt/sfw/mysql/lib/mysql" to LIBDIRS variable on <builddir>/config.tests/unix/checkavail script
add "/opt/sfw/mysql/include/mysql" to INCLUDEDIRS variable on <builddir>/config.tests/unix/checkavail script
test detect script:
./checkavail "MySQL" "yes" "-lmysqlclient mysql.h"
MySQL auto-detection...
Found libmysqlclient.* in /opt/sfw/mysql/lib/mysql
Found mysql.h in /opt/sfw/mysql/include/mysql
MySQL enabled.
test configure script:
./configure -help shows detected mysql driver (as "Auto-Detected on this system:"
Run Qt configure script:
./configure -platform solaris-g++ --prefix=/usr/local/qt -qt-sql-mysql -I/opt/sfw/mysql/include/mysql
3. Make stage:
type make. Enjoy!
