Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2013, 12:01 PM   #16
sunda
Member
sunda began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2013
Device: Kobo
Quote:
Originally Posted by KevinShort View Post
You just need to install gettext. This command will install the stuff you need to compile Qt for Kobo:
Code:
sudo apt-get install gettext autoconf libglib2.0-dev build-essential libtool libdbus-1-dev
If you're using firmware 2.4, then Qt 4.6 is the right version. In the file 'build/scripts/qt.sh', at the end of the ./configure line, make sure to add -D QT_NO_QWS_CURSOR.
YES!
thanks KevinShort that worked, finally the line "succesfully...".

I can compile all, except the Sketch!? The error is:
warning: libpng12.so.0 needed by .../qt/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
and the then writes several error with:
.../qt/lib/libQtGui.so: undefined reference to 'png_read_info@PNG12_0

ending with:
collect2: ld returned 1 exit status
make: *** [CppQtExample20] Error1


Any idea how to install/link/add the missing so?
sunda is offline   Reply With Quote
Old 07-28-2013, 04:15 PM   #17
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by sunda View Post
YES!
thanks KevinShort that worked, finally the line "succesfully...".

I can compile all, except the Sketch!? The error is:
warning: libpng12.so.0 needed by .../qt/lib/libQtGui.so, not found (try using -rpath or -rpath-link)
and the then writes several error with:
.../qt/lib/libQtGui.so: undefined reference to 'png_read_info@PNG12_0

ending with:
collect2: ld returned 1 exit status
make: *** [CppQtExample20] Error1


Any idea how to install/link/add the missing so?
I think you can fix that by installing libpng12-dev with apt-get.

Also, I think that I was wrong in stating that firmware 2.4 uses Qt 4.6. I believe that firmware 2.0 and beyond all use Qt 4.8. I don't know if this will affect what you're trying to do, I just wanted to clarify that.
KevinShort is offline   Reply With Quote
Advert
Old 07-29-2013, 06:20 AM   #18
sunda
Member
sunda began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2013
Device: Kobo
Quote:
Originally Posted by KevinShort View Post
I think you can fix that by installing libpng12-dev with apt-get.

Also, I think that I was wrong in stating that firmware 2.4 uses Qt 4.6. I believe that firmware 2.0 and beyond all use Qt 4.8. I don't know if this will affect what you're trying to do, I just wanted to clarify that.
I made the install but it did not help. I get the same error message. I noticed that the libpng12 is in the .../kobo/tmp/libpng-1.2.43/.libs/ and in .../kobo/fs/lib/.

Any suggestions please?
If Qt 4.8 caused, how can I upgrade it from 4.6?
sunda is offline   Reply With Quote
Old 07-30-2013, 11:02 AM   #19
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by sunda View Post
I made the install but it did not help. I get the same error message. I noticed that the libpng12 is in the .../kobo/tmp/libpng-1.2.43/.libs/ and in .../kobo/fs/lib/.

Any suggestions please?
If Qt 4.8 caused, how can I upgrade it from 4.6?
To get Qt 4.8 to compile, change the Qt version in build/scripts/qt.sh from 4.6.2 to 4.8.0, and add to the ./configure line in build/scripts/qt.sh:
Code:
-no-webkit -D QT_NO_QWS_CURSOR -D QT_NO_QWS_QPF2
I also had to remove the following options from qt.sh:
Code:
-qt-gif
-qt-gfx-qvfb
-qt-gfx-transformed
-qt-gfx-linuxfb
-no-mouse-pc
-no mouse-linuxtp
-no mouse-linuxinput
-no mouse-tslib
-no mouse-qvfb
-no mouse-qnx
The only thing I've used Qt for is to compile the tweaks plugin. What is this sketch program that you're trying to compile?
KevinShort is offline   Reply With Quote
Old 07-31-2013, 11:50 AM   #20
sunda
Member
sunda began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2013
Device: Kobo
I recompiled over again (it takes time...) now with Qt4.8 but it did not help

The libQtGui.so is present in:
.../kobo/qt/lib/
so why this error message, do I miss a reference!?

I just wanted to see if I can compile the Sketch and even try to do something myself, but its hard....
sunda is offline   Reply With Quote
Advert
Old 08-02-2013, 05:44 AM   #21
stefjan
Junior Member
stefjan is on a distinguished road
 
Posts: 7
Karma: 57
Join Date: Jun 2013
Device: kobo glo
are you still referring to this?

Quote:
Originally Posted by sunda View Post
.../qt/lib/libQtGui.so: undefined reference to 'png_read_info@PNG12_0
the problem is that libQtGui.so refers to symbols which are defined in the libpng12.so.0

try adding this to the .pro file (of your sketch application?).

LIBS_PRIVATE += -lpng12
stefjan is offline   Reply With Quote
Old 08-02-2013, 06:05 AM   #22
sunda
Member
sunda began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2013
Device: Kobo
Quote:
Originally Posted by stefjan View Post
are you still referring to this?



the problem is that libQtGui.so refers to symbols which are defined in the libpng12.so.0

