FS#8499 - Can't build database PC tool (was: Building database from computer)

Attached to Project: Rockbox
Opened by Clément Pit--Claudel (CFP) - Tuesday, 22 January 2008, 17:23 GMT
Last edited by Nils Wallménius (nls) - Tuesday, 16 December 2008, 08:27 GMT
Task Type Bugs
Category Database
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Hello !
I spend a lot of time rebuilding my gigabeat id3 database everytime I add music on my player. Would'nt it be great to just port the database building code to Windows/Linux in order to build rockbox database from your computer ?
Thank you !
This task depends upon

Closed by  Nils Wallménius (nls)
Tuesday, 16 December 2008, 08:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in r19448
Comment by Nicolas Pennequin (nicolas_p) - Tuesday, 22 January 2008, 18:21 GMT
That's already possible thanks to a (very unpolished) tool that's in the tools/ dir.
I'll try to give more details before closing.
Comment by Clément Pit--Claudel (CFP) - Tuesday, 22 January 2008, 21:12 GMT
Thanks !
Can you just name the file, so I have a look at it ?
Comment by Nicolas Pennequin (nicolas_p) - Tuesday, 22 January 2008, 21:18 GMT
Oh sorry I forgot to give the details :)
The file is tools/database.c
You can build it with "make database", but it doesn't seem to compile ATM. Also it's still very basic, but I know it worked for me at one point.
Comment by Clément Pit--Claudel (CFP) - Wednesday, 23 January 2008, 16:26 GMT
Trying to use nmake database outputs : "makefile(9) : fatal error U1033: syntax error : '=' unexpected", while trying to build database.c using C::B warns "unreferenced" exceptions. Is there another way to build database.c ?
Apart from this, should'nt #include "../apps/tagcache.h" be used instead of #include "tagcache.h" ?
Comment by Clément Pit--Claudel (CFP) - Tuesday, 26 August 2008, 20:10 GMT
In fact, everything gets messed up : apart from many (many) warnings, a SDL.h not found exception occurs. Ideas ?
Comment by Clément Pit--Claudel (CFP) - Saturday, 30 August 2008, 11:20 GMT
Seems ArenOlson is working on this, see TagcacheDBFormat on the wiki.
Comment by Bryan Childs (GodEater) - Friday, 10 October 2008, 12:52 GMT
In order for this to compile this these days a lot of work is needed to split out the metadata handling in Rockbox from core / firmware functionality.
Comment by Björn Stenberg (zagor) - Wednesday, 15 October 2008, 06:49 GMT
Metadata handling has now been moved out of firmware.
Comment by Yoshihisa Uchida (Uchida) - Thursday, 06 November 2008, 13:39 GMT
For <a href="">FS9371</a>, I prepared the tool to make the music database on PC instead of tools/database.c.

Please let me report the impression that makes sondb in your environment.

build for songdb.exe
$ cd utils/songdb
$ make

Please read utils/songdb/readme.txt about the usage etc.