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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  rbutilqt fails to build on Mac OSX
« previous next »
  • Print
Pages: [1]

Author Topic: rbutilqt fails to build on Mac OSX  (Read 2234 times)

Offline ell1ps1s

  • Member
  • *
  • Posts: 36
rbutilqt fails to build on Mac OSX
« on: September 29, 2007, 06:28:32 AM »
I'm trying to compile rbutilqt on Mac OSX. I have SVN r14900, and Qt-4.3.1 installed.
The line which compiles autodetection.cpp returns 'No such file or directory' errors for mntent.h and usb.h, which lead to a string of other errors, and the failure of the whole process.

Has anyone else succeeded in compiling a recent version of rbutilqt on a Mac, or is this a general Mac-related problem? If it's not just me, I'll file a bug report.
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: rbutilqt fails to build on Mac OSX
« Reply #1 on: September 29, 2007, 07:12:57 AM »
Yes, I get the same problems.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: rbutilqt fails to build on Mac OSX
« Reply #2 on: September 29, 2007, 08:16:59 AM »
The recently added usb detection code requires libusb, which provides usb.h. Do you have this library installed? As for mntent.h, this is a bug -- it's needed on linux for resolving the mount oint but OS X uses a different way, thus this header file does not exist. I just commited a fix for this.

If you can help our with fixing the issues or adding the code for mountpoint resolving on MacOS, please do -- rbutilqt kinda is in need of a Mac developer ;)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline ell1ps1s

  • Member
  • *
  • Posts: 36
Re: rbutilqt fails to build on Mac OSX
« Reply #3 on: September 29, 2007, 05:09:51 PM »
libusb is present in /sw, so I guess something I've installed with fink has put it there. rbutilqt's not seeing it there, however. I'll try installing it in a more accessible location.

I've noticed the mountpoint issues from the point of view of a user; is this getting /Volumes/ to show in the file browser? (It works fine if you type the path manually)


EDIT: That part works now. Thanks very much for the advice, and the fix. However, now it fails later, with the following messages:
Code: [Select]
/usr/bin/ld: for architecture ppc
/usr/bin/ld: can't locate file for: -lusb
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture i386
/usr/bin/ld: can't locate file for: -lusb
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccRCklBj.out (No such file or directory)

Again, is this just me?

Quote from: bluebrother on September 29, 2007, 08:16:59 AM
rbutilqt kinda is in need of a Mac developer ;)

I wish I had the coding skills to contribute. The best I can offer at the moment is testing.
« Last Edit: September 29, 2007, 08:49:16 PM by ell1ps1s »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: rbutilqt fails to build on Mac OSX
« Reply #4 on: October 01, 2007, 05:30:09 PM »
Quote from: ell1ps1s on September 29, 2007, 05:09:51 PM
However, now it fails later, with the following messages:
looks like it doesn't find libusb.so / libusb.a (not sure about the file names, these are the names on linux). The library file should be in a standard include path. Alternatively you could try copying it into the source folder (i.e. rbutil/rbutilqt)

Quote
I wish I had the coding skills to contribute. The best I can offer at the moment is testing.
Someone actually testing it is still a valuable contribution :)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  rbutilqt fails to build on Mac OSX
 

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

Page created in 0.076 seconds with 17 queries.