Minor Install bugs in xTimeComposer V13.2.3 Linux Version Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
bearcat
Respected Member
Posts: 283
Joined: Fri Mar 19, 2010 4:49 am

Minor Install bugs in xTimeComposer V13.2.3 Linux Version

Post by bearcat »

Using latest Linux Ubuntu Wily (15.10), there are 2 very minor bugs you need to correct to get it installed and working using Version 13.2.3 and JAVA 1.8. XTAG2 is good.

1 - Newer JAVA versions changed output slightly. Installing OpenJDK Java 8, as now latest version in the distribution, the output from java -version 2 is different than earlier versions. Edit /XMOS/xTIMEcomposer/Community_13.2.3/bin/xtimecomposer

From:

Code: Select all

# Check java version
my $version = substr($output, 14, 3);
if ($version < 1.5) {
    die ("Incorrect java version. Requires 1.5 or greater.\n");
}
To:

Code: Select all

# Check java version
my $version = substr($output, 17, 3);
if ($version < 1.5) {
    die ("Incorrect java version. Requires 1.5 or greater.\n");
}
2 - USB Driver check script, not the install script. Edit check_xmos_devices.sh

From:

Code: Select all

if [ `whoami` == root ]; then
    echo Please run this script as root or using sudo
    exit
fi
To:

Code: Select all

if [ `whoami` != root ]; then
    echo Please run this script as root or using sudo
    exit
fi


View Solution
srinie
XCore Addict
Posts: 158
Joined: Thu Mar 20, 2014 8:04 am

Post by srinie »

Thanks for those corrections!
These are applicable to 14.x versions of the tools too, if a fix is to be sought.
User avatar
andrewxcav
Active Member
Posts: 62
Joined: Wed Feb 17, 2016 5:10 pm

Post by andrewxcav »

Thank you so much, this also fixed my "unable to determine java version" bug in Centos 7.

I think this thread should be pinned.
User avatar
Ross
XCore Expert
Posts: 968
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Thanks for taking the trouble to post!
peter
XCore Addict
Posts: 230
Joined: Wed Mar 10, 2010 12:46 pm

Post by peter »

Thanks for the feedback. The issue with check_xmos_devices.sh has been fixed internally and should be in the next tools version.

I would like to get the java version check fixed properly, but in order to do that it would be very helpful to have the output of your "java -version" command that the script is failing to parse. The fix you propose clearly fixes the OpenJDK version of Java, but would not work for other Java distributions. If you could give us the version string you have that fails that would be very helpful.
bearcat
Respected Member
Posts: 283
Joined: Fri Mar 19, 2010 4:49 am

Post by bearcat »

Code: Select all

user@user-u:~/XMOS/xTIMEcomposer/Community_13.2.3$ java -version 2
openjdk version "1.8.0_66-internal"
OpenJDK Runtime Environment (build 1.8.0_66-internal-b17)
OpenJDK 64-Bit Server VM (build 25.66-b17, mixed mode)
A more refined check would be an improvement. I was more happy the USBFS worked in the newer distributions...
peter
XCore Addict
Posts: 230
Joined: Wed Mar 10, 2010 12:46 pm

Post by peter »

Thanks for that. We will get that fixed in an upcoming version (may not be the next release as that is already on pre-release internally...).