a-v-s / ucdev

BSCP Makefiles and scripts for Embedded development
https://a-v-s.github.io/ucdev/
5 stars 0 forks source link

Missing library ... ??? #1

Open RandoSY opened 4 years ago

RandoSY commented 4 years ago

Hi!

Really enjoying your repo, building from bash shell Windows 10 I see this error.

I guess I'm asking to you have any guidance on how to setup the rest of your build environment?

Thanks!


DEBUG: BUILD_MODE IN OPT           DEBUG
DEBUG: OPT IN OPT                          -O0 -g3
DEBUG: ASM_SOURCES          ../../../ext/GD32F10x_Firmware_Library/Firmware/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_md.s
mkdir debug
make[1]: *** No rule to make target 'debug/libgd32f10x_md.a', needed by 'all'.  Stop.
make[1]: Leaving directory '/c/Users/randa/Desktop/STM32F103C8 Diagnostics/STM32USB/ucdev-master/build/staticlib/gd32f1'
make: *** [../../../build/make/bld.mk:62: ../../../build/staticlib/gd32f1/debug/libgd32f10x_md.a] Error 2
a-v-s commented 4 years ago

I haven't tried building on Windows. But to make sure, did you initialise and update the submodules, or clone the repository recursive? Otherwise all the vendor libraries are not available.

git clone --recursive https://github.com/a-v-s/ucdev will get every vendor library I've listed.

If you only want the GD32F10x library, you can do

git submodule init ext/GD32F10x_Firmware_Library
git submodule update ext/GD32F10x_Firmware_Library

But I might be referencing to other libraries as well, such as ext/CMSIS_5