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 configurationI can finish the compilation by manually fixing above definition of LIBTOOL to
LIBTOOL = libtool --tag=CC --silentIf 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!
-
Hi and welcome to devnet,
What sources are you using ?
-
Hello,
I am compiling mythtv-0.28 obtained by git.
-
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.
-
After cloning git repo, I entered into mythtv/mythtv directory and run
git checkout fixes/0.28then run configure with following options.
./configure
--qmake=/usr/pkg/qt5/bin/qmake
--extra-cflags="-I/usr/pkg/include "
--extra-ldflags=-L/usr/pkg/lib
--enable-libmp3lame
--enable-libx264
--enable-libxvid
--disable-vaapi
--disable-firewire
--disable-hdhomerun
--disable-vbox
--disable-cetonThen 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++
DEFINES += -DMMX -D_GNU_SOURCE -DENABLE_UDF -DBLURAY_VERSION_MAJOR=0 -DBLURAY_VERSION_MINOR=9 -DBLURAY_VERSION_MICRO=2 -DB
LURAY_VERSION_STRING="0.9.2" -DHAVE_CONFIG_H -DDLOPEN_CRYPTO_LIBS -DHAVE_PTHREAD_H -DHAVE_DIRENT_H -DHAVE_STRINGS_H -DHAVE_LI
BXML2
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/
pkg/include/libdrm -pipe -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_XOPEN_SOURCE=6
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
$(DEFINES)
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-0.280.28.0
DISTDIR = /home/yosuke/src/mythtv3/mythtv/external/libmythbluray/.tmp/mythbluray-0.280.28.0
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.