Reply
Thread Tools
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#1
Hello,

Edit : Solved - http://talk.maemo.org/showpost.php?p...2&postcount=12

I am nearly frustrated at the moment, I am trying to compile my application with MADDE, everything works perfect in QtCreator, including running it on the phone remotely.

I am trying to follow several guides on how to compile with madde, and I am always getting the same error.

Code:
../../src/horizontalcall.h:14:24: error: QDBusMessage: No such file or directory

../../src/horizontalcall.h:16:27: error: QDBusConnection: No such file or direct
ory
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/eitam/horizontal-call-0.2/builddir/src'
make[1]: *** [sub-src-make_default] Error 2
make[1]: Leaving directory `/eitam/horizontal-call-0.2/builddir'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
I am getting really frustrated.
- I tried putting the full pathes to those header files, and that error indeed went away, but the last one with the rules file kept coming, and I got no deb file.

Can anyone tell me what I should be writing in the
Build-Depends and Depends in the control file?

I am using libqtm-contacts, and dbus.

Edit: for anyone that wants to help me, I'll easy start team-viewer, cause I really want this to be over. I want to focus on the application, and not on building.
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |

Last edited by eitama; 2010-06-19 at 10:18. Reason: Solved
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
As always when having trouble compiling and wanting to get help: include the actual compiler output together with how the compiler was started.

To not show what flags were sent to the compiler is to ask us to read your mind or magically know what you've added to the configuration files.

Missing .h files are either just that, missing, by you not spelling things correctly or they're missing as in not in the path you've supplied for the compiler to look in.

And yes, I know it gets frustrating after a while to get stopped by errors like these but, please, try to include the information needed to actually help you.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
Funny that, I just managed to build my first QtDbus application (I still vastly prefer DBus-GLib but I digress.). I'm not using qmake, but the pkg-config equiv. (yes, there's no taking teh GLib out of me ) "`pkg-config --cflags mce QtCore QtDBus` `pkg-config --libs mce QtCore QtDBus`" worked for me.
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#4
Originally Posted by Joorin View Post
As always when having trouble compiling and wanting to get help: include the actual compiler output together with how the compiler was started.

To not show what flags were sent to the compiler is to ask us to read your mind or magically know what you've added to the configuration files.

Missing .h files are either just that, missing, by you not spelling things correctly or they're missing as in not in the path you've supplied for the compiler to look in.

And yes, I know it gets frustrating after a while to get stopped by errors like these but, please, try to include the information needed to actually help you.
Apologies, You are right,
I just deleted everything 5 min ago, and started from 0, if it won't work, i'll upload everything.
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#5
Another attempt has also given me the same problem.
What I have done :

1. mad pscreate -t qt_simple horizontal-call
2. Added the code for my application into the src dir
3. Added the needed info into the project file (i did not overwrite it)
3.5. ran mad qmake
4. added qtdbus into the makefile manually to INCPATH and LIBS
5. mad make
6. mad dpkg-buildpackage

The errors I am getting are :

Code:
MADDE-0.6.72 /eitam
eitama $ cd horizontal-call/

MADDE-0.6.72 /eitam/horizontal-call
eitama $ mad qmake

MADDE-0.6.72 /eitam/horizontal-call
eitama $ mad make
c:/NokiaQtSDK/Maemo/4.6.2/targets/fremantle-pr12/bin/uic src/horizontalcall.ui -
o build/ui_horizontalcall.h
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTU
RE_GLYPH_CACHE_WIDTH=1024 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../sysroot
s/fremantle-arm-sysroot-10.2010.19-1-slim/usr/share/qt4/mkspecs/default -I. -I..
/../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtCore -I../../
sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtDBus -I../../sysr
oots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtGui -I../../sysroots/
fremantle-arm-sysroot-10.2010.19-1-slim/usr/include -IC:/NokiaQtSDK/Maemo/4.6.2/
sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtContacts -I/usr/i
nclude -Ibuild -Ibuild -o build/qtmain.o src/qtmain.cpp
src/qtmain.cpp:15:2: warning: no newline at end of file
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTU
RE_GLYPH_CACHE_WIDTH=1024 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../sysroot
s/fremantle-arm-sysroot-10.2010.19-1-slim/usr/share/qt4/mkspecs/default -I. -I..
/../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtCore -I../../
sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtDBus -I../../sysr
oots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtGui -I../../sysroots/
fremantle-arm-sysroot-10.2010.19-1-slim/usr/include -IC:/NokiaQtSDK/Maemo/4.6.2/
sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtContacts -I/usr/i
nclude -Ibuild -Ibuild -o build/horizontalcall.o src/horizontalcall.cpp
src/horizontalcall.cpp: In member function 'void horizontalcall::clearButtonClic
ked()':
src/horizontalcall.cpp:82: warning: NULL used in arithmetic
src/horizontalcall.cpp: In member function 'void horizontalcall::lineEditTextCha
nged(QString)':
src/horizontalcall.cpp:99: warning: NULL used in arithmetic
src/horizontalcall.cpp: In member function 'void horizontalcall::showContactDeta
ils(int)':
src/horizontalcall.cpp:215: warning: NULL used in arithmetic
src/horizontalcall.cpp:236: warning: unused variable 'tempManager'
C:/NokiaQtSDK/Maemo/4.6.2/targets/fremantle-pr12/bin/moc -DQT_GL_NO_SCISSOR_TEST
 -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHA
RED -I../../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/share/qt4/mkspe
cs/default -I. -I../../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/incl
ude/QtCore -I../../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/
QtDBus -I../../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtGu
i -I../../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include -IC:/Noki
aQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/
QtContacts -I/usr/include -Ibuild -Ibuild src/horizontalcall.h -o build/moc_hori
zontalcall.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTU
RE_GLYPH_CACHE_WIDTH=1024 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../sysroot
s/fremantle-arm-sysroot-10.2010.19-1-slim/usr/share/qt4/mkspecs/default -I. -I..
/../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtCore -I../../
sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtDBus -I../../sysr
oots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtGui -I../../sysroots/
fremantle-arm-sysroot-10.2010.19-1-slim/usr/include -IC:/NokiaQtSDK/Maemo/4.6.2/
sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtContacts -I/usr/i
nclude -Ibuild -Ibuild -o build/moc_horizontalcall.o build/moc_horizontalcall.cp
p
g++ -Wl,-rpath-link,/usr/lib -Wl,-rpath,C:/usr/lib -Wl,-rpath,C:/usr/lib -o buil
d/horizontal-call build/qtmain.o build/horizontalcall.o build/moc_horizontalcall
.o    -LC:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-sl
im/usr/lib -L/usr/lib -lQtContacts -lQtGui -lQtDBus -L/usr/X11R6/lib -lQtCore -l
pthread

MADDE-0.6.72 /eitam/horizontal-call
eitama $ mad dpkg-buildpackage
which: pgp: unknown command
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package horizontal-call
dpkg-buildpackage: source version 0.1
dpkg-buildpackage: source changed by unknown <eitama@unknown>
dpkg-buildpackage: host architecture armel
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/bin/make clean
make[1]: Entering directory `/eitam/horizontal-call'
rm -f build/moc_horizontalcall.cpp
rm -f build/ui_horizontalcall.h
rm -f build/horizontal-call
rm -f build/qtmain.o build/horizontalcall.o build/moc_horizontalcall.o
rm -f *~ core *.core
make[1]: Leaving directory `/eitam/horizontal-call'
dh_clean
 dpkg-source -b horizontal-call
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: using source format `1.0'
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: warning: source directory 'horizon
tal-call' is not <sourcepackage>-<upstreamversion> 'horizontal-call-0.1'
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: building horizontal-call in
horizontal-call_0.1.tar.gz
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: building horizontal-call in
horizontal-call_0.1.dsc
 debian/rules build
