xta: error: java version could not be determined Topic is solved

Discussions about USB Audio on XMOS devices
Henry
Member
Posts: 15
Joined: Mon Jun 03, 2024 10:19 am

xta: error: java version could not be determined

Post by Henry »

Hi friends,

While adding UART module on sw_usb_audio_9_1_0, I get following errors:

Code: Select all

$ xmake
Building configuration 1AMi2o2xxxxxx
Checking build modules
xta: error: java version could not be determined
C:/Program Files (x86)/XMOS/XTC/15.2.1/build/xcommon/module_xcommon/build/../build/Makefile.common1:565: *** Missing build modules. Cannot continue.  Stop.
xmake[1]: *** [check_module_deps] Error 2
xmake: *** [1AMi2o2xxxxxx.all] Error 2
Comparing with the original code sw_usb_audio_9_1_0 , the changes are:
1. Download latest lib_uart-3.2.0 and copy to sw_usb_audio_9_1_0 root folder.
And just like the other modules, I rename lib_uart-3.2.0 to lib_uart
2. Add lib_uart in Makefile:
USED_MODULES = lib_xua lib_i2c lib_uart lib_board_support

What else that I need to check?
Thanks
View Solution
User avatar
Ross
Verified
XCore Legend
Posts: 1266
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

You're using the "old" xcommon based build system - under the hood this used a java program to grab dependencies from xmos.com.

My advice would to move to the "new" xcommon-cmake system - this grabs dependencies using cmake (https://www.xmos.com/documentation/XM-015090-PC/html/)

Support for the original xcommon is being deprecated with everything moving to the cmake based system.
Technical Director @ XMOS. Opinions expressed are my own