btcdeb icon indicating copy to clipboard operation
btcdeb copied to clipboard

Unable to build on Windows

Open sfhacker opened this issue 2 years ago • 6 comments

Ciao. I've just come across this project and tried to build it on Windows 10 x64 but got some compilation errors.

In file included from ../functions.h:9, from ../functions.cpp:4: ../kerl/kerl.h:16:10: fatal error: sys/errno.h: No such file or directory 16 | #include <sys/errno.h> | ^~~~~~~~~~~~~ compilation terminated.

Thanks in advance.

sfhacker avatar Apr 02 '22 11:04 sfhacker

What compiler are you trying to build this in?

For Windows, the best option is probably Windows Subsystem for Linux.

kallewoof avatar Apr 04 '22 03:04 kallewoof

Has this project (ever) been tested on different platforms/architectures? Using Virtual Machines (VMs) is easy and cheap! We use GCC 11.2.0 compiler.

Can you fix this issue or propose a workaround? We have never had the need to use Windows Subsystem for Linux.

Cheers.

sfhacker avatar Apr 04 '22 10:04 sfhacker

It's been tested on a lot of platforms, yes. I've personally only ever used WSFL to compile in Windows but will look into using GCC for Windows directly.

You're welcome to contribute a patch to make it work, too, of course. It's open source.

kallewoof avatar Apr 04 '22 11:04 kallewoof

Thanks for your response.

Are you so kind as to run this test: 'test-btcdeb' on Windows and post here the output?

Cheers.

sfhacker avatar Apr 04 '22 12:04 sfhacker

Any news/update? It is OVER a month now and there are several users stuck!

Are you so kind as to run this test: 'test-btcdeb' on Windows and post here the output?

sfhacker avatar May 10 '22 10:05 sfhacker

No news/update. You're welcome to dig into this issue on your end, as you seem to have the tools available to do so. I'm limited on time for the foreseeable future so can't commit to getting GCC running on Windows at the moment.

kallewoof avatar May 11 '22 07:05 kallewoof