Opened 6 years ago

Closed 12 months ago

#11719 closed Bug Report - General (Fixed)

Cross-building mythmusic fails

Reported by: warpme@… Owned by:
Priority: minor Milestone: 30.0
Component: Plugin - MythMusic Version: Master Head
Severity: medium Keywords: mythmusic
Cc: Ticket locked: no

Description

I'm trying to build current master plugins in cross-compiled (32bit Intel i3 host; 64-bit Intel atom target) environment. Build fails with followig error:

x86_64-minimyth-linux-gnu-g++ -c -m64 -pipe -pipe -march=atom -mtune=atom -O2 -mfpmath=sse -ftree-vectorize -mmovbe -m64 -I/home/piotro/minimyth-dev/images/main/usr/include/avahi-compat-libdns_sd -march=atom -fomit-frame-pointer -fPIC -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 -fvisibility=hidden -fomit-frame-pointer -D_REENTRANT -Wall -W -DPIC -fPIC -fvisibility=hidden -D_GNU_SOURCE -DPREFIX="/home/piotro/minimyth-dev/images/main/usr" -DMMX -D_FILE_OFFSET_BITS=64 -DMPLUGIN_API -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WEBKIT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/mkspecs/linux-g++-64-garhost -I. -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/include/QtCore -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/include/QtNetwork -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/include/QtGui -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/include/QtOpenGL -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/include/QtXml -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/include/QtSql -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/include/QtWebKit -I/home/piotro/minimyth-dev/images/main/usr/lib/qt4/include -I/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/include -I/home/piotro/minimyth-dev/images/main/usr/include -I/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr -I/home/piotro/minimyth-dev/images/main/usr/include -I/home/piotro/minimyth-dev/images/main/usr/include/libxml2 -I/home/piotro/minimyth-dev/images/main/usr/include -I/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/include/mythtv -I/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/include/mythtv/libmythbase -I/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/include/mythtv/libmythui -I/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/include/mythtv/libmyth -I/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/include/mythtv/metadata -I/home/piotro/minimyth-dev/images/main/usr/include/taglib -I/home/piotro/minimyth-dev/images/main/usr/include/cdio -I/home/piotro/minimyth-dev/images/main/usr/include -I. -I/home/piotro/minimyth-dev/images/main/usr/include -o mainvisual.o mainvisual.cpp
In file included from decoder.cpp:8:0:
decoder.h:14:28: fatal error: mythobservable.h: No such file or directory
compilation terminated.
make[3]: *** [decoder.o] Error 1
make[3]: *** Waiting for unfinished jobs....
flacencoder.cpp:11:27: fatal error: musicmetadata.h: No such file or directory
compilation terminated.
make[3]: *** [flacencoder.o] Error 1
main.cpp:13:25: fatal error: mythcontext.h: No such file or directory
compilation terminated.
make[3]: *** [main.o] Error 1
mainvisual.cpp:20:25: fatal error: mythuivideo.h: No such file or directory
compilation terminated.
make[3]: *** [mainvisual.o] Error 1
make[3]: Leaving directory `/home/piotro/minimyth-dev/script/myth-master/mythplugins/work/main.d/mythtv-master-20130801-g5b93775/mythplugins/mythmusic/mythmusic'
make[2]: *** [sub-mythmusic-make_default] Error 2
make[2]: Leaving directory `/home/piotro/minimyth-dev/script/myth-master/mythplugins/work/main.d/mythtv-master-20130801-g5b93775/mythplugins/mythmusic'
make[1]: *** [sub-mythmusic-make_default] Error 2
make[1]: Leaving directory `/home/piotro/minimyth-dev/script/myth-master/mythplugins/work/main.d/mythtv-master-20130801-g5b93775/mythplugins'
make: *** [build-work/main.d/mythtv-master-20130801-g5b93775/mythplugins/Makefile] Error 2
[piotro@fe-production mythplugins]$

Change History (6)

comment:1 Changed 6 years ago by warpme@…

After more investigation I can say:

-problem appears for all plugins.

-seems to be related to QMAKE_LIBDIR_QT and QMAKE_LIBDIR

-is present only in master (0.26-fixes builds OK in the same environment)

Comparing QMAKE_LIBDIR_QT and QMAKE_LIBDIR in mythconfig.mak shows following:

0.26-fixes (builds OK)

QMAKE_LIBDIR_QT-=/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/lib
QMAKE_LIBDIR-=/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/lib
LATE_LIBS+=-L/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/lib

master (fails)

QMAKE_LIBDIR_QT-=/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/lib
QMAKE_LIBDIR-=/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/lib
LATE_LIBS+=-L/home/piotro/minimyth-dev/images/main/home/piotro/minimyth-dev/images/main/usr/lib

It looks like master takes prefix twice... Workaround by symlinking include dirs works so indeed probles seems to be in path prefix.

comment:2 Changed 6 years ago by stuartm

Status: newinfoneeded_new

Is this still an issue in 0.27.1/master?

comment:3 Changed 5 years ago by paulh

Resolution: Unverified
Status: infoneeded_newclosed

No reply in 4 weeks

comment:4 Changed 5 years ago by warpme@…

Sorry! It looks like I missed e-mail with this question. Yes - it is still present in current master. For 0.27 - I didn't check.

comment:5 Changed 5 years ago by Kenni Lund [kenni a kelu dot dk]

Resolution: Unverified
Status: closednew

comment:6 Changed 12 months ago by paul-h

Milestone: unknown30.0
Resolution: Fixed
Status: newclosed

I assume this got fixed with the Android changes

Note: See TracTickets for help on using tickets.