Reply
Thread Tools
Posts: 13 | Thanked: 19 times | Joined on Dec 2010
#1
Hi everyone

I am developing an app, which compiles fine under Arch Linux, Nokia Qt SDK 1.0.1, but when uploaded using Maemo Extras Assistant, it won't compile.
It is down to missing header files, not sure why the builder can't locate it!?!

See:

Code:
TMP="/var/tmp"
TEMP="/var/tmp"
DEBIAN_FRONTEND="noninteractive"
DEBIAN_PRIORITY="critical"
DEB_BUILD_OPTIONS="parallel=4"
TMPDIR="/var/tmp"
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package munadi
dpkg-buildpackage: source version 0.1.0
dpkg-buildpackage: host architecture armel
dpkg-checkbuilddeps: Using Scratchbox tools to satisfy builddeps
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
rm -rf builddir
dh_clean
 dpkg-source -b munadi-0.1.0
dpkg-source: info: using source format `1.0'
dpkg-source: info: building munadi in munadi_0.1.0.tar.gz
dpkg-source: info: building munadi in munadi_0.1.0.dsc
 debian/rules build
mkdir -p builddir
cd builddir && qmake-qt4 PREFIX=/usr ../munadi.pro
/usr/bin/rcc: File does not exist '../resources.qrc'
dh_testdir
# Add here commands to compile the package.
cd builddir && /scratchbox/tools/bin/make
make[1]: Entering directory `/home/builder3/maemo-fremantle-armel-extras-devel/work/munadi-0.1.0/builddir'
/usr/bin/uic ../mainwindow.ui -o ui_mainwindow.h
/usr/bin/uic ../addcitydialog.ui -o ui_addcitydialog.h
g++ -c -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_NO_DEBUG_OUTPUT -DTESTING -Dmaemo5 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/maemo5-arm-7c209a2014ad1029c88a37e1f17622a3e6ebda42/usr/share/qt4/mkspecs/linux-g++-maemo5 -I../../munadi-0.1.0 -I/targets/maemo5-arm-7c209a2014ad1029c88a37e1f17622a3e6ebda42/usr/include/QtCore -I/targets/maemo5-arm-7c209a2014ad1029c88a37e1f17622a3e6ebda42/usr/include/QtNetwork -I/targets/maemo5-arm-7c209a2014ad1029c88a37e1f17622a3e6ebda42/usr/include/QtGui -I/targets/maemo5-arm-7c209a2014ad1029c88a37e1f17622a3e6ebda42/usr/include -I/targets/maemo5-arm-7c209a2014ad1029c88a37e1f17622a3e6ebda42/usr/include/QtDBus -I. -I. -I../../munadi-0.1.0 -I. -o main.o ../main.cpp
In file included from ../mainwindow.h:6,
                 from ../main.cpp:2:
../munadiengine.h:19:24: error: QMediaPlayer: No such file or directory
In file included from ../mainwindow.h:6,
                 from ../main.cpp:2:
../munadiengine.h:59: error: ISO C++ forbids declaration of 'QMediaPlayer' with no type
../munadiengine.h:59: error: expected ';' before '*' token
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/builder3/maemo-fremantle-armel-extras-devel/work/munadi-0.1.0/builddir'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
I believe QtMultimediaKit is not included, hence why. Under scratchbox, it does get included without any issues.

Regards.
 
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#2
Originally Posted by haqman View Post
Hi everyone

I am developing an app, which compiles fine under Arch Linux, Nokia Qt SDK 1.0.1, but when uploaded using Maemo Extras Assistant, it won't compile.
It is down to missing header files, not sure why the builder can't locate it!?!
<snip>
I believe QtMultimediaKit is not included, hence why. Under scratchbox, it does get included without any issues.

Regards.
Post your pro file.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 
Posts: 13 | Thanked: 19 times | Joined on Dec 2010
#3
Thanks for the reply, here is the pro file:

Code:
# -------------------------------------------------
# Project created by QtCreator 2009-05-20T18:31:05
# -------------------------------------------------

DEFINES += QT_NO_DEBUG_OUTPUT
DEFINES += TESTING

unix:!symbian {

    maemo5 {

        QT += network
        CONFIG += mobility qdbus
        MOBILITY += multimedia
        DEFINES += maemo5

        target.path = /opt/munadi

        icon.path = /usr/share/icons
        icon.files = desktop/munadi.png

        audio.path = /opt/munadi/audio
        audio.files = audio/athan.wav

        desktop.path = /usr/share/applications/hildon
        desktop.files = desktop/munadi.desktop

        service.path = /usr/share/dbus-1/services
        service.files = desktop/org.indt.munadi.service

        INSTALLS += target audio service icon desktop

    } else {

        QT += network
        CONFIG += qt debug
        INCLUDEPATH += /usr/include
        LIBS +=  -lsfml-audio -lsfml-system
        DEFINES += SFML
        target.path = /usr/local/bin

    }
}

symbian{

}

win32 {

QT += network
CONFIG += qt debug
INCLUDEPATH += C:\SFML\include\
LIBS += C:\SFML\lib\ -lsfml-audio -lsfml-system

}



TARGET = munadi

TEMPLATE = app

SOURCES += main.cpp \
    mainwindow.cpp \
    munadiengine.cpp \
    addcitydialog.cpp \
    libitl/umm_alqura.c \
    libitl/prayer.c \
    libitl/hijri.c \
    libitl/astro.c

HEADERS += mainwindow.h \
    munadiengine.h \
    addcitydialog.h \
    libitl/prayer.h \
    libitl/hijri.h \
    libitl/astro.h \
    settings.h \
    globals.h

FORMS += mainwindow.ui \
    addcitydialog.ui

OTHER_FILES += \ 
    text/hadith \
    audio/athan.wav \
    desktop/munadi.desktop \
    desktop/munadi.png \
    desktop/org.indt.munadi.service

RESOURCES += resources.qrc
... mainly this bit:

Code:
    maemo5 {

        QT += network
        CONFIG += mobility qdbus
        MOBILITY += multimedia
....
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#4
Your debian/control actually, the autobuilder doesn't care about the .pro file.
 
Posts: 13 | Thanked: 19 times | Joined on Dec 2010
#5
Originally Posted by MohammadAG View Post
Your debian/control actually, the autobuilder doesn't care about the .pro file.
control file:
Code:
Source: munadi
Section: user/utilities
Priority: optional
Maintainer: A.Abbad <haqman@gmail.com>
Build-Depends: debhelper (>= 5), libqt4-dev
Standards-Version: 3.7.3
Homepage: http://sourceforge.net/projects/munadi/

Package: munadi
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Maemo build of Munadi, the cross-platform Athan tool
 This program calls ....
XSBC-Maemo-Display-Name: Munadi
XB-Maemo-Icon-26:
 iVBORw....
If you want to see any source, go to:

http://munadi.svn.sourceforge.net/viewvc/munadi/trunk/

and browse the svn tree.
 
Posts: 13 | Thanked: 19 times | Joined on Dec 2010
#6
Thanks everyone, I got it working now, here what I did:

Changed ....
Build-Depends: debhelper (>= 5), libqt4-dev

to ...
Build-Depends: debhelper (>= 5), libqt4-dev, libqtm-dev

The golden rule is if you use any of Qt Mobility classes/modules, you must include the above for the autobuilder to build the app correctly.

It is not the case with scratchbox or MADDE though, as it builds correctly without it.

Regards.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:36.