RT-Thread / rt-thread

RT-Thread is an open source IoT real-time operating system (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.11k stars 4.93k forks source link

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

Open DerrickLau opened 8 months ago

DerrickLau commented 8 months ago

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.

BernardXiong commented 8 months ago

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

8311

DerrickLau commented 7 months ago

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 commented 7 months ago

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

BernardXiong commented 7 months ago

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.