Comments (8)
You realize, I could apply this patch but I won't be able to test it.
Let me just ask, is it working for you?
Dan
from dblclockfft.
Try the core generator now. As far as I can tell, this should (now) be fixed.
Dan
from dblclockfft.
Sorry, it does not work for me like that. The current code produces a lot of errors, and it does not seem to go into the IF clause at all. However, the code compiles when I remove the #elif defined(__MINGW32__)
clause, and put the code
#ifdef __MINGW32__
#include <direct.h> // mkdir
#define mkdir(A,B) _mkdir(A)
#define lstat(p,s) stat(p,s)
#endif
before the #ifdef _MSC_VER in line 67
Please note that there is a comment about "Macintosh environment" in your code.
If this refers to MINGW-w64/MSYS2, this would not be correct. MINGW-w64/MSYS2 is a Unix-style open source development platform for Windows, which is popular with the open hardware crowd.
To answer to your first question, yes, adding this code removes all issues and lets me run the generator.
from dblclockfft.
This isn't for the Mac? My bad then.
If the "elif" isn't getting acted on, then is the prior "ifdef" what's getting run or the one following? If the one following, then ... is that because the "__MINGW32__" macro I used isn't defined?
The reason why I rewrote the code from what you gave me is because I needed to. I've now got three separate operating environments, all different, all of which need to be supported, and no two of which should ever be true together. Hence the need for the 3-way "if" statement.
Would it work if the "ifdef _MSC_VER" was adjusted to "#if defined(_MSC_VER)"? That should be valid C preprocessor syntax--although what's there should be valid syntax too. I'd be quite curious to know why it isn't running for you.
Dan
from dblclockfft.
Turns out the problem is not with the preprocessor syntax.
The problem is that MINGW is a Linux-style environment, and it requires the includes you included for Linux in the "#else" part.
The following compiles:
#elif defined(__MINGW32__)
// MinGW - Minimalist GNU for Windows - also MinGW-w64/MSYS2
// {{{
#include <direct.h> // mkdir
#define mkdir(A,B) _mkdir(A)
#define lstat(p,s) stat(p,s)
#include <unistd.h> // Defines the R_OK/W_OK/etc. macros
#include <sys/stat.h>
// }}}
#else
from dblclockfft.
Ok, patched. Please give it a test and tell me if it works. (It should ...)
Dan
from dblclockfft.
Yes, I can confirm that the current version compiles without problems. Thank you
from dblclockfft.
Awesome! Thank you for your help. I'm sure others using MinGW thank you as well.
Closing this issue.
Dan
from dblclockfft.
Related Issues (13)
- Don't care output HOT 7
- Request to add a License to the project HOT 2
- Return value of `printf`.
- How would I use this FFT for my 20khz sampled audio signal? HOT 3
- Output scaling factor HOT 2
- Timing optimization HOT 3
- longmpy declared as a wire instead of a reg in hwbfly.v HOT 1
- unexpected output HOT 3
- Could I just use the .v file in rtl to build my core? HOT 2
- Support FP32 format HOT 1
- X propagation : 4096 pt FFT HOT 1
- Undefined behaviour of o_result HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dblclockfft.