ltrr-arizona-edu / tellervo

Desktop application for measuring, curating, and analysing dendrochronological samples
http://www.tellervo.org
GNU General Public License v3.0
6 stars 4 forks source link

Maven build on amd64 problem and solution #109

Closed grzmyr closed 6 years ago

grzmyr commented 6 years ago

During a build on 64-bit machine, serial port tests fail and build stops with "amd64 architecture is not supported". Its because of unknown arch name during architecture recognizing. os.arch returns "amd64", while tellervo expects "x86-64" in RxTxNativeLoader.java:

if(os.startsWith("Windows")) { if(arch.equals("x86")) { lib = "/Libraries/windows-i586/rxtxSerial.dll"; } else if (arch.equals("x86-64")) { lib = "/Libraries/windows-amd64/rxtxSerial.dll"; } else { throw new Exception(arch+" architecture is not supported"); } }