12-02-2012, 10:56 AM | #1 |
Enthusiast
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 Could someone help me? Thanks! |
12-03-2012, 03:05 AM | #2 |
Addict
Posts: 369
Karma: 37869
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)
|
12-03-2012, 10:22 AM | #3 | |
Enthusiast
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:
|
|
12-03-2012, 02:03 PM | #4 |
Enthusiast
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? |
12-03-2012, 03:57 PM | #5 |
Addict
Posts: 348
Karma: 209937
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. |
12-04-2012, 10:59 AM | #6 |
Enthusiast
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 ) |
12-04-2012, 03:57 PM | #7 |
Enthusiast
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). |
12-04-2012, 05:10 PM | #8 |
Addict
Posts: 348
Karma: 209937
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.
On my Glo, software version 2.1.5, your program returns "Segmentation fault". |
12-05-2012, 10:42 AM | #9 |
Enthusiast
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
|
Thanks for trying,
but how did you installed it? |
12-05-2012, 06:16 PM | #10 |
Addict
Posts: 348
Karma: 209937
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? |
12-06-2012, 06:45 AM | #11 | |
Enthusiast
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
|
Well I think you installed it like this:
Quote:
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. |
|
12-07-2012, 11:14 AM | #12 |
Addict
Posts: 348
Karma: 209937
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. |
12-07-2012, 02:07 PM | #13 |
Enthusiast
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?
|
12-07-2012, 02:59 PM | #14 |
Addict
Posts: 348
Karma: 209937
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? |
12-08-2012, 08:01 AM | #15 |
Enthusiast
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.
|
Tags |
kobo |
|
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 |