trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Re: [trinity-devel] Howto prevent LDFLAGS --sort-common,--as-needed,<snip>,--hash-style=gnu

From: "David C. Rankin" <drankinatty@...>
Date: Tue, 28 Feb 2012 13:22:56 -0600
On 02/28/2012 01:12 PM, David C. Rankin wrote:
> On 02/28/2012 01:08 PM, David C. Rankin wrote:
>> On 02/28/2012 12:55 PM, David C. Rankin wrote:
>>> On 02/28/2012 12:46 PM, Calvin Morrison wrote:
>>>> Ok, have you tried using the admin folder from Trinity
>>>>
>>>> I've used these steps to get stuff from kdelook to trinity
>>>>
>>>> rm admin -Rvf
>>>> cp /my/tde/source/main/common/admin ./ -R
>>>> make -f admin/Makefile.common
>>>> autoreconf
>>>> ./configure
>>>> make
>>>>
>>>> should make sure it works :-)
>>>>
>>>> Cal
>>>
>>> Will test and report back. You got a good link for an
>>> autotools/autoconf/automake reference. I have no idea what goes in the /admin
>>> dir... :(
>>>
>>
>> Damn!
>>
>> checking for tde-config... not found
>> configure: error: The important program tde-config was not found!
>> Please check whether you installed TDE correctly.
>>
>> What package is supposed to install tde-config?
>>
> 
> Double Damn!
> 
>   Symlinked kde-config -> tde-config and build progressed, then dies looking for
> Qt4 WTF?
> 
> 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.
> 
> 

The problem is that the new /admin files from TDE git are NOT detecting Qt3
installed and are choking. I have Qt3 and not TQt3, I don't know if that makes a
difference, but I know we are close to getting this thing to build. I don't know
what needs fixing, but the 'choke me' language in the new admin/acinclude.m4.in
looks suspicious:

if test "$kde_qtver" = "3"; then
if $PKG_CONFIG --exists qt-mt ; then
cat >> conftest.$ac_ext <<EOF
    (void)QStyleFactory::create(QString::null);
    QCursor c(Qt::WhatsThisCursor);
EOF
else
cat >> conftest.$ac_ext <<EOF
    (void)TQStyleFactory::create(TQString::null);
    TQCursor c(TQt::WhatsThisCursor);
EOF
fi
fi
if test "$kde_qtver" = "4"; then
cat >> conftest.$ac_ext <<EOF
    (void)QStyleFactory::create(QString::null);
    QCursor c(Qt::WhatsThisCursor);
EOF
fi
cat >> conftest.$ac_ext <<EOF
    return 0;
}
EOF
])

AC_DEFUN([KDE_USE_QT],
[
#if test -z "$1"; then
  # Current default Qt version: 3.3
  kde_qtver=3
  kde_qtsubver=3

  AC_LANG_SAVE
  AC_LANG_CPLUSPLUS
  ac_cxxflags_safe="$CXXFLAGS"
  CXXFLAGS="-I/usr/include/tqt"
  AC_TRY_COMPILE([
  #define TQT_VERSION_ONLY
  #include <tqt.h>
  #undef TQT_VERSION_ONLY
  #ifdef USE_QT4
  choke me


-- 
David C. Rankin, J.D.,P.E.