xTimeComposer on Ubuntu 20.04 Problem

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

xTimeComposer on Ubuntu 20.04 Problem

Post by bearcat »

Moving to Ubuntu 20.04 (Focal Fossa) from 18.04 (Bionic Beaver)

18.04: (must use jre 1.8, ok: need to delete libpangoft2-1.0.so.0, ok)
14.3.3 works fine
14.4.1 works fine

20.04: (tried both jre 1.8 and jre 1.11), (also needed: sudo apt-get install libcanberra-gtk-module)
14.3.3 java crash
14.4.1 java crash

Attached is crash report.
hs_err_pid5141.log
Ideas?
You do not have the required permissions to view the files attached to this post.


bearcat
Respected Member
Posts: 283
Joined: Fri Mar 19, 2010 4:49 am

Post by bearcat »

Made sure the problem was not my Ubuntu 20.04 build.

New install for 20.04 with only system updates applied.
sudo apt-get install libcanberra-gtk-module
sudo apt-get install openjdk-8-jre
sudo tar -xf ./xTIMEcomposer-Community_14-Linux64-Installer_Community_14.4.1.tgz -C /opt
cd /opt/XMOS/xTIMEcomposer/Community_14.4.1/scripts
sudo ./setup_xmos_devices.sh

xtimecomposer.sh:

Code: Select all

#!/bin/bash

cd /opt/XMOS/xTIMEcomposer/Community_14.4.1
source SetEnv
JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-amd64"
PATH=${JAVA_HOME}/bin:$PATH
xtimecomposer
Splash screen starts, then crashes.

I will keep my current computer for now to program, and move this to a VM in the future if needed.
I am good for now, hopefully this will get resolved.
magnus
Member
Posts: 10
Joined: Tue Aug 06, 2019 8:40 pm

Post by magnus »

I have it running on 20.04. Granted it was a 19.10 -> 20.04 update if that matters.

My install notes, which I don't know if they are up to date or necessary also includes the following:
sudo apt install libtinfo5 libncurses5
Search XMOS folder for libpangoft2-1.0.so.0. Delete it.

My memory is very vague but I think there might have been another file that I needed to delete as well but my notes don't have anything about it. Sigh...
For what it is worth it is at least possible...
bearcat
Respected Member
Posts: 283
Joined: Fri Mar 19, 2010 4:49 am

Post by bearcat »

Tried adding libtinfo5 libncurses5 pacakges on 20.04

still crash. I would think it is some dependency here.

Thanks for the reply.
synthcat
New User
Posts: 2
Joined: Wed Jun 24, 2020 7:27 pm

Post by synthcat »

Howdy. I'm currently facing the exact same issue, and none of these steps have helped. Have you made any progress?

It would be great if xmos could fix this seeing as they're still recommending Ubuntu 14.04, which has been EoL for over a year!
bearcat
Respected Member
Posts: 283
Joined: Fri Mar 19, 2010 4:49 am

Post by bearcat »

No updates. Still not working for me on 20.04.

Hopefully one of the team at XMOS upgrades to get this resolved.
synthcat
New User
Posts: 2
Joined: Wed Jun 24, 2020 7:27 pm

Post by synthcat »

I was finally able to get this working - the answer is hiding over in this thread: https://www.xcore.com/viewtopic.php?f=26&t=6938

Basically you gotta do exactly what you did above installing it into /opt/, then delete or move both the ibpangoft2-1.0.so.0 as mentioned above, along with libpangocairo-1.0.so.0 It was deleting the second .so that I was missing.

And again, seems like a working installer for a non-obsolete GNU/Linux distro is long overdue from XMOS!
bearcat
Respected Member
Posts: 283
Joined: Fri Mar 19, 2010 4:49 am

Post by bearcat »

I was involved with the other tread also. Hmm... Didn't notice the newer reply.

So removing ibpangocairo-1.0.so.0 also is needed. xTimecomposer now starts.

But I am now having an error during build, though.
/opt/XMOS/xTIMEcomposer/Community_14.4.1/libexec/xcc2clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
See what I can work up on this one.
bearcat
Respected Member
Posts: 283
Joined: Fri Mar 19, 2010 4:49 am

Post by bearcat »

ok, appears 20.04 has moved up to libtinfo.so.6.

Install the legacy version:
sudo apt-get install libtinfo5

xTimecomposer now sucessfully builds my application. xFlash also successfully built my binary.

Looks solved.
User avatar
Fabien
Member
Posts: 10
Joined: Fri Mar 09, 2018 4:16 pm

Post by Fabien »

Hi there!

first off, thanks for the all the advices! I got xTIMEcomposer running on Ubuntu 22.04 following this thread and a couple of others.
To sum my steps:

First installed a working version of Java

Code: Select all

sudo apt-get install openjdk-8-jre
sudo apt-get install openjdk-8-jdk
//Check java version
sudo update-alternatives --config java
then unpacked xTIMEcomposer in /opt

Code: Select all

 
sudo tar -xzf xTIMEcomposer-Community_14-Linux64-Installer_Community_14.4.1.tgz -C /opt
cd /opt/XMOS/xTIMEcomposer/Community_14.4.1/xtimecomposer_bin/swtbrowserlibs
 
and deleted the libraires indicated above

Code: Select all

sudo rm libpangoft2-1.0.so.0 
sudo rm libpangocairo-1.0.so.0
and that's basically it! FWIW I already had the tools in my path so I didn't need to run Setenv, but I did run:

Code: Select all

 sudo ./setup_xmos_devices.sh
as bonus points, I also added the xTIMEcomposer icon to my software folder, so I can use the application launcher to start it. You just need to do:

Code: Select all

sudo nano /usr/share/applications/xTIMEcomposer-studio.desktop
and paste this file content:

Code: Select all

[Desktop Entry]
Name=xTIMEcomposer Studio
Comment=xmos C/C++ IDE
Type=Application
Categories=Development;IDE;
Exec=/opt/XMOS/xTIMEcomposer/Community_14.4.1/xtimecomposer
Terminal=false
StartupNotify=true
Icon=/opt/XMOS/xTIMEcomposer/Community_14.4.1/xtimecomposer_bin/icon.xpm
Name[en_US]=xTIMEcomposer Studio
The Icon in the folder is the wrong one but that the only I could find.
Cheers!

Fabien