On 02/08/2014 04:43 PM, David C. Rankin wrote:
On 02/08/2014 04:27 PM, Darrell Anderson wrote:
I have looked at your SlackBuild and I am building with:
Make sure you download the latest. The latest includes the changes discussed.
CFLAGS="${CFLAGS} -I/usr/include/tqt -I${TDEDIR}/include - I${QTDIR}/include -fpermissive" \ CXXFLAGS="${CXXFLAGS} -I/usr/include/tqt -I${TDEDIR}/include -I${QTDIR}/include -fpermissive" \ echo yes | python2 configure.py \ -d "${PY2LIB}/sip4_tqt" \ -y tqt-mt \ -v /usr/share/sip/tqt
I install sip4-tqt and python-tqt (and everything else except tqtinterface) to $PREFIX=/opt/trinity.
Rebuild sip4-tqt before rebuilding python-tqt.
My current python-tqt configuration:
if [ "$PREFIX" = "/usr" ]; then FLAGS="$CPUOPT -L${PREFIX}/lib${LIBDIRSUFFIX} -I/usr/include/tqt - I/${QTDIR}/include -I${PREFIX}/include" else FLAGS="$CPUOPT -L${PREFIX}/lib${LIBDIRSUFFIX} -I/usr/include/tqt - I/${QTDIR}/include -I${PREFIX}/include -I/usr/include" fi
echo "yes" | python configure.py \ -b "${PREFIX}/bin" \ -d "$PYTHONLIB/python_tqt" \ -q "$PREFIX" \ -y tqt-mt \ -o /usr/lib${LIBDIRSUFFIX} \ -v /usr/share/sip/tqt \ -u \ CFLAGS="$FLAGS" \ CXXFLAGS="$FLAGS"
As I build to /opt/trinity, visually substitute /opt/trinity with $PREFIX and you'll see you are building to /usr (the old build script before the recent patches). The two package configurations have to be updated similarly otherwise python-tqt can't find sip4- tqt files.
What has changed? This used to build flawlessly?
The two packages are now built as modules and a presumption with that is the two packages no longer conflict with upstream distro packages. Thus, /opt/trinity/bin/sip no longer overwrites the distro /usr/bin/sip. Likewise with python-tqt. The module portions of the packages do not overwrite anything because they are installed to their own subdirectories.
A side comment: why are you using -fpermissive? I don't use that in any build scripts.
Darrell
Which sip do we want, the python sip or the python2 sip? I have been installing the python sip in /usr/bin and it has worked fine. tde-sip was a direct replacement for upstream sip in that regard. I have simply been removing python2 sip as it was unneeded. I have includes for both python and python2, so leaving the includes in the default locations make sense - that shouldn't crater the build.
But, which sip should go in /opt/trinity/bin? I can put the python2 sip in /opt/trinity/bin and python sip in /usr/bin if that will work?
It doesn't matter what I try, it fails at the same place:
Error: Unable to build mkfeatures utility. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is the GPL version of PyTQt 3.18.1 (licensed under the GNU General Public License) for Python 2.7.6 on linux2.
Type 'L' to view the license. Type 'yes' to accept the terms of the license. Type 'no' to decline the terms of the license.
Do you accept the terms of the license? TQScintilla 1.7.1 is being used. Checking to see if the qtcanvas module should be built... Checking to see if the qtnetwork module should be built... Checking to see if the qttable module should be built... Checking to see if the qtxml module should be built... Checking to see if the qtgl module should be built... Checking to see if the qtui module should be built... Checking to see if the qtsql module should be built... Checking to see if the qtext module should be built... Checking to see if the TQAssistantClient class is available... Creating features file...
What is the 'mkfeatures' utility and why does it crater now after Bug 1790 changes?
I am building with:
CFLAGS="${CFLAGS} -L${TDEDIR}/lib -I/usr/include/tqt -I${TDEDIR}/include -I${QTDIR}/include" \ CXXFLAGS="${CXXFLAGS} -L${TDEDIR}/lib -I/usr/include/tqt -I${TDEDIR}/include -I${QTDIR}/include" \ echo yes | python2 configure.py \ -b "${TDEDIR}/bin" \ -d "${PY2LIB}/python_tqt" \ -q "${QTDIR}" \ -y tqt-mt \ -v /usr/share/sip/tqt
Although I can build with:
echo yes | python2 configure.py
and I get the same failure:
I am building with todays source and I have rebuild tde-sip4-tqt. It now installs as follows:
python-sip:
/usr/bin/sip /usr/include/python3.3m/sip.h /usr/lib/python3.3/site-packages/sip4_tqt/__init__.py /usr/lib/python3.3/site-packages/sip4_tqt/sip.so /usr/lib/python3.3/site-packages/sip4_tqt/sipconfig.py /usr/lib/python3.3/site-packages/sip4_tqt/sipdistutils.py /usr/share/licenses/tde-sip/LICENSE
sip4_tqt (python2-sip):
/opt/trinity/bin/sip /usr/include/python2.7/sip.h /usr/lib/python2.7/site-packages/sip4_tqt/__init__.py /usr/lib/python2.7/site-packages/sip4_tqt/sip.so /usr/lib/python2.7/site-packages/sip4_tqt/sipconfig.py /usr/lib/python2.7/site-packages/sip4_tqt/sipdistutils.py /usr/share/licenses/tde-sip4-tqt/LICENSE
I do not speak python well - to me it is a snake. How do I find out what is causing:
Error: Unable to build mkfeatures utility. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and how to fix?