← Back to team overview

ubuntu-touch-coreapps team mailing list archive

problem to recompile package qtubuntu-camera

 

Hi,

There is a bug open for wrong camera resolution #1468341. But there is still no fix for it.

So I try to recompile on the phone (meizu mx4 stable channel) qtubuntu-camera from the source package. After downloading the packages and dependencies (apt-get build-dep qtubuntu-camera), I start the compilation (dpkg-buildpackage -rfakeroot -b).

1) The process starts and compiles a few files, then stops with the error:

aalimagecapturecontrol.cpp:37:43: fatal error: ubuntu/application/ui/display.h: No such file or directory
 #include <ubuntu/application/ui/display.h>
                                           ^

2) for the other architectures, this file belongs to the package libplatform-api-headers. The packages contains a directory 'ui' containing display.h, but it is not copied during installation. I don't know why... So I copy this directory manually and the compilation goes far further until this error :

Config: Using QtTest library 5.4.1, Qt 5.4.1 (arm-little_endian-ilp32-eabi-hardfloat shared (dynamic) release build; by GCC 4.9.2) QDEBUG : tst_AalImageCaptureControl::initTestCase() Initializing AalServicePlugin QDEBUG : tst_AalImageCaptureControl::initTestCase() virtual QMediaService* AalServicePlugin::create(const QString&) "org.qt-project.qt.mediaplayer"
Creating a new static Service instance
terminate called after throwing an instance of 'std::runtime_error'
what(): org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Makefile:339: recipe for target 'check' failed
make[3]: *** [check] Aborted (core dumped)
make[3]: Leaving directory '/tmp/qtubuntu-camera-0.3.3+15.04.20150409/unittests/aalimagecapturecontrol'
Makefile:457: recipe for target 'sub-aalimagecapturecontrol-check' failed
make[2]: *** [sub-aalimagecapturecontrol-check] Error 2
make[2]: Leaving directory '/tmp/qtubuntu-camera-0.3.3+15.04.20150409/unittests'
Makefile:208: recipe for target 'sub-unittests-check' failed
make[1]: *** [sub-unittests-check] Error 2
make[1]: Leaving directory '/tmp/qtubuntu-camera-0.3.3+15.04.20150409'
dh_auto_test: make -j1 check returned exit code 2
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 2


What is the best way to recompile a package for my Meizu MX4 ?

Thanks in advance,

Patrick