lupyuen / lupyuen.github.io

Lup Yuen's Articles and Resume
https://lupyuen.github.io
Apache License 2.0
74 stars 14 forks source link

Fix hello example directory #10

Closed gniezen closed 1 year ago

lupyuen commented 1 year ago

Thanks for the PR :-) Sorry I missed the incorrect path.

Oops I just realised that this will fail because *hello.o doesn't exist. Lemme fix this..

cp hello_zig_main.o $HOME/nuttx/apps/examples/hello_zig/*hello.o
lupyuen commented 1 year ago

Hi @gniezen sorry here's the fix for the missing Zig Object Files...

We need two Temporary Fixes to the NuttX Makefiles so that the Zig Object Files will be generated...

We need to remove hello_main from hello_zig_main.zig...

https://github.com/lupyuen/zig-bl602-nuttx/commit/b162d7155c9a0eced02fc5ac7d33bca9087131ce

All references to *hello.o should be changed to *hello_zig.o...

https://github.com/lupyuen/lupyuen.github.io/commit/7af2bd8bfcc7a0f47e28ec6c0d99aeb247d4264b

Lemme know there are problems. Thanks :-)

gniezen commented 1 year ago

No problem, I really enjoyed your tutorial!