Qt World Summit: Register Today!

QMake central control of libtool --tag option?

  • I am compiling mythtv using qmake version 3.0 in QT 5.5.1. on Debian GNU/Linux 8
    The Makefiles created from *.pro files during the compilation contains a line
    LIBTOOL = libtool --silent
    which I cannot find any *.pro files defining this LIBTOOL variable.

    During compilation, I have following error.
    libtool: compile: unable to infer tagged configuration

    I can finish the compilation by manually fixing above definition of LIBTOOL to
    LIBTOOL = libtool --tag=CC --silent

    If I can fix this somewhere centrally by fixing the LIBTOOL definition, it would be much nicer.

    I would like to have your advice where I should look in.

    Thank you in advance!

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What sources are you using ?

  • Hello,

    I am compiling mythtv-0.28 obtained by git.

  • @SGaist


    I am compiling mythtv-0.28 obtained by git.
    The Qt5 and libtool used with the compilation are installed by pkgsrc.

  • Lifetime Qt Champion

    Can you explain exactly step by step from the clone to the build what you are doing ?

    The LIBTOOL variable is not used by Qt at all, they all come from the dependencies of MythTV.

  • @SGaist

    After cloning git repo, I entered into mythtv/mythtv directory and run
    git checkout fixes/0.28

    then run configure with following options.

    --extra-cflags="-I/usr/pkg/include "

    Then I just ran make to build the source.

    The Makefiles of subdirectories ex. external/libmythbluray/ are generated in the configure process, and have following header.

    Makefile for building: libmythbluray-0.28.a

    Generated by qmake (3.0) (Qt 5.5.1)

    Project: libmythbluray.pro

    Template: lib

    Command: /usr/pkg/qt5/bin/qmake -o Makefile libmythbluray.pro

    and have following statement.

    ####### Compiler, tools and options

    CC = gcc
    CXX = g++
    CFLAGS += -O2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/lib/dbus-1.0/include/dbus -I/usr/
    00 -DPIC -DZLIB_CONST -std=c99 -DNDEBUG -fomit-frame-pointer -fPIC -pthread -D_REENTRANT -g -Wall -Wdisabled-optimization -Wpoi
    nter-arith -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body
    -Wno-parentheses -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -Werror=format-security -Werr
    or=implicit-function-declaration -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized -w
    CXXFLAGS += -O2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/lib/dbus-1.0/include/dbus -I/usr/
    pkg/include/libdrm -DQ_TRAILING_DIR_SEP -O2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/lib/dbus-
    1.0/include/dbus -I/usr/pkg/include/libdrm -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DNDEBUG -fomit-frame-pointer
    -fPIC -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -msse -pthread -g -Wall -Wpointer-arith -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_
    MACROS -fvisibility-inlines-hidden -Wmissing-declarations -Wno-switch -Woverloaded-virtual -funit-at-a-time -fPIC -w -std=gnu++
    0x $(DEFINES)
    INCPATH += -I. -I/usr/pkg/include/libxml2 -isystem /usr/include/X11 -I. -I../.. -Ilibbluray -Ilibbluray/bdnav -I../libudfr
    ead -I../../libs/libmythbase -I../../libs/libmythtv -I/usr/pkg/include -I/usr/pkg/qt5/mkspecs/linux-g++
    QMAKE = /usr/pkg/qt5/bin/qmake
    DEL_FILE = rm -f
    CHK_DIR_EXISTS= test -d
    MKDIR = mkdir -p
    COPY = cp -f
    COPY_FILE = cp -f
    COPY_DIR = cp -f -R
    INSTALL_FILE = install -m 644 -p
    INSTALL_PROGRAM = install -m 755 -p
    INSTALL_DIR = cp -f -R
    DEL_FILE = rm -f
    SYMLINK = ln -f -s
    DEL_DIR = rmdir
    MOVE = mv -f
    TAR = tar -cf
    COMPRESS = gzip -9f
    DISTNAME = mythbluray-
    DISTDIR = /home/yosuke/src/mythtv3/mythtv/external/libmythbluray/.tmp/mythbluray-
    AR = ar cqs
    RANLIB =
    LIBTOOL = libtool --silent
    SED = sed
    STRIP =

  • Thank you for your input SGaist.

    But it seems I should ask this at mythtv forum.

Log in to reply