Rockbox Development > Starting Development and Compiling
rbutilqt fails to build on Mac OSX
(1/1)
ell1ps1s:
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.
linuxstb:
Yes, I get the same problems.
bluebrother:
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 ;)
ell1ps1s:
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: ---/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)
--- End code ---
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 ;)
--- End quote ---
I wish I had the coding skills to contribute. The best I can offer at the moment is testing.
bluebrother:
--- Quote from: ell1ps1s on September 29, 2007, 05:09:51 PM ---However, now it fails later, with the following messages:
--- End quote ---
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.
--- End quote ---
Someone actually testing it is still a valuable contribution :)
Navigation
[0] Message Index
Go to full version