Feedback on build system xmake/xcommon etc

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
BritishCat
Member++
Posts: 21
Joined: Tue Oct 24, 2023 11:16 am

Post by BritishCat »

Ross wrote: Mon Nov 27, 2023 6:58 pm What does xmake VERBOSE=1 give you?

Does your build directory have a bracket in its name?

All of my build directories don't have any brackets. The word in brackets "(develop)"is added itself when I enter the directory sw_usb_audio in command prompt. I don't know why
Work@DESKTOP-QVIAP68 /d/xmos/proj/sw_usb_audio/app_usb_aud_xk_216_mc/build (develop)
$ xmake VERBOSE=1
"C:/Program Files/CMake/bin/cmake.exe" -SD:/XMOS/proj/sw_usb_audio/app_usb_aud_xk_216_mc -BD:/XMOS/proj/sw_usb_audio/app_usb_aud_xk_216_mc/build --check-build-system CMakeFiles/Makefile.cmake 0
"C:/Program Files/CMake/bin/cmake.exe" -E cmake_progress_start D:/XMOS/proj/sw_usb_audio/app_usb_aud_xk_216_mc/build/CMakeFiles D:/XMOS/proj/sw_usb_audio/app_usb_aud_xk_216_mc/build//CMakeFiles/progress.marks
C:/Program Files (x86)/XMOS/XTC/15.2.1/bin/xmake -f CMakeFiles/Makefile2 all
/usr/bin/sh: -c: line 1: syntax error near unexpected token `('
/usr/bin/sh: -c: line 1: `C:/Program Files (x86)/XMOS/XTC/15.2.1/bin/xmake -f CMakeFiles/Makefile2 all'
xmake: *** [all] Error 2
User avatar
BritishCat
Member++
Posts: 21
Joined: Tue Oct 24, 2023 11:16 am

Post by BritishCat »

I've done!!!!! It's working! The deafault inst. XTC tools folder is C:/Program Files (x86)/XMOS/XTC/15.2.1 This (x86) it is a mistake!!! The program is not understand any brakets. For correct operation, you need to install XTС in a folder whose address does not contain symbols.
User avatar
Ross
Verified
XCore Legend
Posts: 1070
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Okay interesting, thanks, I’m sure some other people will have this issue too! Please consider adding an issue on github.
Technical Director @ XMOS. Opinions expressed are my own
User avatar
BritishCat
Member++
Posts: 21
Joined: Tue Oct 24, 2023 11:16 am

Post by BritishCat »

Ross wrote: Tue Nov 28, 2023 12:13 am Please consider adding an issue on github.
https://github.com/xmos/xcommon_cmake/issues/119 Somebody have seen it on this topic and allready added it. The situation becomes better. Now I can deal with customizing the application
User avatar
Ross
Verified
XCore Legend
Posts: 1070
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Thanks for persevering, this early-user feedback is invaluable.
Technical Director @ XMOS. Opinions expressed are my own
User avatar
Ross
Verified
XCore Legend
Posts: 1070
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Just a note to say v1 is was released a few weeks back, available here: https://github.com/xmos/xcommon_cmake/r ... tag/v1.0.0

We have a small number of additions for a 1.1 release and this will be integrated into the next XTC tools install.
Technical Director @ XMOS. Opinions expressed are my own
User avatar
Ross
Verified
XCore Legend
Posts: 1070
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

v1.2 was released this week: https://github.com/xmos/xcommon_cmake/r ... tag/v1.2.0

Please give it a go. On the current scheduling this will be the version that makes it into the next XTC release.
Technical Director @ XMOS. Opinions expressed are my own
User avatar
Ross
Verified
XCore Legend
Posts: 1070
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

xcommon-cmake is now bundled with the new tools release XTC 15.3 available here: https://www.xmos.com/software-tools/

Expect to see apps and software migrate as they are released.
Technical Director @ XMOS. Opinions expressed are my own
User avatar
fabriceo
XCore Addict
Posts: 222
Joined: Mon Jan 08, 2018 4:14 pm

Post by fabriceo »

Hi Ross and team,
just read it, good and very clear. I m a noob with cmake but you made things quite easy, with an approach which is not far from the original xcommon model and looks as powerful, and even a bit more like with "build native".
if I may suggest, would be great to document how to extend this environment with some hooks to give possibility to build host computer software (like for testing usbmixer) or launching actions after successful build (like xflash to generate upgrades, or xrun)
bravo!
User avatar
Ross
Verified
XCore Legend
Posts: 1070
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Thanks for the feedback fabriceo!

Re: native builds, we can look to add more examples.

I don’t think we’ll move all host app examples to use it, it’s more for if you want to run some xcore destined code on a desktop to quickly prove correct functionality - some DSP that might take a long time to run on xsim, for example.
Technical Director @ XMOS. Opinions expressed are my own