Build failing on Window but not on Linux

Discussions about USB Audio on XMOS devices
maxter
Member++
Posts: 31
Joined: Fri Jun 14, 2024 9:55 am

Build failing on Window but not on Linux

Post by maxter »

I am not sure this is the right place for this, but since it happens in an file from the USB Audio framework, I'm putting it here.

I am having a weird error while building my application: if I run the XTC tools (xmake) on Linux it all builds fine, if I run it on WIndows (and MacOS) it fails with these errors in xua_audiohub

Code: Select all

D:/code/xmos-firmware/usbaudio-9.0.0/lib_xua/lib_xua/src/core/audiohub/xua_audiohub.xc:686:5: error: unknown function identifier `AudioHwInit' (possibly missing prototype?)
    AudioHwInit();
    ^
D:/code/xmos-firmware/usbaudio-9.0.0/lib_xua/lib_xua/src/core/audiohub/xua_audiohub.xc:800:13: error: unknown function identifier `AudioHwConfig_Mute' (possibly missing prototype?)
            AudioHwConfig_Mute();
            ^
D:/code/xmos-firmware/usbaudio-9.0.0/lib_xua/lib_xua/src/core/audiohub/xua_audiohub.xc:803:13: error: unknown function identifier `AudioHwConfig' (possibly missing prototype?)
            AudioHwConfig(curFreq, mClk, dsdMode, curSamRes_DAC, curSamRes_ADC);
            ^
D:/code/xmos-firmware/usbaudio-9.0.0/lib_xua/lib_xua/src/core/audiohub/xua_audiohub.xc:814:13: error: unknown function identifier `AudioHwConfig_UnMute' (possibly missing prototype?)
            AudioHwConfig_UnMute();
           
Any idea why and how to fix it?
This happens with a clean, freshly fetched, version of the USB audio framework and XTC tool 15.3.1 (same configuration for all 3 OSes).
User avatar
upav
Verified
Member++
Posts: 20
Joined: Wed May 22, 2024 3:30 pm

Post by upav »

Hey maxter,

Can you give us more details of what application you're trying to build?
Also, are you using xcommon_cmake or just xmake?

These functions are supposed to be implemented by the user in the application, we tend to put them in the extension/ folder.
If you're trying to build an example in either lib_xua or sw_usb_audio these APIs should be implemented in application folders and picked up by a build system

Cheeers
Pavel
xmos software engineer