Tim, Darrell, all,
I've moved to trying to get tdeutils to build again. Currently I'm attempting to build with:
## Generate config files and update with autoreconf cd ${srcdir}/${pkgname#*-} make -f admin/Makefile.common autoreconf
## configure msg "Configuring - ${pkgname}..." ./configure \ --prefix=${TDEDIR} \ --with-qt-dir=${QTDIR} \ --with-qt-includes=${QTDIR}/include \ --with-extra-includes="${TDEDIR}include/tqt/Qt" \ --with-qt-libraries=${QTDIR}/lib \ --with-extra-libs=${TDEDIR}/lib/trinity \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-closure
For some reason, the build tries to use Qt4? Where can I work-around this? The error is:
checking for IceConnectionNumber in -lICE... yes checking for libXext... yes Detected TQt4... checking for pthread_create in -lpthread... yes checking for extra includes... added checking for extra libs... added 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.
Do we need to patch something to check for tqt instead of qt?
On 03/14/2012 07:22 PM, David C. Rankin wrote:
Tim, Darrell, all,
I've moved to trying to get tdeutils to build again. Currently I'm attempting to build with:
## Generate config files and update with autoreconf cd ${srcdir}/${pkgname#*-} make -f admin/Makefile.common autoreconf
## configure msg "Configuring - ${pkgname}..." ./configure \ --prefix=${TDEDIR} \ --with-qt-dir=${QTDIR} \ --with-qt-includes=${QTDIR}/include \ --with-extra-includes="${TDEDIR}include/tqt/Qt" \ --with-qt-libraries=${QTDIR}/lib \ --with-extra-libs=${TDEDIR}/lib/trinity \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-closure
For some reason, the build tries to use Qt4? Where can I work-around this? The error is:
checking for IceConnectionNumber in -lICE... yes checking for libXext... yes Detected TQt4... checking for pthread_create in -lpthread... yes checking for extra includes... added checking for extra libs... added 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.
Do we need to patch something to check for tqt instead of qt?
I'm not exactly sure where to look, but from config.log, it looks like it can't find the Qt/<headers>.h files it needs:
conftest.cpp:2:24: fatal error: Qt/qglobal.h: No such file or directory compilation terminated. configure:22601: $? = 1 configure: failed program was: #include "confdefs.h" #include <Qt/qglobal.h> #include <Qt/qapplication.h> #include <Qt/qcursor.h> #include <Qt/qstylefactory.h> #if ! (TQT_VERSION >= 0x040300 && TQT_VERSION < 0x050000) #error 1 #endif
(I fixed the --with-extra-includes=${TDEDIR}/include/tqt/Qt line) doesn't help...
On 03/14/2012 07:35 PM, David C. Rankin wrote:
On 03/14/2012 07:22 PM, David C. Rankin wrote:
Tim, Darrell, all,
I've moved to trying to get tdeutils to build again. Currently I'm attempting to build with:
## Generate config files and update with autoreconf cd ${srcdir}/${pkgname#*-} make -f admin/Makefile.common autoreconf
## configure msg "Configuring - ${pkgname}..." ./configure \ --prefix=${TDEDIR} \ --with-qt-dir=${QTDIR} \ --with-qt-includes=${QTDIR}/include \ --with-extra-includes="${TDEDIR}include/tqt/Qt" \ --with-qt-libraries=${QTDIR}/lib \ --with-extra-libs=${TDEDIR}/lib/trinity \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-closure
For some reason, the build tries to use Qt4? Where can I work-around this? The error is:
Looking further, there are a number of fatal errors some related to gcc itself. I don't know if these are the result of a gcc 4.6.3 compatibility or what. Here are the fatals from config.log. The last one looks like the one that thinks it is TQt4:
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /build/src/gcc-4.6.3/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/s hare/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go, lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind- exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-l inker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin - -with-plugin-ld=ld.gold --disable-multilib --disable-libssp --enable-checking=release Thread model: posix gcc version 4.6.3 (GCC) configure:4223: $? = 0 configure:4212: gcc -V >&5 gcc: error: unrecognized option '-V' gcc: fatal error: no input files compilation terminated. configure:4223: $? = 1 configure:4212: gcc -qversion >&5 gcc: error: unrecognized option '-qversion' gcc: fatal error: no input files compilation terminated.
configure:5316: gcc -E conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:5316: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "tdeutils" | #define VERSION "3.5.10" | /* end confdefs.h. */ | #include <ac_nonexistent.h>
These error repeat for c++ & g++. The we hit Carbon.h errors:
conftest.c:64:27: fatal error: Carbon/Carbon.h: No such file or directory compilation terminated. configure:19923: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME ""
Then CoreAudio.h
configure:19923: result: no configure:19923: checking for Carbon/Carbon.h configure:19923: result: no configure:19935: checking CoreAudio/CoreAudio.h usability configure:19935: gcc -c -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat-security -Wmissing-format-attribute conftest.c >&5 conftest.c:64:33: fatal error: CoreAudio/CoreAudio.h: No such file or directory compilation terminated. configure:19935: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME ""
Then crt_externs.h
configure:20654: checking crt_externs.h usability configure:20654: gcc -c -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat-security -Wmissing-format-attribute conftest.c >&5 conftest.c:73:25: fatal error: crt_externs.h: No such file or directory compilation terminated. configure:20654: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME ""
Then tqt.h (this sounds like the big error)
configure:21086: $? = 0 configure:21101: result: yes configure:21190: g++ -c -I/usr/include/tqt conftest.cpp >&5 conftest.cpp:44:19: fatal error: tqt.h: No such file or directory compilation terminated. configure:21190: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "tdeutils" | #define VERSION "3.5.10" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define KDELIBSUFF "" | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SGI_STL 1 | #define HAVE_CRYPT 1 | #define kde_socklen_t socklen_t | #define ksize_t socklen_t | #define HAVE_SYS_TYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_SYS_BITYPES_H 1 | #define HAVE_RES_INIT 1 | #define HAVE_RES_INIT 1 | #define HAVE_RES_INIT_PROTO 1 | #define SIZEOF_INT 4 | #define SIZEOF_SHORT 2 | #define SIZEOF_LONG 8 | #define SIZEOF_CHAR_P 8 | #define SIZEOF_SIZE_T 8 | #define SIZEOF_UNSIGNED_LONG 8 | #define HAVE_VSNPRINTF 1 | #define HAVE_SNPRINTF 1 | /* end confdefs.h. */ | | #define TQT_VERSION_ONLY | #include <tqt.h> | #undef TQT_VERSION_ONLY | #ifdef USE_QT4 | choke me | #endif | | int | main () | { | | ; | return 0; | } configure:21210: result: Detected TQt4... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Bang -- where did this come from??
conftest.cpp:44:19: fatal error:
tqt.h: No such file or directory
Read my previous post. The build script is looking for the tqt headers in a location where they are not installed.
This is from my build script:
CFLAGS=$CPUOPT \ CXXFLAGS=$CPUOPT \ ./configure \ --prefix=${PREFIX} \ --sysconfdir=${SYSCONFDIR} \ --libdir=${LIBDIR} \ --mandir=${MANDIR} \ $DEBUG_AUTOTOOL_OPT \ --enable-closure || exit 1
Darrell
On 03/14/2012 08:03 PM, Darrell Anderson wrote:
This is from my build script:
CFLAGS=$CPUOPT \ CXXFLAGS=$CPUOPT \ ./configure \ --prefix=${PREFIX} \ --sysconfdir=${SYSCONFDIR} \ --libdir=${LIBDIR} \ --mandir=${MANDIR} \ $DEBUG_AUTOTOOL_OPT \ --enable-closure || exit 1
Darrell
Darrell,
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
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?
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
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@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@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.
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.
Here is the problem:
sed -i 's|/usr/include/tqt|/opt/trinity/include/tqt|g' admin/acinclude.m4.in
Install tqtinterface to /usr and all other packages to /opt/trinity. I'm guessing this is where many of your build problems lie. I don't fight this or try to be clever. I build tqtinterface to install to /usr. I forget the reason for this, but I think the reason is all of the automake packages are hard-coded to look there. I don't know where else in the automake files /usr/include/tqt is hard-coded.
Cmake works differently to detect tqt.h. I believe through the tqt-mt.pc file.
Darrell
On 03/14/2012 11:34 PM, Darrell Anderson wrote:
Here is the problem:
sed -i 's|/usr/include/tqt|/opt/trinity/include/tqt|g' admin/acinclude.m4.in
Install tqtinterface to /usr and all other packages to /opt/trinity. I'm guessing this is where many of your build problems lie. I don't fight this or try to be clever. I build tqtinterface to install to /usr. I forget the reason for this, but I think the reason is all of the automake packages are hard-coded to look there. I don't know where else in the automake files /usr/include/tqt is hard-coded.
Cmake works differently to detect tqt.h. I believe through the tqt-mt.pc file.
Darrell
I think you have hit the nail on the head. All that crap was hardcoded for /usr/include/tqt, etc...
If tqtinterface doesn't care where it lives, then I'm installing it in /usr. I have little hair left after pulling it out tonight :)
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@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@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 :)
I've moved to trying to get tdeutils
to build again. Currently I'm attempting
to build with:
checking for IceConnectionNumber in -lICE... yes checking for libXext... yes Detected TQt4... checking for pthread_create in -lpthread... yes checking for extra includes... added checking for extra libs... added 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
Today I built tdeutils three or four times testing patches.
Get rid of these two lines:
--with-extra-includes="${TDEDIR}include/tqt/Qt" --with-extra-libs=${TDEDIR}/lib/trinity
tqt/Qt is Qt4 stuff.
I use $PREFIX as my install location and not $TDEDIR. TDEDIR is an environment variable used by TDE.
I explicitly install tqtinterface to /usr. All other packages I build to $PREFIX=/opt/trinity. Someday I will build a personal set of packages to /usr because I don't have KDE4 installed but for now I stick to /opt/trinity. I mention this subtle difference because if you are building to /opt/trinity (/opt/tde, etc.) then $TDEDIR=/opt/trinity, but the root directory for the tqt headers is /usr and not /opt/trinity. By using $TDEDIR the build script looks for the tqt headers in /opt/trinity rather than /usr, which would explain the failure to find the tqt headers.
Darrell