-
Notifications
You must be signed in to change notification settings - Fork 99
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
fixed x86_64-w64-mingw32-ar not found for windows #99
base: master
Are you sure you want to change the base?
Conversation
Since |
I know nothing about |
Sorry if it wasn’t clear enough, I am talking about this part of the build. This is only a suggestion as zozin should decide about this. |
Ah, gotcha! So, I checked out my installation folder and found stuff like gcc and g++, both with their original names and some with a prefix. But, you know, not all compilers are created equal, and I don't have the resources to test them all. And honestly, I'm not an use who uses or have used all compilers out there. So, fixing it for mingw might not solve the issue for other compilers. Based on my research, it seems like this might be a mingw, Windows-specific problem. So, I'm using a mingw flag to switch to just using ar when it detects a mingw on windows(asuming the script is only used when only using mingw). Otherwise, it'll go with the prefixed one. Hope that makes sense from my end |
I understand. I was just talking about the possibility of this being decided at compile time when using nob on a windows host instead of runtime, similar to how prefixed or unprefixed |
Yeah, I also made sure that if it detects a Windows host, it'll use the unprefixed version; otherwise, for POSIX or others, it sticks to the normal version. This shouldn't cause any problems with other targets. Now I understand your initial message, that the mingw script isn't just for Windows, so I need to be careful when writing the code to consider all platforms. |
I apologize if my original message wasn’t as clear as I thought. Since mingw runs on pretty much everything this is why this script is also intended for cross compiling. In fact with the help of wine, this is how zozin builds and tests musializer on windows in streams. |
Alright, sounds good! Hopefully, this last commit (ignoring the merge commit) has patched up all the loopholes in my script.👍 |
And also add a UI button to cancel the rendering.
It's failing with "call to undeclared function 'kill'". So it might be wanting the inclusion of signal.h.
It lets the compiler to catch the moment when we modified the signatures of the external functions.
Remove duplicates of external deps from raylib
Factor out everything related to the buidl to src_build/ folder
Factor out src_build/configurer.c
Since we bundle all the resources with the executable by default, this is no longer a concern.
We do not promote the languages with fishy marketing tactics that involve creating a custom building tool and shoving it everywhere even in the projects that have nothing to do with the language.
Closes #119 |
Can I by any chance help to fix the merge conflict 🥲 |
I think it should be as simple as accepting the deletion and backporting it to the file inside src_build |
Please elaborate I did not get it |
Just rebase. You probably ignore the rest of the changes and modify |
If you still don’t get it forget it. I’ll just open a new PR. |
Ok I will do it tomorrow. |
I hope this will work |
As I asked in #120, I think In any case I'd advice to rebase this in order to fixup the number of commits. |
No that flag is only defined if compiled from windows host. |
So I guess my misconception stems from me wrongly using For the rebase I don't know, it's showing a big diff for what on your fork looks like 7 commits. |
|
Sorry if I was unclear but the _WIN32 is not defined in linux it's only define in windows. |
My doubt was about the host not being right. When I cross build from In any case, when doing this, the check may not have the intended behaviour since That's what I meant, and it may not be an issue at all. |
But you can’t use the build tool if it was compiled for another operating system. You should use the compiler for the system you intend to use nob on. |
Thanks, I get it now! :) |
While runing nob on my windows machine it fails to find "x86_64-w64-mingw32-ar" and when i tried to look into the problem i found many mingw installation especially potable ones have "ar" is place of "x86_64-w64-mingw32-ar".It fails to do its stuff for this program to be in different names.
I added a function
command_exists(const char *command)
to cheack if x86_64-w64-mingw32-ar exists in as a executable to nob, if it does not then tuses ar as its archiver.