Enhancement: Compile calc under Windows #66
Replies: 4 comments 1 reply
-
Hello @Leoongithub, Thank you for your bug report. While the maintainers of calc do not have a Window's license, we are working with someone within Microsoft (on occasion when their scheduled permits) to try and modify calc to be able to be compiled under Windows 11 using Microsoft's publicly available development tools. We will look at what you have provided above as well. If we can add the proper Again, thanks for your input. We will keep this open and, if you don't mind, we would add you to try things from time to time. We will also give consideration to your idea of installing a zip file for windows calc as well. |
Beta Was this translation helpful? Give feedback.
-
Hello @Leoongithub, We ask that you edit the compiling with Cygwin section of We suggest that you mention the version of Cygwin that you used, as well as a link to where a Windows can obtain it. We suggest that you indicate the version of Windows that you used as well. And of course. the command lines you used. Try to be tutorial as you can, giving a Windows user a recipe for how to compile calc. We will, in turn, add your zip file to the distribution and reference the compiling with Cygwin section of BTW: We are working on calc version 2.14.2.0 .. so we might want to include a zip file for that release when it comes out. |
Beta Was this translation helpful? Give feedback.
-
Hello @Leoongithub .. we expanded on your pr with commit 1b0e6c4. We have not figured out the best way, if needed, to integrate things like your zip file into the calc repo. One option is for you to create your own calc-cygwin repo where you could build calc under Cygwin We are open to other suggestions. |
Beta Was this translation helpful? Give feedback.
-
We recommend using Cygwin Msys2 to build calc under Windows. The file We will close this discussion with our thanks. |
Beta Was this translation helpful? Give feedback.
-
All I can find about compiling calc under Windows is many years ago. Although calc is available under Windows via WSL, I think an exe file is still useful. I've also tried compiling calc without Cygwin, MSYS, etc., but it never worked. Here are some notes about this.
In short, the easiest way to compile calc is using Cygwin as stated in README.WINDOWS. But use
make all target=simple
instead ofmake all target=Cygwin
, or directly use Makefile.simple instead of Makefile as HOWTO.INSTALL said. When using the "target=Cygwin" parameter, I get the following error.I've tried editing this file to remove the error, but there are still other files that don't compile. If you use the
target=simple
parameter, Cygwin will usecc
instead ofx86_64-w64-mingw32-gcc
. I'm not sure about difference between these. Here is information for these two programs.I'd love to try some other ways to build calc under Windows if anyone can provide relevant information and help.
For those who want to use calc under Windows but don't have the environment, you can try to download the executable file I compiled. This zip file includes the calc executable program, the dll files needed to run it, headers, libraries, help files and some scripts. It should be noted that the help function cannot be used outside the Cygwin environment. If you just want calc itself, there are only 4 necessary files: calc.exe, cygwin1.dll, cygreadline7.dll, cygncursesw-10.dll.
calc-2.14.1.2.zip
2023.2.15 update:
calc-2.14.1.3.zip
2023.3.21 update:
calc-2.14.1.5.zip
2023.7.4 update:
calc-2.14.1.6.zip
2023.8.13 update:
calc-2.14.3.0.zip
Beta Was this translation helpful? Give feedback.
All reactions