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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  tcctool no longer builds on 64-bit OS X
« previous next »
  • Print
Pages: [1]

Author Topic: tcctool no longer builds on 64-bit OS X  (Read 1890 times)

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2273
  • /usr/local/bin/weirdo
    • The Nostalgia Roadtrip
tcctool no longer builds on 64-bit OS X
« on: February 07, 2012, 07:02:54 PM »
I recently tried building tcctool again to try some code out on my old Sansa m200, but it looks like it's completely broken on OS X 10.6.8 (running the 64-bit kernel). Details are as follows when I invoke make:

Code: [Select]
gallifrey:tcctool rmenes$ make
gcc -Wall -W -I/usr/local/include -DVERSION=\"r31645-120202\" -lusb -o tcctool tcctool.c
ld: warning: ignoring file /usr/local/lib/libusb.dylib, missing required architecture x86_64 in file
Undefined symbols for architecture x86_64:
  "_usb_bulk_write", referenced from:
      _upload_app in ccyoxrxD.o
  "_usb_init", referenced from:
      _do_patching in ccyoxrxD.o
  "_usb_find_busses", referenced from:
      _do_patching in ccyoxrxD.o
  "_usb_find_devices", referenced from:
      _do_patching in ccyoxrxD.o
  "_usb_get_busses", referenced from:
      _do_patching in ccyoxrxD.o
  "_usb_open", referenced from:
      _do_patching in ccyoxrxD.o
  "_usb_set_configuration", referenced from:
      _do_patching in ccyoxrxD.o
  "_usb_close", referenced from:
      _do_patching in ccyoxrxD.o
  "_usb_claim_interface", referenced from:
      _do_patching in ccyoxrxD.o
  "_usb_release_interface", referenced from:
      _do_patching in ccyoxrxD.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [tcctool] Error 1

Does anyone have any idea of where to poke around to get this working again? The makefile nor tcctool.c seem to be clueing me in too much.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9140
Re: tcctool no longer builds on 64-bit OS X
« Reply #1 on: February 07, 2012, 07:12:14 PM »
I think the first warning means that you don't have a compatible version of libusb installed, and all the others are just the linker failing because it can't find libusb. 
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2273
  • /usr/local/bin/weirdo
    • The Nostalgia Roadtrip
Re: tcctool no longer builds on 64-bit OS X
« Reply #2 on: February 07, 2012, 07:19:30 PM »
Yup, now that you mention it, I've noticed that my version is built for a 32-bit system (probably old leftovers from when I was still running Leopard), so I'm going to have to build a newer version.

Thanks for the second pair of eyes. :)
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: tcctool no longer builds on 64-bit OS X
« Reply #3 on: February 10, 2012, 07:43:02 AM »
The build could probably add -Wl,-z,defs to CFLAGS to fail when linking rather than when running
Logged
a wise man said: "a wise man said"

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  tcctool no longer builds on 64-bit OS X
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.157 seconds with 21 queries.