Feature #155

Support for Mac OSX 64Bit missing

Added by hoffmann over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:10/19/2012
Priority:NormalDue date:10/23/2012
Assignee:achristian% Done:

100%

Category:-Estimated time:0.50 h
Target version:-Spent time:0.50 h

Description

I'd like to use your great library loader for my Maven 3 project on Mac OSX. Unfortunately the native jnilib for 64Bit is missing.

I downloaded your sources and and fixed the issue locally, but it would be more convenient for me, if I could just use the maven dependency :) So it would be great if you could add the &4 Bit library, which I attached to this ticket.

I also had to change line 84 of LibLoader.java as follows:

        // check for os x platform
        else if (osName.toLowerCase().contains("os x")) {
            // check for architecture 64bit
            if (osArch.toLowerCase().contains("amd64") || osArch.toLowerCase().contains("x86_64")) {
                extractedLibs.put("rxtxSerial", extractLib("/jni/Mac_OS_X/x64/", "librxtxSerial.jnilib"));
            } else {
                // no arch available or required?!
                extractedLibs.put("rxtxSerial", extractLib("/jni/Mac_OS_X/", "librxtxSerial.jnilib"));
            }
        }

Thanks for your great work :)

cheers,
Sven

librxtxSerial.jnilib (166 KB) hoffmann, 10/19/2012 04:31 PM

Associated revisions

Revision 24
Added by achristian over 5 years ago

fix for issue #155

History

#1 Updated by achristian over 5 years ago

Thanks for the lib + the patch. I will integrate is asap.

br,
Alex

#2 Updated by achristian over 5 years ago

  • Due date set to 10/23/2012
  • Status changed from New to Assigned
  • Estimated time set to 0.50

#3 Updated by hoffmann over 5 years ago

Wow, that was quick. Thanks a lot :)

#4 Updated by achristian over 5 years ago

That's the power of IMAP Push :-)

#5 Updated by hoffmann over 5 years ago

:)

I just noticed, that I attached the jnilib for rxtx 2.2pre, which causes an version mismatch warning. But you can find a Lib for 2.1.7 here: http://blog.iharder.net/2009/08/18/rxtx-java-6-and-librxtxserial-jnilib-on-intel-mac-os-x/

Apparently this one works for 32 bit and 64 bit. I tested it on my 64 bit system and it does work, with your wrapping library. This would make the change on the LibLoader.java obsolete.

#6 Updated by achristian over 5 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Added 4-in-1 lib file from suggested link, updated comment in libloader.

Build has been triggered: http://jenkins.root1.de/job/RXTX-rebundled%20-%202.1-7r2%20branch/2/

You might need to refresh/update your local maven repo.

#7 Updated by hoffmann over 5 years ago

Great Work! Thank you very much!

Also available in: Atom PDF