Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-10-2009, 05:01 PM   #1
tikitu
Junior Member
tikitu began at the beginning.
 
Posts: 6
Karma: 14
Join Date: Jul 2008
Location: Amsterdam
Device: iLiad
Database on iLiad?

Has anyone ported any database software (SQLite, MySQL, whatever) to the iLiad? Either my google-fu is weak, or there's no package or installer on mobileread (I think it was Adam B mentioned he'd compiled sqlite? but as part of some other project).

If not, is it just that the super-porters have had other priorities, or is there likely to be a good reason not to try?

I tried just dropping the sqlite linux executable onto my iliad, which unsurprisingly didn't do the trick.

Code:
root@ereader:~# ./sqlite3-3.6.10.bin 
./sqlite3-3.6.10.bin: 1: Syntax error: word unexpected (expecting ")")
My next attempt will be to try to set up a cross-compiling environment (following instructions on hansel's site) and compile it myself. If anyone can help shortcut that process I'd surely be thankful.
tikitu is offline   Reply With Quote
Old 02-10-2009, 07:05 PM   #2
tikitu
Junior Member
tikitu began at the beginning.
 
Posts: 6
Karma: 14
Join Date: Jul 2008
Location: Amsterdam
Device: iLiad
SQLite can be done, bit of a pain

Well, I seem to have answered my own question. I've got the sqlite executable running, so I guess the library should be fine too. (I'm working towards a lua app with a database backend.)

Apparently SQLite is a pain to cross-compile because the Makefile you get out of the box tries to execute some of the files it creates halfway through the process, which of course doesn't work. I used a variation on this solution, with the Irex SDK tools installed as hansel described. I'll admit I don't entirely understand what I did, but it seems to have worked.
tikitu is offline   Reply With Quote
Advert
Old 02-11-2009, 03:20 AM   #3
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by tikitu View Post
Apparently SQLite is a pain to cross-compile... [snip] ... but it seems to have worked.
Sometimes building a library is like solving a sudoku , but much more rewarding: you don't have to throw it away when you're done I've sent you some karma for solving this one

This might be a next step: http://www.mroth.net/lua-sqlite3/
hansel is offline   Reply With Quote
Old 02-11-2009, 07:52 AM   #4
tikitu
Junior Member
tikitu began at the beginning.
 
Posts: 6
Karma: 14
Join Date: Jul 2008
Location: Amsterdam
Device: iLiad
Quote:
Originally Posted by hansel View Post
I've sent you some karma for solving this one
Cheers -- right back atcha, since it's your instructions I was following.

Quote:
This might be a next step: http://www.mroth.net/lua-sqlite3/
Yep, that's where I'm looking. I might see how easy it is to make an ipkg (or whatever those are called), since installing your lua port that way was so painless. This porting business could get addicting... I wonder if I'll ever get around to the programming part?
tikitu is offline   Reply With Quote
Old 02-13-2009, 09:28 PM   #5
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I once built sqlite for iLiad because WebKit needed it. IIRC, The process was not so problematic.
ericshliao is offline   Reply With Quote
Advert
Old 02-16-2009, 06:47 AM   #6
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
I've compiled sqlite3 and built a package. It's only ~400k in size, so it will install directly to /. It includes the library as well as the binary (sqlite3). Some test code:
Code:
root@ereader:/var/tmp$ sqlite3  test.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> CREATE TABLE test (
   ...> ID Int Primary Key,
   ...> Name Varchar );
sqlite> .schema
CREATE TABLE test (
ID Int Primary Key,
Name Varchar );
sqlite> INSERT INTO test VALUES(1, "abc");
sqlite> SELECT * FROM test;
1|abc
sqlite> .exit
root@ereader:/var/tmp$
EDIT: The Ruby library for SQLite3 is out now too (that's what I needed sqlite3 for ). See this post.
Attached Files
File Type: ipk sqlite3-3.5.9+iliad.r01.ipk (212.5 KB, 430 views)

Last edited by -Thomas-; 02-16-2009 at 07:14 AM.
-Thomas- is offline   Reply With Quote
Old 02-17-2009, 11:33 AM   #7
tikitu
Junior Member
tikitu began at the beginning.
 
Posts: 6
Karma: 14
Join Date: Jul 2008
Location: Amsterdam
Device: iLiad
Thanks Thomas. Now I don't have any excuse for learning how to make ipk files... until the next one pops up.
tikitu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
different database for different categories reup Calibre 3 06-20-2010 11:25 AM
What Database? LadyLou Calibre 8 02-12-2010 06:32 AM
Compacting the Database? Sabardeyn Calibre 2 02-11-2010 06:45 PM
new database format alexxxm Calibre 10 11-19-2008 03:45 AM
Scribble Database? Gogolo iRex 1 10-20-2008 04:05 PM


All times are GMT -4. The time now is 04:59 PM.


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