On 03/14/2012 10:41 PM, David C. Rankin wrote:
On 03/14/2012 10:17 PM, Darrell Anderson wrote:
Am I
missing something in the autoreconf step before
going to configure?
make -f admin/Makefile.common
autoreconf
## configure
msg "Configuring - ${pkgname}..."
./configure \
--prefix=${TDEDIR} \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-closure
I don't use autoreconf. Possibly could save me time, I don't know, but as I
rebuild often for testing, I build each package clean each time. In my automake scripts I
run this:
cp -p "$LIBTOOLM4" admin/libtool.m4.in
cp -p "$LTMAINSH" admin/ltmain.sh
echo "Building..."
echo
make -f admin/Makefile.common
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=${PREFIX} \
--sysconfdir=${SYSCONFDIR} \
--libdir=${LIBDIR} \
--mandir=${MANDIR} \
$DEBUG_AUTOTOOL_OPT \
--enable-closure || exit 1
Where on my system (Slackware):
LIBTOOLM4="/usr/lib/build/libtool.m4"
LTMAINSH="/usr/lib/build/ltmain.sh"
checking for X... libraries /usr/lib, headers .
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
Detected TQt4...
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... checking for pkg-config...
/usr/bin/pkg-config
configure: error: Qt (>= Qt 4.3 and < 5.0) (headers
and libraries) not found.
Please check your installation!
For more details about this problem, look at the end of
config.log.
I get Detected TQt4 no matter what?
In my tdeutils build log, which I just ran a bit ago:
Detected TQt3...
I don't think your build script is finding tqt.h in the expected location:
/usr/include/tqt/tqt.h. Where do you have tqtinterface installed?
Right now the install location of tqtinterface is hard-set to only /usr/include. If you
look at tdeutils/admin/acinclude.m4.in:1252, you'll see the test for Qt3/Qt4. I
don't understand M4 syntax very well, but I see the following:
CXXFLAGS="-I/usr/include/tqt"
AC_TRY_COMPILE([
#define TQT_VERSION_ONLY
#include <tqt.h>
Notice the presumption that tqt.h is found in /usr/include/tqt.
I'm guessing that if you don't have tqtinterface installed to /usr/include/tqt
and you have Qt4 installed in your build environment, then you get what you now see in
your build log.
For building purposes I do not have Qt4 or KDE4 installed in my Trinity build
environment. I keep my build environment as clean as possible to avoid conflicts and bad
linking.
I use a master control script to run each pacage's build script. Through that master
build script I explicitly set the following:
PREFIX: /opt/trinity
SYSCONFDIR: /etc/trinity
LIBDIR: /opt/trinity/lib
MANDIR: /opt/trinity/man
PKG_CONFIG_PATH: /opt/trinity/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
QTDIR: /opt/trinity
QT_INCLUDE_DIR: /opt/trinity/include
QT_LIB_DIR: /opt/trinity/lib
LD_LIBRARY_PATH: /opt/trinity/lib:/opt/trinity/lib/trinity
PATH:
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/opt/trinity/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/java/bin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/share/texmf/bin
I can change those variables but seldom do.
Darrell
---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe(a)lists.pearsoncomputing.net
For additional commands, e-mail: trinity-devel-help(a)lists.pearsoncomputing.net
Read list messages on the web archive:
http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post:
http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
OK, I'm getting closer :) I threw in an ugly hack and got TQt3:
## hack acinclude.m4
sed -i '/qt_bindirs=""/s|""|/opt/tqt3/bin"|'
admin/acinclude.m4.in
sed -i 's|/usr/include/tqt|/opt/trinity/include/tqt|g' admin/acinclude.m4.in
Now I can chase the unintended consequence of the aggressive use of sed and work
my way back to a clean build. Thanks for your help, I'll report back with results.
Made it to make, but some weird configure errors:
Detected TQt3...
checking for pkg-config... /usr/bin/pkg-config
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... libraries /opt/tqt3/lib, headers /opt/tqt3/include using -mt
checking for moc... /opt/tqt3/bin/moc
checking for uic-tqt... /opt/trinity/bin/uic-tqt
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if TQt is available... no
configure: WARNING: You are attempting to compile Trinity without the Trinity Qt
Interface installed. Please install libtqtinterface-dev and try again!
What -- no Trinity Qt Interface installed?? Then we hit make:
make all-recursive
make[1]: Entering directory `/build/src/tdeutils'
Making all in ark
make[2]: Entering directory `/build/src/tdeutils/ark'
Making all in pics
make[3]: Entering directory `/build/src/tdeutils/ark/pics'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/build/src/tdeutils/ark/pics'
make[3]: Entering directory `/build/src/tdeutils/ark'
rm -rf addition.h;
/opt/trinity/bin/uic-tqt -L /opt/trinity/lib/trinity/plugins/designer -nounload
./addition.ui | /usr/bin/perl -pi -e "s,public TQWizard,public KWizard,g;
s,#include <ntqwizard.h>,#include <kwizard.h>,g; s,public QWizard,public
KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >>
addition.h ;
rm -rf extraction.h;
/opt/trinity/bin/uic-tqt -L /opt/trinity/lib/trinity/plugins/designer -nounload
./extraction.ui | /usr/bin/perl -pi -e "s,public TQWizard,public KWizard,g;
s,#include <ntqwizard.h>,#include <kwizard.h>,g; s,public QWizard,public
KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >>
extraction.h ;
rm -rf general.h;
/opt/trinity/bin/uic-tqt -L /opt/trinity/lib/trinity/plugins/designer -nounload
./general.ui | /usr/bin/perl -pi -e "s,public TQWizard,public KWizard,g;
s,#include <ntqwizard.h>,#include <kwizard.h>,g; s,public QWizard,public
KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >>
general.h ;
/opt/trinity/bin/kconfig_compiler ./ark.kcfg ./settings.kcfgc; ret=$?; \
if test "$ret" != 0; then rm -f settings.h ; exit $ret ; fi
ATH=ATH:./ tmoc ./ark_part.h -o ark_part.moc
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I..
-D_LARGEFILE64_SOURCE -I/opt/trinity/include -I/opt/tqt3/include -I.
-DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W
-Wpointer-arith -fno-builtin -g3 -fno-inline -march=x86-64 -mtune=generic -O2
-pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -I/opt/trinity/include/tqt
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -MT ark_part.lo -MD -MP -MF .deps/ark_part.Tpo -c -o
ark_part.lo ark_part.cpp
../libtool: line 2083: ark_part.cpp: command not found
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE64_SOURCE
-I/opt/trinity/include -I/opt/tqt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat-security
-Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new
-fno-common -I/opt/trinity/include/tqt -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT ark_part.lo -MD -MP -MF
.deps/ark_part.Tpo -c "" -fPIC -DPIC -o .libs/ark_part.o
g++: error: : No such file or directory
g++: fatal error: no input files
compilation terminated.
../libtool: line 2083: ark_part.cpp: command not found?? That's just:
#include "ark_part.moc"
. ~/I\ Give\ Up :)
--
David C. Rankin, J.D.,P.E.