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 07-28-2013, 01: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, 05:15 PM   #17
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: 342
Karma: 165069
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
Old 07-29-2013, 07: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, 12:02 PM   #19
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: 342
Karma: 165069
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, 12:50 PM   #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
Old 08-02-2013, 06: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, 07: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, 08: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, 12:10 PM   #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, 09:02 AM   #25
Lucas Malor
Pain in the arse
Lucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughing
 
Lucas Malor's Avatar
 
Posts: 624
Karma: 63854
Join Date: Apr 2013
Device: Kobo Glo, 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, 11:26 PM   #26
norbusan
Connoisseur
norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.norbusan put the bomp in the bomp-a-bomp-a-bomp.
 
Posts: 52
Karma: 67136
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo
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-07-2013 at 12:46 AM.
norbusan is offline   Reply With Quote
Old 06-01-2014, 07: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, 09: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 01:14 PM.


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