try adding this to the .pro file (of your sketch application?).

LIBS_PRIVATE += -lpng12
Hi stefjan,

I get this error message during Qt compiling time when calling
~/kobo/KoboLabs/build/build-all.sh
The sketch file is in the description by tonyv (I still need to get Qt compiled...).
Somehow the libpng12.so.0 is in the "fs" folder but not in the "Qt" folder
sunda is offline   Reply With Quote
Old 08-02-2013, 07:38 AM   #23
stefjan
Junior Member
stefjan is on a distinguished road
 
Posts: 7
Karma: 57
Join Date: Jun 2013
Device: kobo glo
Quote:
Originally Posted by sunda View Post
Somehow the libpng12.so.0 is in the "fs" folder but not in the "Qt" folder
that's "normal", everything (apart from qt) gets installed into fs (which matches the filesystem of your kobo), but qt installs itself in Qt (and on your kobo that matches with the /usr/local/Trolltech/... - or something like that, i do not have my kobo at hand)

how about adding this to the offending .pro file (you should be able to find out which one it is by looking at the output from make and cd into those directories)

LIBS_PRIVATE += -lpng12 -Wl,-rpath,<path to your fs directory>/lib -L<path to your fs directory>/lib

something like that did the trick for me.
stefjan is offline   Reply With Quote
Old 08-02-2013, 11:10 AM   #24
sunda
Member
sunda began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jul 2013
Device: Kobo
Hi stefjan
Ok, that helped thanks!
sunda is offline   Reply With Quote
Old 09-22-2013, 08:02 AM   #25
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
Do you think there's a way to run the Kobo OS and programs on a virtual machine like Virtualbox directly?
Lucas Malor is offline   Reply With Quote
Old 11-06-2013, 10:26 PM   #26
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Hi everyone,

[FORGET THAT QUESTION - I FOUND IT MYSELF linaro ...]

<del>I would like to compile some programs (in particular openssl which is broken on the Kobo GLO since 2.6 firmware) without GUI. What do I have to do on a Debian/amd64 system.</del>

BTW, on firmware 2.10.0 the glibc has changed:
GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10) stable release version 2.15, by Roland McGrath et al.

Thanks for any pointers

Norbert

Last edited by norbusan; 11-06-2013 at 11:46 PM.
norbusan is offline   Reply With Quote
Old 06-01-2014, 06:03 AM   #27
gargo
Junior Member
gargo began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2014
Device: Kobo Mini
From the first page
Quote:
Originally Posted by tonyv View Post
A guide for kobo touch from memory
......snip....
My system is ubuntu 10.04 64bit
on kobo
>strings /lib/libc.so.6 | grep ourcery
this is what i got
GNU C Library (Sourcery G++ Lite 2010q1-202) stable release version 2.11.1, by Roland McGrath et al.
if you have a different compiler you can flash to 1.9.17 or
download your version from mentor could try
site:sourcery.mentor.com "your version" in google
And as I've found too

Quote:
Originally Posted by norbusan View Post
BTW, on firmware 2.10.0 the glibc has changed:
GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10) stable release version 2.15, by Roland McGrath et al.
Norbert
On my Kobo (bought early 2014) I get:
Code:
strings /lib/libc.so.6 | grep GNU
  GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10) stable release version 2.15,
by Roland McGrath et al.
  Compiled by GNU CC version 4.6.3. 
  GNU Libidn by Simon Josefsson

cat /proc/version
  Linux version 2.6.35.3-850-gbc67621+ (gallen@gallen-P5KPL-AM-BM) 
  (gcc version 4.4.4 (4.4.4_09.06.2010) ) 
  #617 PREEMPT Mon Apr 22 11:07:47 CST 2013
I'm wanting to compile the g_serial and g_hid modules so allow the Kobo to simulate a serial port and/or an HID through the USB port.
I've compiled for other devices before but I'm never had to setup my own development envioment before, hence the question:

To make a Development envioment for the newer C library :-
What from the first page do change, due to the different C library, do I install the EGLIBC 2.15-0ubuntu10 package, on a ubuntu 12.04LTS virtual machine and continue with the instructions at the start of this thread?
Thanks Gavin.
gargo is offline   Reply With Quote
Old 06-16-2014, 08:21 AM   #28
FredG
Junior Member
FredG began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2014
Device: Kobo Aura 6"
Hello,

I would like to develop an application that gets information through wifi from another PC and displays it on my Kobo Aura 6". I understand that Qt is the best choice. Could you indicate which version of QT I can use to develop from a Windows 7 PC.

Thanks for your help.
FredG is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with creating the development environment rozen Calibre 6 05-29-2011 11:38 PM
calibre VMWare development environment kovidgoyal Calibre 30 12-30-2009 12:43 PM
Setting up Mac Calibre development environment? pdurrant Calibre 2 01-06-2009 07:10 AM
setup development environment JeffElkins Calibre 21 10-22-2008 03:25 PM
Setting up development environment tompe OpenInkpot 9 08-27-2008 02:26 PM


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


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