Add build instructions for Solaris

This commit is contained in:
hedgecrw85 2018-11-05 11:12:18 -06:00
parent e81d397c8c
commit 523d3a4f66
1 changed files with 30 additions and 8 deletions

View File

@ -2,6 +2,7 @@
_A platform-independent serial port access library for Java._ _A platform-independent serial port access library for Java._
## Usage ## Usage
For usage examples, please refer to the [Usage wiki](https://github.com/Fazecast/jSerialComm/wiki/Usage-Examples). For usage examples, please refer to the [Usage wiki](https://github.com/Fazecast/jSerialComm/wiki/Usage-Examples).
@ -92,7 +93,6 @@ this project's [GitHub page](https://github.com/Fazecast/jSerialComm/issues),
and we will be glad to look into it. and we will be glad to look into it.
## Building ## Building
Building this library yourself is not advised (at least not for distribution) Building this library yourself is not advised (at least not for distribution)
@ -122,7 +122,6 @@ tool in Eclipse. (Note that if you use Eclipse as an IDE, you will probably want
to install the Eclipse CDT plugin for proper handling of the C source code). to install the Eclipse CDT plugin for proper handling of the C source code).
### Linux/UNIX ### Linux/UNIX
Ensure that the following tools are installed on your Linux distribution: Ensure that the following tools are installed on your Linux distribution:
@ -152,6 +151,34 @@ The resulting ```jSerialComm``` library can be found in the project directory
```build/libs``` under the name ```jSerialComm-{VERSION}.jar```. ```build/libs``` under the name ```jSerialComm-{VERSION}.jar```.
### Solaris
Ensure that you have a cross-compiler installed on your Linux distribution
capable of compiling for both x86 and Sparc-based Solaris architectures.
Instructions for creating such a toolchain can be found on the
[Solaris Cross-Compiler wiki](https://github.com/Fazecast/jSerialComm/wiki/Building-Solaris-Cross-Compilers).
Ensure that the ```JDK_HOME``` environment variable has been set for the 1.6
version of your Java SDK. The correct directory can usually be found by entering
the following command:
readlink -f /usr/bin/java
Export the result of this command ***up to but not including*** the
```/jre/...``` portion using the ```export``` command. For example, if
```readlink``` produced ```/usr/lib/jvm/java-6-jdk/jre/bin/java``` as an output,
the export command would look like: ```export JDK_HOME=/usr/lib/jvm/java-6-jdk```
Run the following commands:
cd src/main/c/Solaris
make && make sparc
cd ../../../..
gradle build
The resulting ```jSerialComm``` library can be found in the project directory
```build/libs``` under the name ```jSerialComm-{VERSION}.jar```.
### ARM-Based Mobile Linux (non-Android) ### ARM-Based Mobile Linux (non-Android)
@ -181,7 +208,6 @@ The resulting ```jSerialComm``` library can be found in the project directory
```build/libs``` under the name ```jSerialComm-{VERSION}.jar```. ```build/libs``` under the name ```jSerialComm-{VERSION}.jar```.
### Android ### Android
Ensure that the Android NDK is installed on your system. For purposes of these Ensure that the Android NDK is installed on your system. For purposes of these
@ -198,7 +224,7 @@ The resulting ```jSerialComm``` library can be found in the project directory
```build/libs``` under the name ```jSerialComm-{VERSION}.jar``` ```build/libs``` under the name ```jSerialComm-{VERSION}.jar```
### macOS X ### Mac OS X
Ensure that [Xcode](https://developer.apple.com/xcode/) is installed on your system. Ensure that [Xcode](https://developer.apple.com/xcode/) is installed on your system.
If it is not, it can be downloaded via the App Store. You must also make sure If it is not, it can be downloaded via the App Store. You must also make sure
@ -212,12 +238,10 @@ Run the following commands in order:
cd ../../../.. cd ../../../..
gradle build gradle build
The resulting ```jSerialComm``` library can be found in the project directory The resulting ```jSerialComm``` library can be found in the project directory
```build/libs``` under the name ```jSerialComm-{VERSION}.jar``` ```build/libs``` under the name ```jSerialComm-{VERSION}.jar```
### Windows ### Windows
Ensure that the [Visual Studio C++ Compiler](https://www.visualstudio.com/) is Ensure that the [Visual Studio C++ Compiler](https://www.visualstudio.com/) is
@ -244,7 +268,5 @@ Then run:
POPD POPD
gradle build gradle build
The resulting ```jSerialComm``` library can be found in the project directory The resulting ```jSerialComm``` library can be found in the project directory
```build/libs``` under the name ```jSerialComm-{VERSION}.jar``` ```build/libs``` under the name ```jSerialComm-{VERSION}.jar```