Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several error's when i try make sgdk #40

Closed
RayMega4Ever opened this issue Aug 15, 2023 · 2 comments
Closed

Several error's when i try make sgdk #40

RayMega4Ever opened this issue Aug 15, 2023 · 2 comments

Comments

@RayMega4Ever
Copy link

RayMega4Ever commented Aug 15, 2023

When I tried to execute the 'make sgdk' command, it returned several errors while attempting to compile the 'bmp.c' file.

src/bmp.c:84:16: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘BMP_init’
84 | void NO_INLINE BMP_init(u16 double_buffer, VDPPlane plane, u16 palette, u16 priority)
| ^~~~~~~~
src/bmp.c:113:16: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘BMP_end’
113 | void NO_INLINE BMP_end()
| ^~~~~~~
src/bmp.c:156:16: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘BMP_reset’
156 | void NO_INLINE BMP_reset()
| ^~~~~~~~~
src/bmp.c:264:15: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘BMP_flip’
264 | u16 NO_INLINE BMP_flip(u16 async)
| ^~~~~~~~
src/bmp.c:1072:16: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘BMP_drawBitmapData’
1072 | void NO_INLINE BMP_drawBitmapData(const u8 *image, u16 x, u16 y, u16 w, u16 h, u32 pitch)
| ^~~~~~~~~~~~~~~~~~
src/bmp.c:1101:16: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘BMP_drawBitmap’
1101 | bool NO_INLINE BMP_drawBitmap(const Bitmap *bitmap, u16 x, u16 y, bool loadpal)
| ^~~~~~~~~~~~~~
src/bmp.c:1130:16: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘BMP_drawBitmapScaled’
1130 | bool NO_INLINE BMP_drawBitmapScaled(const Bitmap *bitmap, u16 x, u16 y, u16 w, u16 h, bool loadpal)
| ^~~~~~~~~~~~~~~~~~~~
src/bmp.c:1161:16: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘BMP_scale’
1161 | void NO_INLINE BMP_scale(const u8 *src_buf, u16 src_wb, u16 src_h, u16 src_pitch, u8 *dst_buf, u16 dst_wb, u16 dst_h, u16 dst_pitch)
| ^~~~~~~~~
src/bmp.c:1262:23: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘initTilemap’
1262 | static void NO_INLINE initTilemap(u16 index)
| ^~~~~~~~~~~
src/bmp.c:1405:22: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘doBlit’
1405 | static u16 NO_INLINE doBlit()

andwn added a commit that referenced this issue Aug 15, 2023
@andwn
Copy link
Owner

andwn commented Aug 15, 2023

Looks like a recent SGDK commit added a new NO_INLINE define in config.h. I removed my outdated config.h and it seems to be fixed now. Try pulling and trying again.

@RayMega4Ever
Copy link
Author

Hi! Problem solved! Thank you very much for the correction, and thank you for the whole project, the possibility of developing for mega drive and 32x games on linux has made a big difference in my current project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants