Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-02-2012, 10:56 AM   #1
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Compiling QT Error

Hello,

I'm busy to create a development environment to create a plugin for my kobo.
But when the build script (kobolabs github) compiles QT there is a error:

Code:
/usr/bin/ld: skipping incompatible /home/koen/kobo/fs/lib/libdbus-1.so when searching for -ldbus-1
/usr/bin/ld: skipping incompatible /home/koen/kobo/fs/lib/libdbus-1.so when searching for -ldbus-1
/usr/bin/ld: cannot find -ldbus-1
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/moc] Error 1
make[1]: Leaving directory `/home/koen/kobo/tmp/qt-everywhere-opensource-src-4.6.2/src/tools/moc'
make: *** [sub-moc-make_default-ordered] Error 2
Build failed at qt.sh, aborting
Something about ldbus-1.

Could someone help me?

Thanks!
koenieee is offline   Reply With Quote
Old 12-03-2012, 03:05 AM   #2
vlad59
Addict
vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.vlad59 can eat soup with a fork.
 
Posts: 330
Karma: 9319
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
I had the same error. try to install libdbus1-dev (if you're running any debian like linux)
vlad59 is offline   Reply With Quote
Old 12-03-2012, 10:22 AM   #3
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Ok thanks,

I tried this: sudo apt-get install libdbus-1*
but now it is asking for:

Quote:
The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found.
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.
Build failed at qt.sh, aborting
I'm running on amd64 if that matters.
koenieee is offline   Reply With Quote
Old 12-03-2012, 02:03 PM   #4
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Great news, I did some things (no idea what) but it is compiling without any problems.
but it does take a very long time (more then 3 hours) is this normal?
I have another question:

Can I use QTcreator to create a app and let qmake compile it for the Kobo?
koenieee is offline   Reply With Quote
Old 12-03-2012, 03:57 PM   #5
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Could you look through your command history to maybe find out what it is
that you did to get QT to compile? When I tried to compile before I got stuck
at the error looking for libdbus-1 version 0.93, like you did.
KevinShort is offline   Reply With Quote
Old 12-04-2012, 10:59 AM   #6
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
First do this:

set QT extra args to your prefered dir (QT_EXTRA_ARGS=--prefix=$HOME/kobo/qt),
then use this command: export PKG_CONFIG_PATH=/home/<USER_DIR>/kobo/fs/lib/pkgconfig <== make sure this path exists!!

test if you run this:
arm-linux-g++
you get no input files (not: command not found)
and then try it again.

Let me know if this was the solution!

P.S. I need to run build-all.sh as root because at the end 'make' needs access to a root dir. I don' t know if that is neccesary for you, but for me I needed to compile qt again (which took me about 3 hours )
koenieee is offline   Reply With Quote
Old 12-04-2012, 03:57 PM   #7
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Could anyone try my first compiled QT program?
(the only thing it does it shows a button, when you click that it closes the app).

My Kobo isn't arrived yet but I'm just curious if all went well (compiling etc).
Attached Files
File Type: zip libTest_3.so.1.0.0.zip (7.4 KB, 43 views)
koenieee is offline   Reply With Quote
Old 12-04-2012, 05:10 PM   #8
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Thanks for the compile instructions, when I have time I'll give it a shot.

Quote:
Originally Posted by koenieee View Post
Could anyone try my first compiled QT program?
(the only thing it does it shows a button, when you click that it closes the app).

My Kobo isn't arrived yet but I'm just curious if all went well (compiling etc).
On my Glo, software version 2.1.5, your program returns "Segmentation fault".
KevinShort is offline   Reply With Quote
Old 12-05-2012, 10:42 AM   #9
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Thanks for trying,
but how did you installed it?
koenieee is offline   Reply With Quote
Old 12-05-2012, 06:16 PM   #10
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
I just now realized that your program is a library file, not an executable.
How should I start it?
KevinShort is offline   Reply With Quote
Old 12-06-2012, 06:45 AM   #11
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Well I think you installed it like this:

Quote:
*require ssh/telnet access
copy it to your kobo (/usr/local/Kobo dir)
restart your Kobo
open the book library
go back and in the menu you need to see my app.

source: http://www.mobileread.com/forums/sho...80&postcount=9
Could anyone give better instructions because I think these are wrong/not complete.

Edit: I don't think it is working on firmware 2.x because I used QT version 4.6.2, and firmware 2.x is using QT 4.8

Last edited by koenieee; 12-06-2012 at 07:03 AM.
koenieee is offline   Reply With Quote
Old 12-07-2012, 11:14 AM   #12
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
QT compile successful! Thanks for your help, koenieee.
And I think you're right about your program not working on the 2.x firmware.
KevinShort is offline   Reply With Quote
Old 12-07-2012, 02:07 PM   #13
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Shall I make a new thread how to compile QT 4.8 and setup QTcreator correctly?
koenieee is offline   Reply With Quote
Old 12-07-2012, 02:59 PM   #14
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
I say yes, that would be very helpful.

By the way, I did not have to run build-all.sh as root. Maybe you
set some prefix to a directory that only root can write to?
KevinShort is offline   Reply With Quote
Old 12-08-2012, 08:01 AM   #15
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Well the first time I forget to set --prefix so QT used a default path (/usr/local/Trolltech) and needed access to a root dir.
koenieee is offline   Reply With Quote
Reply

Tags
kobo

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when compiling screen, target arm-none-eabi ppoo Kindle Developer's Corner 38 09-26-2012 12:40 AM
Compiling for Lubuntu (regarding compiling instructions) jgratero Sigil 5 07-15-2012 07:54 PM
X-Compiling with Kindle mpetersen3 Kindle Developer's Corner 14 01-06-2012 02:53 PM
error while compiling calibre under fedora... samy2 Calibre 3 05-21-2011 01:01 PM
Problems compiling unkilbeeg Sigil 1 09-13-2009 01:49 PM


All times are GMT -4. The time now is 10:40 PM.


MobileRead.com is a privately owned, operated and funded community.