[kde-solaris] QT 3.3.1 & KDE 3.2.3 Compiling Problem
adsouza at globix.net
adsouza at globix.net
Thu Jun 17 04:01:23 CEST 2004
Hello all,
Having a hard time compiling KDE arts with QT 3.3.1. I am running
Solaris 9 on a Sparc Ultra 10 with:
gcc 3.3.2
autoconf 2.59
My ENV's are set to:
export QTDIR='/usr/local/qt'
export KDEDIR='/usr/local/kde'
export KDEHOME='/usr/local/home/username/.kde'
export PATH="/usr/local/bin:/usr/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/local/qt/bin:/usr/local/kde/bin:/usr/ar/bin:/usr/local/mysql/bin:/opt/sfw/bin:$QTDIR/bin:$KDEDIR/bin"
export LD_LIBRARY_PATH="/usr/local/lib:/usr/lib:/usr/dt/lib:/usr/openwin/lib:/lib:/opt/sfw/lib:$QTDIR/lib:$KDEDIR/lib"
(as much as I hate compiling with my LD_LIBRARY_PATH set...)
I compiled QT 3.3.1 with the following:
CC=gcc \
CXX=gcc \
CPPFLAGS='-I/usr/local/include -I/usr/local/gd/include
-I/usr/openwin/share/include/X11/extensions
-I/usr/local/ssl/include' \
LDFLAGS='-L/usr/local/lib -R/usr/local/lib -L/usr/local/gd/lib
-R/usr/local/gd/lib -L/usr/openwin/lib -R/usr/openwin/lib
-L/usr/local/ssl/lib -R/usr/local/ssl/lib' \
./configure -v \
-prefix /usr/local/qt \
-shared \
-static \
-qt-gif \
-system-zlib \
-thread \
-no-stl \
-system-libpng \
-system-libjpeg \
-no-g++-exceptions \
-platform solaris-g++
Now I am trying to compile arts 1.2.3 with the following:
CPPFLAGS='-I/usr/local/qt/include -I/usr/local/include
-I/usr/local/ssl/include -I/usr/local/gd/include' \
LDFLAGS='-lfreetype -L/usr/local/qt/lib -R/usr/local/qt/lib
-L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib
-R/usr/local/ssl/lib -L/usr/local/gd/lib -R/usr/local/gd/lib' \
CC=gcc \
./configure \
--prefix=/usr/local/kde \
--with-extra-includes='-I/usr/local/include -I/usr/local/ssl/include
-I/usr/local/gd/include' \
--with-extra-libs='-L/usr/local/lib -R/usr/local/lib
-L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/gd/lib
-R/usr/local/gd/lib' \
--with-qt-dir=/usr/local/qt \
--with-qt-includes=/usr/local/qt/include \
--with-qt-libraries=/usr/local/qt/lib \
--enable-shared \
--enable-static
It keeps producing the following error:
....
checking for pthread_create in -lpthread... yes
checking whether g++ supports -mt... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/local/bin/perl
checking for Qt... configure: error: Qt (>= Qt 3.2) (library qt-mt)
not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!
So I search all the archives for similar problems, and I see postings,
but I dont see resolutions. All of the sent suggestions I have tried
with no success and I am terribly sick and tired of recompiling qt since
it takes like 9 hours on Slowlaris.
In my config.log I have:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/usr/local/kde --with-extra-includes=-I/usr/local/include -I/usr/local/ssl/include -I/usr/local/gd/include --with-extra-libs=-L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/gd/lib -R/usr/local/gd/lib --with-qt-dir=/usr/local/qt --with-qt-includes=/usr/local/qt/include --with-qt-libraries=/usr/local/qt/lib --enable-shared --enable-static
## --------- ##
## Platform. ##
## --------- ##
hostname = host.mycomputer.com
uname -m = sun4u
uname -r = 5.9
uname -s = SunOS
uname -v = Generic_112233-11
/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = host.mycomputer.com
Release = 5.9
KernelID = Generic_112233-11
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
...
...
...
...
configure:31260: checking for Qt
configure: 31331: /usr/local/qt/include/qstyle.h
taking that
configure:31443: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -W -Wpointer-
/usr/local/qt/lib/libqt-mt.a(qthread_unix.o)(.text+0x5cc): In function
`QThread::start(QThread::Priority)':
: undefined reference to `sched_get_priority_min'
/usr/local/qt/lib/libqt-mt.a(qthread_unix.o)(.text+0x5d8): In function
`QThread::start(QThread::Priority)':
: undefined reference to `sched_get_priority_max'
collect2: ld returned 1 exit status
configure:31446: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 0x030200)
#error 1
#endif
int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
configure:31486: error: Qt (>= Qt 3.2) (library qt-mt) not found. Please
check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!
...
...
...
But as shown above, my configure script clearly has the -thread option
in it for QT.
I have the file it is complaining about:
bash-2.05~$ ls -la /usr/local/qt/include/qstyle.h
lrwxrwxrwx 1 root other 22 Mar 31 02:19 /usr/local/qt/include/qstyle.h -> ../src/kernel/qstyle.h
bash-2.05~$ ls -la /usr/local/qt/src/kernel/qstyle.h
-rw-r--r-- 1 root other 19041 Feb 18 08:22 /usr/local/qt/src/kernel/qstyle.h
bash-2.05~$ ls -la /usr/local/qt/lib/libqt-mt.a
-rw-r--r-- 1 root other 13031610 Jun 16 16:57 /usr/local/qt/lib/libqt-mt.a
However, everything I try, Arts wont make it past the QT test.
Thanks for any assistance.
Anthony
More information about the kde-solaris
mailing list