Still trying to work out why configure cannot find the Qt libraries.
This from configure:
checking whether QTDIR environment variable is set... /usr/lib64/qt5
checking for Qt library...
configure: error: Qt library not found. Maybe QTDIR isn't properly set.
In configure.ac it has the section below.
dnl Checks for Qt library.
AC_CACHE_CHECK([for Qt library],
ac_qtlib, [
for X in qt-mt qt; do
if test "x$ac_qtlib" = "x"; then
if test -f $QTDIR/lib/lib$X.so -o -f $QTDIR/lib/lib$X.a; then
ac_qtlib=$X
fi
fi
done
])
It seems from my searching on the web that solus uses a different folder structure to Ubuntu/Mint Fedora.
It appears that configure is trying to find the Qt libraries in a sub-folder /lib of the QT install.
The libraries are in /usr/lib.
How can I change the config.ac to have it find the Qt libraries.
Will attach the configure.ac if someone wants to look at it.
Says files of this type cannot be uploaded.
Will paste it below.
`dnl Process this file with autoconf to produce a configure script.
AC_INIT([src/main.cpp]) dnl a source file from your sub dir
dnl This ksh/zsh feature conflicts with cd blah ; pwd
unset CDPATH
dnl Perform program name transformation
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(qtuneroid, 0.9) dnl searches for some needed programs
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
if test "$prefix" = "NONE"; then
prefix=$ac_default_prefix
ac_configure_args="$ac_configure_args --prefix $prefix"
fi
#define package directory
eval eval eval sharedir=${datadir}
AC_DEFINE_UNQUOTED(QTUNEROID_DATADIR,
"$sharedir/$PACKAGE",
[location of arch-independent files])
dnl Some needed compiler options
CPPFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USE_RTTI -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -D_REENTRANT"
dnl Checks for programs.
#AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
dnl Check for QTDIR environment variable.
AC_MSG_CHECKING([whether QTDIR environment variable is set])
if test "x$QTDIR" = "x"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([QTDIR must be properly set.])
else
AC_MSG_RESULT([$QTDIR])
fi
dnl Checks for Qt library.
AC_CACHE_CHECK([for Qt library],
ac_qtlib, [
for X in qt-mt qt; do
if test "x$ac_qtlib" = "x"; then
if test -f $QTDIR/lib/lib$X.so -o -f $QTDIR/lib/lib$X.a; then
ac_qtlib=$X
fi
fi
done
])
if test "x$ac_qtlib" = "x"; then
AC_MSG_ERROR([Qt library not found. Maybe QTDIR isn't properly set.])
fi
AC_SUBST(ac_qtlib)
dnl Check for Qt multi-thread support.
if test "x$ac_qtlib" = "xqt-mt"; then
ac_thread="thread"
fi
AC_SUBST(ac_thread)
CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
LIBS="-L$QTDIR/lib -L/usr/X11R6/lib"
AC_CACHE_CHECK([for Qt library version >= 3.1.1],
ac_qtlib_version, [
AC_TRY_LINK([#include "qglobal.h"], [
#if QT_VERSION < 0x030101
#error Qt library 3.1.1 or greater required.
#endif
],
ac_qtlib_version="yes", [
echo "no; Qt 3.1.1 or greater is required"
exit
])
])
dnl A common error message:
ac_qtdir_errmsg="not found in current PATH. Maybe QT development environment isn't available (qt3-devel)."
dnl Check for Qt moc utility.
AC_PATH_PROG(ac_moc, moc, [no], $QTDIR/bin:${PATH})
if test "x$ac_moc" = "xno"; then
AC_MSG_ERROR([moc $ac_qtdir_errmsg])
fi
AC_SUBST(ac_moc)
dnl Checks for libraries.
AC_CHECK_LIB(m, main)
AC_CHECK_LIB(X11, main)
AC_CHECK_LIB(Xext, main)
AC_CHECK_LIB($ac_qtlib, main)
AC_CHECK_LIB(asound, main)
dnl Check for ALSA libraries.
AC_CHECK_LIB(asound, main, [ac_alsa_lib="yes"], [ac_alsa_lib="no"])
if test "x$ac_alsa_lib" = "xno"; then
AC_MSG_ERROR([ALSA library not found.])
fi
dnl Check for ALSA headers.
AC_CHECK_HEADER(alsa/asoundlib.h, [ac_alsa_h="yes"], [ac_alsa_h="no"])
if test "x$ac_alsa_h" = "xno"; then
AC_MSG_ERROR([ALSA headers not found.])
fi
AC_CONFIG_FILES([ Makefile ])
#AC_CONFIG_FILES([ doc/Makefile ])
#AC_CONFIG_FILES([ doc/en/Makefile ])
#AC_CONFIG_FILES([ po/Makefile ])
AC_CONFIG_FILES([ src/Makefile ])
AC_CONFIG_FILES([ src/pics/Makefile ])
AC_CONFIG_FILES([ src/i18n/Makefile ])
AC_OUTPUT
if test "$all_tests" = "bad"; then
if test ! "$cache_file" = "/dev/null"; then
echo ""
echo "Please remove the file $cache_file after changing your setup"
echo "so that configure will find the changes next time."
echo ""
fi
else
echo ""
echo "Good - your configure finished. Start make now"
echo ""
fi`