rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

Cannot build rt-thread for raspberry pi 4 OS 32 bit

Open DerrickLau opened this issue 2 years ago • 4 comments

scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build CC build\applications\main.o In file included from C:\Derrick\rt-thread\20231011_rt-thread-master\rt-thread-master\components\drivers\include/rtdevice.h:82, from applications\main.c:12: C:\Derrick\rt-thread\20231011_rt-thread-master\rt-thread-master\components\drivers\include/drivers/mmcsd_core.h:253:61: error: unknown type name 'uint8_t'; did you mean 'wint_t'? 253 | rt_int32_t read_lba(struct rt_mmcsd_card *card, size_t lba, uint8_t *buffer, size_t count); | ^~~~~~~ | wint_t scons: *** [build\applications\main.o] Error 1 scons: building terminated because of errors.

I'm building on Windows 10. Using arm-elf-toolchain-10.3.

DerrickLau avatar Nov 25 '23 22:11 DerrickLau

Could you try to update rtconfig.h with menuconfig? I have tried it on Linux and it is OK.

#8311

BernardXiong avatar Nov 29 '23 01:11 BernardXiong

I went to menuconfig and turned on ARCH_TYPES, plus USB device features, but that has given me more compile errors. What was I supposed to do?

DerrickLau avatar Dec 03 '23 23:12 DerrickLau

Sorry...I just saw the link to the issue number in your comment. Did you want me to download the latest source code first?

DerrickLau avatar Dec 03 '23 23:12 DerrickLau

Sorry...I just saw the link to the issue number in your comment. Did you want me to download the latest source code first?

Yes, you can try it with the latest version. And it's better to gradually open more features to try it.

BernardXiong avatar Dec 05 '23 08:12 BernardXiong