Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Database Utility on a 64-bit Ubuntu System
« previous next »
  • Print
Pages: [1]

Author Topic: Database Utility on a 64-bit Ubuntu System  (Read 3016 times)

Offline noiz77

  • Member
  • *
  • Posts: 4
Database Utility on a 64-bit Ubuntu System
« on: August 04, 2009, 08:45:49 AM »
I just got a ipod video and have rockbox running on there and am very happy with the quality of rockbox, it is quite amazing.  I do want to be able to build the database using my computer though and I have read about the database utility.  I have gotten the source for rockbox and tried to compile the database utility and run into errors.  I am assuming that I need to get some libraries to make it all compile and was wondering if anyone knew which ones I would need to compile the database utility?  Or do I need to set up the whole development environment to be able to compile the database utility?
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Database Utility on a 64-bit Ubuntu System
« Reply #1 on: August 04, 2009, 02:29:03 PM »
Actually posting the errors would help others give you advice.  ;)
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline noiz77

  • Member
  • *
  • Posts: 4
Re: Database Utility on a 64-bit Ubuntu System
« Reply #2 on: August 04, 2009, 04:41:15 PM »
Alright, this is the error that I get when I try and compile using the "make" command in the tools/database directory
Code: [Select]
LD database
replaygain.o: In function `convert_gain':
/home/noiz/rockbox-21932/tools/database/../../apps/replaygain.c:126: undefined reference to `fp_factor'
replaygain.o: In function `parse_replaygain':
/home/noiz/rockbox-21932/tools/database/../../apps/replaygain.c:221: undefined reference to `strlcpy'
metadata.o: In function `get_metadata':
/home/noiz/rockbox-21932/tools/database/../../apps/metadata.c:380: undefined reference to `get_rm_metadata'
/home/noiz/rockbox-21932/tools/database/../../apps/metadata.c:406: undefined reference to `strlcpy'
metadata_common.o: In function `parse_tag':
/home/noiz/rockbox-21932/tools/database/../../apps/metadata/metadata_common.c:324: undefined reference to `strlcpy'
mp3.o: In function `parseuser':
/home/noiz/rockbox-21932/tools/database/../../apps/metadata/mp3.c:312: undefined reference to `strlcpy'
mp3.o: In function `get_mp3_metadata':
/home/noiz/rockbox-21932/tools/database/../../apps/metadata/mp3.c:1116: undefined reference to `strlcpy'
collect2: ld returned 1 exit status
make: *** [database] Error 1
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Database Utility on a 64-bit Ubuntu System
« Reply #3 on: August 05, 2009, 01:49:15 AM »
Those errors sound like we have broken the compilation of that utility in svn and likely has nothing to do with your system.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Database Utility on a 64-bit Ubuntu System
« Reply #4 on: August 05, 2009, 03:37:22 AM »
The problem is that the database utility really has no fixed owner or maintainer. So it gets broken quite often, but no-one notices for ages.

Edit: And thanks to nls, it should now build again.
« Last Edit: August 05, 2009, 04:13:18 AM by GodEater »
Logged

Read The Manual Please

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Database Utility on a 64-bit Ubuntu System
« Reply #5 on: August 05, 2009, 04:13:06 AM »
Ok, I fixed it  ;)
Logged

Offline noiz77

  • Member
  • *
  • Posts: 4
Re: Database Utility on a 64-bit Ubuntu System
« Reply #6 on: August 05, 2009, 08:31:43 AM »
Awesome, I just compiled it this morning and it all checked out, I will have to test it tonight to make sure everything is working.  Thanks for helping me out.

Just got home and tried to run the binary that was compiled and it doesn't seem to be working.  The compiler didn't show any errors and there is no "--help" to know what the parameters are.  I assume that they are the same as the windows binary that I found posted on the forums but those parameters seem not to work.  When I try and run the binary there is no output and it looks as though nothing happens.  Are there parameters I am missing or do I need to reconfigure something?
« Last Edit: August 05, 2009, 11:40:10 PM by noiz77 »
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Database Utility on a 64-bit Ubuntu System
« Reply #7 on: August 06, 2009, 01:29:35 PM »
The utility takes no parameters, it just scans for music and builds a database from the current dir so you should navigate to the root of the player and run it IIUC.
Logged

Offline noiz77

  • Member
  • *
  • Posts: 4
Re: Database Utility on a 64-bit Ubuntu System
« Reply #8 on: August 06, 2009, 01:42:55 PM »
Okay, that makes a lot more sense of how it works, no wonder it wasn't working for me.  I will have to move it to the root directory of the player and try it tonight.  Thanks for all the help, this will make rockbox even sweeter.  :)

Also, one other thing I thought about, does this update the database every time or does it create a new database every time it is run?  Just wondering since the windows binary had the option to do either one.

Man, so I have had this running and it worked beautifully the first couple times that I ran it, but now it is giving me problems.  It generates all the database_* files correctly, but then when I copy them to the .rockbox directory the new files show up in the database but they are not playable.  Anyone know why this is happening?  It seems to me that the player is not committing the new database when it starts up when using this utility.  Is there something else I need to do while using this besides just copying over the new database_* files?
« Last Edit: August 12, 2009, 11:40:34 PM by noiz77 »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Database Utility on a 64-bit Ubuntu System
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.082 seconds with 15 queries.