dh_testdir
# Add here commands to configure the package.
qmake
touch configure-stamp
dh_testdir
# Add here commands to compile the package.
/bin/make
make[1]: Entering directory `/eitam/horizontal-call'
c:/NokiaQtSDK/Maemo/4.6.2/targets/fremantle-pr12/bin/uic src/horizontalcall.ui -
o build/ui_horizontalcall.h
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTU
RE_GLYPH_CACHE_WIDTH=1024 -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../sysroot
s/fremantle-arm-sysroot-10.2010.19-1-slim/usr/share/qt4/mkspecs/default -I. -I..
/../sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtCore -I../../
sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtGui -I../../sysro
ots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include -IC:/NokiaQtSDK/Maemo/4.
6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtContacts -I/u
sr/include -Ibuild -Ibuild -o build/qtmain.o src/qtmain.cpp
In file included from src/qtmain.cpp:2:
src/horizontalcall.h:14:24: error: QDBusMessage: No such file or directory
src/horizontalcall.h:15:27: error: QDBusConnection: No such file or directory
src/qtmain.cpp:15:2: warning: no newline at end of file
make[1]: *** [build/qtmain.o] Error 1
make[1]: Leaving directory `/eitam/horizontal-call'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

MADDE-0.6.72 /eitam/horizontal-call
eitama $
Do I need to add libqt4-dbus to the control file manually?
Attaching my project file and header file with the problematic headers.
qtprog.pro.txt
horizontalcall.h.txt

Edit :
It can be seen that on the "make" step, there is no problem with dbus, as I have added it manually to the makefile, but on the build phase, dpkg-buildpackage, the makefile is ran over, and again I am getting errors.
Putting absolute path inside the H file caused errors when compiling the cpp file where it actually had to use the methods in the DBus class.
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#6
Originally Posted by qwerty12 View Post
Funny that, I just managed to build my first QtDbus application (I still vastly prefer DBus-GLib but I digress.). I'm not using qmake, but the pkg-config equiv. (yes, there's no taking teh GLib out of me ) "`pkg-config --cflags mce QtCore QtDBus` `pkg-config --libs mce QtCore QtDBus`" worked for me.
Are you using madde?
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#7
Originally Posted by eitama View Post
Are you using madde?
No, Scratchbox, though point taken. I'll STFU...
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#8
Originally Posted by qwerty12 View Post
No, Scratchbox, though point taken. I'll STFU...
LOL - I wasn't trying to shut-you-up, I really wanted to know (:
I am a total noob in the field of scratchbox / linux.

QtCreator allowed me to write my app, it's working perfect on my phone when I start it from QtCreator.
Some very very nice guy named mohammadag was kind to help me compile it in scratchbox once, but I don't want to keep bugging him forever, so I need to learn to do it myself ):

There are some bugs, I want to fix so everyone can enjoy my app.
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 

The Following User Says Thank You to eitama For This Useful Post:
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#9
Bump.
Can anyone help me?
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#10
Leading question:

What's the difference between the list of -I flags given in the first compile, when you start make, and in the second where the packaging tool starts make?
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:35.