What does /usr/bin/tmoc contain?
#!/bin/bash
#
# Very simple moc wrapper, for using with cmake
#
if [ -f /usr/bin/tqt-replace-stream ]; then
if [ -z "$1" ]; then
echo "Usage: tmoc <input_file> -o <out_file>"
else
input_file="$1"
out_file="$3"
/usr/bin/tqt-replace-stream "${input_file}" | \
/opt/trinity/lib/tqt3-R14.0.0/bin/moc | \
sed "/#include <qmetaobject.h>/ i #undef QT_NO_COMPAT\n#include
\"${input_file}\"" \
"${out_file}"
fi
else
echo "ERROR: /usr/bin/tqt-replace-stream is not available. tmoc will
fail!"
exit 1;
fi
Also, where does "whereis moc" show on your
build system?
whereis moc
moc: /usr/bin/moc /usr/X11R6/bin/moc /usr/bin/X11/moc /usr/X11/bin/moc
/opt/trinity/bin/moc
My build script environment variables:
PREFIX: /opt/trinity
SYSCONFDIR: /etc/trinity
LIBDIR: /opt/trinity/lib
MANDIR: /opt/trinity/man
QTDIR: /opt/trinity/lib/tqt3-R14.0.0
TQTDIR: /usr/include/tqt
CMAKE_PREFIX_PATH: /opt/trinity/lib/tqt3-R14.0.0:/opt/trinity
CMAKE_INCLUDE_PATH: /opt/trinity:/opt/trinity/lib/tqt3-R14.0.0/include:/usr/include/tqt
CPLUS_INCLUDE_PATH:
/opt/trinity/lib/tqt3-R14.0.0/include:/opt/trinity/include:/usr/include:/usr/include/tqt
PKG_CONFIG_PATH:
/opt/trinity/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/opt/trinity/lib/pkgconfig
LD_LIBRARY_PATH: /opt/trinity/lib
PATH:
/opt/trinity/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/java/bin:/usr/share/texmf/bin:/opt/trinity/lib/tqt3-R14.0.0/bin
Darrell