This repository has been archived by the owner on Dec 8, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not every compiler can do math. Needs a more upstream friendly solution.
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, you want me to submit your changes upstream or you'll do it yourself ?
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If upstream ends up being responsive about those changes feel free to propose them.
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's your compiler ?
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MSYS2/MinGW-w64
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, following what they told me upstream, i changed how we handle this M_PI undef hack, could you try to rebuild and tell me if that works ?
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not work unfortunately.
An alternative solution would be simply using 3.1415926536 instead of M_PI in the first place.
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, best solution would be to not modify the code from "vanilla" fba. What error does it return ?
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/burn/drv/konami/d_mystwarr.cpp: In function 'void K055550_word_write(INT32, UINT16, UINT16)':
src/burn/drv/konami/d_mystwarr.cpp:753:57: error: 'M_PI' was not declared in this scope
angle = (INT32)((atan((double)dy / dx) * 128.0) / M_PI);
^
Makefile.libretro:572: recipe for target 'src/burn/drv/konami/d_mystwarr.o' failed
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please try again ? It seems M_PI undefined could be an issue caused by -std=c++11 compiler option.
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh dear, does FBA require C++11 now?
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mips3 needs c++11, but we can disable it for now since it is still WIP.
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's compiling now, thanks.
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you should think about moving to another compiler, c++11 will probably be required for v0.2.97.36, and your compiler seems to handle c++11 badly.
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd be glad to if we could, but there are no C++11 compilers for some of the platforms we're targeting. PS3 and BlackBerry, for example.
5b25217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll use std=c++11 only for fba-libretro mips3-enabled then, seems like mips3 will be a dynarec only available for x86/x86_64 (and perhaps arm).