-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Attempt to build for Windows #398
Comments
So here is my strategy: technically speaking there should be no reason why I can't compile this for Windows, seeing as it uses pretty much the C standard library, and the only thing getting in the way of me just copying out the source files and compiling them on windows is the annoying build system, so I plan on using x86_64-w64-mingw32-gcc on Ubuntu 20 WSL2 for the cross-compiling. Then, I had to painstakingly figure out where all the variables of a Makefile exist and change each and every one of the tools required into the
And so on and so forth, ... OH YEAH, I also had to disable documentation with -DNODOC, because otherwise it was throwing an error and preventing me from compiling, I guess this is a major problem on Linux..., not being able to build is a bigger fish to fry though, so I'll worry about the documentation later... |
Snag: undefined references to C standard library functionsUnfortunately this is the point at which I was stuck for the last few months: I've tried fiddling with a lot of the settings, but it seems that From my limited knowledge, I assume it is because of the
The full log has been attached for more info. libfsm_build_failure.log |
This is fantastic, thank you. I'd absolutely love to add support for this once we figure out what's needed! About strip, you can pass |
|
I'm just gonna remove symbol stripping. @dhobsd, you win 💜 |
Oh huh. Try passing either |
Snag: We cannot handle .OBJDIR other than .CURDIRAfter being stuck on this for many months, I realised that MSYS2 exists and works wonderfully for compiling many Linux projects on Windows. So I proceeded to install
So I was curious to see what OBJDIR and CURDIR actually is,
Where |
Hiya, since I'm really interested in finite automata, and this is one of the few FSM libraries in C/C++ that seem to have the feature I want without me having to code it from scratch (regex -> minimized DFA). However, I use Windows and I'd really prefer to have a cross-platform FSM library and would like to contribute towards making this a reality.
I have no prior experience in build systems, so the reason I'm making this post is to
Here's hoping for the best
The text was updated successfully, but these errors were encountered: