-
Notifications
You must be signed in to change notification settings - Fork 20
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
Compiling error on windows 10 #77
Comments
Thanks for letting me know! It's definitely possible. It could take a few weeks for me to have the time to test a fix for this issue due to other commitments. In the meantime, please try this quick workaround and let me know if you run in to other problems with building detox. If you're not familiar with how to use patch, just let me know. detox-workaround-issue-77.patch.txt Thanks! |
A fix for this issue was released in v1.4.3. I set up msys2 on a testing box, but I was unable to reproduce the stat issues on this testing box using v1.4.2. So, if this problem is still happening for you in v1.4.3, please let me know and we'll debug it further. Thanks! |
Hello, Sorry for answeering late. I tried again with windows 10 / msys2 (both updated) : # Open an msys2 shell (not mingw64)
# Get latest zip archive
./configure --prefix=/usr/local
make But I run into this issue : detox.c: In function 'main':
detox.c:97:19: error: implicit declaration of function 'lstat'; did you mean 'wstat'? [-Werror=implicit-function-declaration]
97 | err = lstat(file_walk, &stat_info);
| ^~~~~
| wstat
cc1.exe: all warnings being treated as errors I fixed this by removing
Some comments are in french, but mainly there seem to have an issue at linking stage. Do you run into theses troubles ? Regards |
Thanks for the update. No worries; I can read some of the messages in French, and Google Translate will fill in the rest. I've seen the first error; I think it was caused by a missing dependency. I'll see if I can track it down. The second issue, with I'll look in to this soon. |
Sorry for the delay. I no longer have a machine I can test MSYS2 on, but I think I can start to work on this. MSYS2 doesn't have So, I need to update autoconf to check to see if lstat() is available, and if not, use stat instead. That part is easy, but I also need to confirm that it works as expected (e.g. detox reviews the link's name, not the linked file's name). |
Hello,
I am trying to get
detox
(1.4.2) working on windows 10 through the msys2/mingw64 (latest) tool chain.Currently, I run into the compiling error :
It seems that the
stat
structure on win32 does not have the same attributes than in GNU/linux.Probably a quick workaround would be to wrap this error within preprocessing directives.
Let me know if this is possible and when you can do it. I will try again then
Regards
The text was updated successfully, but these errors were encountered: