Gericom / GBARunner3

182 stars 24 forks source link

Unclear how to compile and get the .nds #148

Open speck1234 opened 3 months ago

speck1234 commented 3 months ago

Instuctions on TwilightMenu++ page tell you to compile GBARunner3 and get the resulting .nds but there is no makefile and ZERO documentation on how to compile and what are the steps to do it

VeaNika commented 3 months ago

From the Discord server pinned messages:

How to compile GBARunner3:

To run it, you need:

You can check the current status on the compatibility list here (contributors are welcome): https://docs.google.com/spreadsheets/d/1PTf9kW7L3MTIUU5WXvOnvSLTmgNG4K-CzDNe2U8Rd6Y/edit?usp=sharing

speck1234 commented 3 months ago

All was going well until the last part. The errors:

C:/devkitPro/devkitARM/arm-none-eabi/include/regex.h:99:45: error: expected primary-expression befor e 'restrict' 99 | size_t, regmatch_t [restrict], int); | ^~~~~~ C:/devkitPro/devkitARM/arm-none-eabi/include/regex.h:99:45: error: expected ']' before 'restrict' 99 | size_t, regmatch_t [restrict], int); | ^~~~~~ | ] C:/devkitPro/devkitARM/arm-none-eabi/include/regex.h:99:45: error: expected ')' before 'restrict' 99 | size_t, regmatch_t [restrict], int); | ^~~~~~ | ) C:/devkitPro/devkitARM/arm-none-eabi/include/regex.h:98:16: note: to match this '(' 98 | int regexec(const regex_t __restrict, const char restrict, | ^ C:/devkitPro/devkitARM/arm-none-eabi/include/regex.h:99:55: error: expected initializer before ']' t oken 99 | size_t, regmatch_t [restrict], int); | ^ C:/Users/jorda/GBARunner3/code/test/arm9/source/main.cpp: In function 'void testMain(int, char)': C:/Users/jorda/GBARunner3/code/test/arm9/source/main.cpp:43:18: warning: ignoring return value of 'i nt RUN_ALL_TESTS()' declared with attribute 'warn_unused_result' [-Wunused-result] 43 | RUN_ALL_TESTS(); | ~~~~~^~ make[3]: ** [/opt/devkitpro/devkitARM/base_rules:34: main.o] Error 1 make[2]: [Makefile:129: build] Error 2 make[2]: Leaving directory '/home/jorda/GBARunner3/code/test/arm9' make[1]: [Makefile:35: checkarm9] Error 2 make[1]: Leaving directory '/home/jorda/GBARunner3/code/test' make: [Makefile:30: checktest] Error 2

I continued to move on despite the errors. I followed the directions and went to start a GBA ROM and it worked.

speck1234 commented 3 months ago

Matter of fact, games run a lot better than before. I like it but it would have been easier to release a .nds for those that don't have any experience with a command line.

thanone2 commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

reminon commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

Add "#include " without quotes to the includes section in GBARunner3\code\core\arm9\source\Fat\ff.c

Dartz150 commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

Is this only appearing as a warning? If so you can just ignore it for now and let the compiler to continue.

thanone2 commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

Is this only appearing as a warning? If so you can just ignore it for now and let the compiler to continue.

No, i couldn't skip it. It just had the option to close the terminal

Dartz150 commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

Is this only appearing as a warning? If so you can just ignore it for now and let the compiler to continue.

No, i couldn't skip it. It just had the option to close the terminal

Did you install the latest DKP version? on what platform are you trying to build GBARunner3?

thanone2 commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

Is this only appearing as a warning? If so you can just ignore it for now and let the compiler to continue.

No, i couldn't skip it. It just had the option to close the terminal

Did you install the latest DKP version? on what platform are you trying to build GBARunner3?

Dpk? Windows 11.

DonBrant commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

Add "#include " without quotes to the includes section in GBARunner3\code\core\arm9\source\Fat\ff.c

This was the fix for me for this same issue. Thanks!

Dartz150 commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

Is this only appearing as a warning? If so you can just ignore it for now and let the compiler to continue.

No, i couldn't skip it. It just had the option to close the terminal

Did you install the latest DKP version? on what platform are you trying to build GBARunner3?

Dpk? Windows 11.

DevKitPro. Just tested on my side and I'm able to fully compile without any issues though.

thanone2 commented 1 month ago

hi! I'm getting this error: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 684 | memset(dst, val, cnt); | ^~ can anyone help? or @speck1234 could you send your nds file?

Is this only appearing as a warning? If so you can just ignore it for now and let the compiler to continue.

No, i couldn't skip it. It just had the option to close the terminal

Did you install the latest DKP version? on what platform are you trying to build GBARunner3?

Dpk? Windows 11.

DevKitPro. Just tested on my side and I'm able to fully compile without any issues though.

Oh, ok i had that installed (i had given up yesterday)