Closed ed-xmos closed 2 months ago
There is bug18770 in XTC 15.2.1 (and earlier) which means this will never work - xcore.ai apps cannot link static libraries using xcommon.
This is fixed in XTC 15.3. With 15.3.1002 I was able to build app_usb_audio_awe
using xmake. Here is my module_build_info
file:
VERSION = 3.0.1
DEPENDENT_MODULES =
OPTIONAL_HEADERS += awe_conf.h
LIBRARIES = _awe # archive file is lib/xs3a/lib_awe.a
PREBUILT_LIBRARIES_ONLY = 1
EXPORT_SOURCE_DIRS = api src src/include_internal
INCLUDE_DIRS = $(EXPORT_SOURCE_DIRS)
It might be possible to set a linker flag in the application's Makefile to solve this, but I don't think we should be working around this bug.
There is bug18770 in XTC 15.2.1 (and earlier) which means this will never work - xcore.ai apps cannot link static libraries using xcommon.
This is fixed in XTC 15.3. With 15.3.1002 I was able to build
app_usb_audio_awe
using xmake. Here is mymodule_build_info
file:VERSION = 3.0.1 DEPENDENT_MODULES = OPTIONAL_HEADERS += awe_conf.h LIBRARIES = _awe # archive file is lib/xs3a/lib_awe.a PREBUILT_LIBRARIES_ONLY = 1 EXPORT_SOURCE_DIRS = api src src/include_internal INCLUDE_DIRS = $(EXPORT_SOURCE_DIRS)
It might be possible to set a linker flag in the application's Makefile to solve this, but I don't think we should be working around this bug.
Thanks Daniel - this is why I spent so long trying to solve it..
I'm guessing @henkmuller must have been using a modified xcommon or a hack to work around (I noticed the .a is in the lib/xs1b directory also)
No longer relevant
To support old build system on top of xcommon cmake