Porting a Processing (32bit) library from Windows to Mac (64bit)

Some months ago I developed a library in Windows for Processing (http://code.google.com/p/touchatag-processing/). It basically allows users to work with touchatag RFID readers and tags on the Processing environment.
For the last couple of days I've been trying to port it to Mac, but I've run into some problems regarding system architecture. My library heavily relies on libnfc (http://www.libnfc.org/), which is compiled as x86_64. Since Processing runs as a 32 bit application, I'm getting this error:
+processing.app.debug.RunnerException: UnsatisfiedLinkError: /Users/augustoesteves/Documents/Processing/libraries/touchatag/library/libnfc.d ylib: no suitable image found.+
+Did find: /Users/augustoesteves/Documents/Processing/libraries/touchatag/library/libnfc.d ylib: mach-o, but wrong architecture+
I've tried following the instructions found here:
http://discussions.apple.com/thread.jspa?messageID=10497361
But since libnfc relies on libusb, I still get errors with Make:
sudo make CFLAGS='-arch i686' LDFLAGS='-arch i686' CC='gcc -m32' CXX='g++ -m32'
+ld: warning: in /usr/local/Cellar/libusb-compat/0.1.3/lib/libusb.dylib, file was built for unsupported file format which is not the architecture being linked (i386)+

Rorsch wrote:
Yes, I understand the problem, I can't have mixtures. But how do I compile libnfc if it uses a pre-complied libusb library at 64bits?
You have to rebuild libusb
Unfortunately, libusb seems to have a couple of funky gcc flags. You have to do this the hard way.
env CFLAGS="-arch i386" ./configure; make
mv libusb/.libs/libusb-1.0.0.dylib /tmp/libusb-1.0.0.dylib.i386
make clean
env CFLAGS="-arch x86_64" ./configure; make
mv libusb/.libs/libusb-1.0.0.dylib /tmp/libusb-1.0.0.dylib.x86_64
lipo -create /tmp/libusb-1.0.0.dylib.i386 /tmp/libusb-1.0.0.dylib.x86_64 -output libusb/.libs/libusb-1.0.0.dylib
Result:
file libusb/.libs/libusb-1.0.0.dylib
libusb/.libs/libusb-1.0.0.dylib: Mach-O universal binary with 2 architectures
libusb/.libs/libusb-1.0.0.dylib (for architecture i386): Mach-O dynamically linked shared library i386
libusb/.libs/libusb-1.0.0.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64

Similar Messages

  • How to Transfer iTunes Library from Windows to Mac

    I'm having some trouble moving my iTunes library from my old Windows XP Dell to my new MacBook Pro. I used my iPod video on the Dell, but now that I have a Mac, I want all my songs to be moved over there. Unfortunately, I have no idea how to do this. I looked at the Apple Support pages, but none of them address this particular issue. Can someone guide me on how to do transfer my library?
    Thanks!

    the ipod now showing up in my computer or wherever is probably because the ipod is not set for disk use. go to the ipod settings in itunes and fink the check box where it says "enable disk use" this should make the ipod show up. now you should be able to put the songs onto the ipod as a music file to transfer them. other methods of transfer could be an external hard drive, a travel drive, a usb cable, or the most convenient but frustrating way is to open the ipod folder in my computer... and nvm i cant remember how to do it and dont have a working ipod at the moment to find out. ill post that solution later. i will say it involves opening the folder where the music is saved on the ipod, copying them onto the computer and renaming every single file. this is convienient only because it doesnt require modification or movement of any songs to the ipod because it uses the ones on there. all the files renamed with random letters and numbers when put on the ipod so youll have to reorganize all songs

  • I need to transfer an iTunes library from Windows to Mac. .with a catch.

    The catch is, I have a Mac formatted iPod, so if I understand correctly, I can't use it as an external drive to take the library from the Windows machine.
    Anyway. . I'm buying my fiancee a MacBook, and obviously she wants her iTunes library from her Windoze machine. Her iPod is a nano, so it's not large enough capacity to transfer her whole library to her new MacBook.
    So. . how do I get her music on her MacBook?
    Thanks!
    Dave

    One way would to be to re-format the ipod for windows, enable disk usage, copy her existing library, then transfer to the mac ( the mac will read a window formatted ipod). Otherwise, if you have the ability I suggest networking the 2 computers, (macs & pc's can be networked together without a lot of trouble) an transfer via ethernet.

  • Transferring Library from Windows to Mac - Library does not show in iTunes

    I've consolidated my iTunes library from my Windows PC to my iPod using the external hard drive option and following the instructions listed in iPod support on this site.
    After copying the iTunes folder from my iPod to the Music folder on my new Mac, I'm not seeing the library appear in iTunes when I open it up.
    Can someone give me any guidance?

    should be an easy fix for you. On your Mac goto file add to library, then goto the folder where you moved the files to, hopefully it was the itunes music folder, just select the folder then click on choose at the bottom of the window and hopefully in a few minutes the problem will be solved.

  • How to transfer itunes library from windows to mac, not all my songs were successfully transferred

    I recently bought a new mac air and the Apple Store transferred my files from my windows laptop( windows 7) to my new mac.  however, I lost over a 1000 songs in the process.  How can i get all my songs into my new library?

    Hello pmwildcat
    I would use either Home Sharing or use an external drive to get the songs and copy them over. If they are purchased items from the iTunes Store, you can download them from looking at your purchase history.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Migrating iTunes library from Windows to Mac

    I am in the process of migrating all my files from my PC to my macbook. Is there a way to do this and still keep all my metadata?

    Hi Bruno! Are you Portuguese or Brazilian?
    Do you have an iPod, which you could use as a transfer way? If not I would recommend you to use the "Back up to disc" feature. Then just insert your DVD's in your new MacBook and import your library.
    If you want to use your iPod, then read this:
    First sync your content to the iPod.
    If you have purchased songs from the iTunes Music Store, then those are pretty easy to transfer to your computer. You'll just need to follow [this instructions|http://docs.info.apple.com/article.html?artnum=305465].
    All your other songs (for example, those ripped from your CD's), you'll need to use any 3rd party program to transfer them to your iTunes library!
    Use one of this programs (all of them will preserve your metadata):
    [iGadget|http://www.ipodsoft.com/site/pmwiki.php?n=igadget.Homepage] (Mac and Windows)
    [iPod Access|http://www.findleydesigns.com/ipodaccess/index.html] (Mac and Windows)
    Hope this helps! If you still have doubts, please reply.
    Best Regards

  • Tried to use iTunes library from Windows and Mac - lost everything

    My iTunes Library is on a NAS (Dlink DNS-323) and until last night, I was only using it with my two macs (both running 10.5.6).
    Last night, I wanted to use it from my Vista laptop so I looked up online and realized I can easily do it by renaming the "iTunes Library" file to iTunes Library.itl and double clicking from iTunes on Windows.
    It seemed to work because when iTunes opened, I could see my playlists and I saw the message "updating library". I was afraid about the update to the library, so I just exit iTunes at the time thinking it would all be ok.
    Guess not. This morning when I opened iTunes from my iMac, it opened with and empty library. I tried to do Library/Import Playlist and it did nothing but add the "standard" playlists to my library. I tried it a few times, with different settings (trying to re-rename the .itl back to just iTunes Library for example) and nothing worked.
    Do I have any hope to recreate the library? From now on I will be backing up the NAS also, but meanwhile any ideas?

    Your library file was being converted from Mac-based paths to Windows-based paths; apparently iTunes isn't courteous enough to work on a temp file while doing that conversion. You're not going to get it back. (And now you've learned the hard lesson of making backups of your important stuff
    If the "iTunes Music Library.xml" file is still in one piece, you can use File menu -> Library -> Import playlist and point the file dialog to the xml file. Just about all the previous iTunes-only metadata will be imported (IIRC, about all you lose is some "Skip" info, and of course, Date Added will reflect the new date of import).

  • Migrating Applications from Windows to Mac with new iPhone

    My original first gen iPhone died a horrible death a few months ago. I had always synced it to my Windows laptop. I just recently acquired a new iPhone and want to sync it instead to my iMac. However, I have a dozen or so iPhone applications that I still want and I cannot figure out how to migrate the applications that are recognized by iTunes on my Windows machine and transfer them to my iMac. I even attempted to download an application I already purchased from my iMac, and I was charged the fee for the iPhone application instead of it just recognizing i had previously purchased the application.
    Any assistance would be greatly appreciated.

    *1) moving the music*
    These pages may be of some help:
    How to move an iTunes library from a PC to Mac (and back)
    How to move your iTunes library from Windows to Mac
    *2) restoring the ipod as a Mac device*
    Connect the iPod to the Mac and restore it in iTunes. Restoring in iTunes for Mac will erase and reformat the iPod's hard drive, reload the software with the mac version and put it back to default settings. Once the restore is complete follow the on screen instructions to name the iPod and automatically sync your songs and videos onto the fresh installation. Press Done and the iPod will appear in iTunes and start to sync. If you want to update manually or using selected playlists uncheck the box beside the sync automatically instruction and press Done, it will default to manual mode and you can choose whatever setting you like: Restoring iPod to factory settings with iTunes
    *3) pointing iTunes to and external library.*
    You might find this article useful: iLounge - Managing your iTunes Library on an External Hard Drive

  • I have transferred my iTunes library from windows 7 pc to new windows 8 pc. Music was in alphabetical order by surname but new pc has some by surname some by first name and some not in alphabetical order. How can I get sorted?

    Question  Hi - I've transferred my iTunes library from windows 7 pc to one with windows 8. My library was in alphabetical order by surname but after transfer is now some by surname, some by first name, and some not in alphabetical order. How do I sort this out and also make sure that new downloads list by surname alphabetically?  

    Sorting in iTunes is often controlled by selecting different column headings. The sort order for any given column may be further modified by a sort value, e.g. Sort Artist affects the sort order of Artist. If you transferred the library properly all of the metadata should have remained intract and you simply need to select the a column that sorts as you want. If you had to import the library then there is the potential for tagging effects that could mean metadata entered previously didn't import with the media. Note that iTunes has no mechanism for automatically deciding which values are in <Forename> <Surname> order and could therefore be sorted as <Surname> <Forename>. The only automatic process drops leading articles (a/an/the) so that "The Doors" sort under D as "Doors".
    See also Grouping tracks into albums.
    tt2

  • Best Method for transfering iTunes library from Windows 7 to Mac OSX

    I just bought a MacBook Air and am in the process of preparing my file transfer. The only data on my computer I really care about is my school/work files, (which are very easy to transfer), and my iTunes library. What is the best method for transfering music?
    I was going to use an external drive and simply drag and drop everything. Last time I did this I needed a special file in order to keep my playlists, top rated, and playcount. Is there an easier and faster method now? I have about fifty gigabites of music so I think it might take longer over wifi.
    I also have an iPhone and have already transfered all of the recent purchases. If I export my library, will all my iPhone backup data stay there as well?
    If anybody has some insight or a link that outlines all of this that'd be great. Thanks in advance.

    Here's a pretty comprehensive "how to"
    http://myfirstmac.com/how-do-i-move-my-itunes-library-from-pc-to-mac-and-keep-my -settings-intact.html
    Make sure the external drive is foratted so both the pc and the mac can read and write to it.
    http://howto.cnet.com/8301-11310_39-57401784-285/the-best-ways-to-format-an-exte rnal-drive-for-windows-and-mac/
    good luck.

  • Transferred itunes library from Windows XP PC to new Windows 7 PC. plugged in 3rd gen Ipod. Ipod icon appears along with playlists, music etc. Songs are grayed out and won't play. Please help!

    I recently transferred itunes library from windows XP PC to new Windows 7 PC. The transfer was successful, however when I plug my 3rd gen Ipod Nano into the new PC, the Ipod icon appears along with the music, playlists, etc. The songs are shown but are 'grayed out' and wont play or sync.The 'Devices & Printers' window in new PC shows icon for Ipod driver & is OK. The icon for the Ipod appears but depicts a delta shaped warning icon that states that the Ipod is'not operating properly'. Tried troubleshooting. The troubleshooting message states the the Ipod is 'disconnecting'. Can you help me with this problem?        

    Then, I dropped the entire itunes file from the old PC (XP) into an empty external drive.
    That "itunes file from the old PC"?  Is that the iTunes folder, from the old PC, that was in the user home folder's Music folder?
    All of the library, playlists, etc. from the ipod as they always have been are shown, by they are 'grayed out' and will not open or play.
    That's on the iPod, correct?  Are all of your old playlists in iTunes, from the old PC, still there in iTunes on the new PC?  Are the songs in iTunes still playable?
    This document provides the steps to transfer a complete iTunes library between two computers.  See the section called External drive.
    iTunes: How to move your music to a new computer - Apple Support
    There are many steps, but this is a summary.  (1) On the old PC, consolidate all of your iTunes data into the iTunes folder.  (2) Copy this iTunes folder to the external drive.  (3) On the new PC (that has iTunes installed but NOT running), replace its existing iTunes folder with the one from the old PC (on the external drive).  When you run iTunes, it uses the iTunes folder from the old PC, and it should look like iTunes on the old PC (with all the playlists, ratings, play count, etc.), and your iPod will see the iTunes library as the same iTunes library (because it is the same library).
    If you did something different, and the old PC is still accessible, you may want to try it using the method from the linked document.

  • I transferred my iTunes library from Window PC to MacBook pro and now I cant play songs that I purchased with an earlier ID and Password.  How can I get around this problem?'t

    I transferred my iTunes library from Window PC to MacBook pro and now I cant play songs that I purchased with an earlier ID and Password.  How can I get around this problem?

    Authorize the computer.
    iTunes Store: About authorization and deauthorization - http://support.apple.com/kb/HT1420 - and another helpful post: https://discussions.apple.com/message/17828050

  • USBed itunes library from windows 7 comput to windows 8.1 comput, will not open "does not support .itl files" gave me a list of programs to choose from, could not find one to work

    New laptop with 8.1, Used USB to transfer itunes library from windows 7 computer into My music on 8.1, cannot get it to play, I get the usual does not support extension itl message and a list of programs, a few of which I tried with no luck.  songs are a mix of CDs and amazons, no songs actually bought from apple, but player dashboard is itunes.  Just direct wired transferred to Droid phone and it worked first time.

    did it work out for you . How did you activate the Windows 8 ??

  • Transfer iTunes library from Windows 7 PC to new Macbook Pro

    Had a Dell computer that had a failed video card. So I purchased a 13-inch Macbook Pro as a replacement. How do I transfer my iTunes purchases from my Windows 7 x64 PC to an OS X Lion Macbook Pro? Will need to move my entire iTunes library as well (ripped music as well as iTunes purchased music and Apps). I also have several iPods and iPads that I'll need to authorize on the Macbook that used to be authorized on the Windows 7 PC. I guess I'll have to deauthorize my old Dell computer in order for my iTunes purchases to be recognized on the Macbook (can still access the computer, just the resolution is bad)?
    On my Dell, I've had to reinstall the OS a few times (upgrading from Vista to Windows 7 x32 then Windows 7 x64, and a few OS crashes, etc.) so not sure how many times I've had to authorize my purchases (think the limit is 5 times?).

    See here for
    Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html
    Backup iTunes to an External Drive
    http://support.apple.com/kb/HT1751
    Download Past Purchases
    http://support.apple.com/kb/HT2519

  • My 1st ipod was lost. My library is on a Dell with Windows.  I registered my new ipod to a Mac.  How can I get my library from Windows onto my new Ipod?

    My 1st ipod was lost. My library is on a Dell with Windows.  I registered my new ipod to a Mac.  How can I get my library from Windows onto my new Ipod?

    Thank you for your help.  I am still having trouble.  As you can tell, I am not technologically advanced AT ALL.  My music is all showing up in the library but when I go to file in the top left corner, Sync is greyed out and I cannot select it.  I'm gonna continue to try this.  It's been a long time since I had my 1st ipod and things have changed so much I will probably need to research this stuff.  Thanks again for your help.

Maybe you are looking for

  • Unrestricted access for transaction codes

    Hi, We had set Production Client settings in SCC4 as "No chnages allowed" for client specific objects and "No changes to cross client & repository objects" in cross-client settings. As a part of regular job Finance users needs access to below transac

  • How to configure Tender fee and Earnest money deposit in srm 7.0

    Hi, can you tell me the configuration steps involved in Tender fee and Earnest money deposit in srm 7.0

  • Port Mapping Problem

    I'm using Filemaker Web Publishing and need to map port 591 to a local computer. I have a static IP address from my ISP but when I enter the info into Airport it doesn't seem to do anything. I've also tried, as a test, to set up personal web sharing

  • SPDD adjustment help

    Hi Community, I need help to clarify some spdd adjustmens.... On an upgrade on DEV system, we missed to implement a modification because on upgrade time, we understood on a semi-automatic adjustment -Phase 1 OK and Phase 2: Subsequent processing of t

  • What is the similar tool on HP-UX like MMC?

    Hello guru, I see there is a SAP monitor tool MMC on windows platform, we can start SAP and stop SAP there, we can also see red, yellow, green there indicting SAP system status. Is there similar tool on Unix platform? I am using HP-UX 11iV2