-
Notifications
You must be signed in to change notification settings - Fork 8
Building on macOS
1 December 2014 (orig. Yosemite)
Updated 13 May 2016 (El Capitan)
Updated 13 May 2020 (Catalina)
Updated 20 July 2021 (Catalina)
To build yad2XX from source on OS X you need to install and configure several tools to build the two modules, the Java Library (.jar file) and the Native Library (.jnilib).
Install the following software, parenthesised values have been tested:
- Java 8 (1.8.0_92-b14, 1.8.0_251-b08)
- Maven 3 (3.3.3, 3.6.3)
- Xcode (7.3.1, 11.4.1) (installs gcc and git client)
Update the shell PATH (Environment Variables) manually to include the install locations (~/.bash_profile) e.g:
JAVA_HOME=`/usr/libexec/java_home -v 1.8`
MAVEN_HOME=/usr/local/apache/apache-maven-3.6.3
PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin
You can sanity check your setup from the OS X Terminal:
- "java -fullversion" -> outputs the Java version you've configured
- "mvn --version" -> ditto for Maven
Checkout the source code and build:
- Open an OS X Terminal window
- Change to your work directory e.g. "cd /Users/me/workspace"
- "git clone https://github.com/aushacker/yad2xx.git"
- Navigate into the checked out project, e.g. "cd yad2xx"
- "mvn install"
First time through this will take a while because Maven will download and cache its plugins. You should ultimately get a SUCCESS.
If other errors occur then first check the steps above. If it still fails then open an issue.
NB. This process changed as part of GitHub migration. The FTDI C headers and libraries are now included in the repository. Maven builds should complete without any further steps. However, to run your own code locally you will need to configure the FTDI libraries manually.
From the FTDI website download and install:
- FTDI D2XX Driver (1.4.24)
- FTDI FT4222 Driver (1.4.4.48)
The install process for the FTDI drivers is completely manual, follow the ReadMe.rtf.
The yad2xx native library needs to be copied where the JVM can find it. Execute:
"sudo cp libFTDIInterface.jnilib /Library/Java/Extensions"