by srcmap · 9y ago · 0 comments
Tried built a few opensource apps with VS once a year for the past few years and found that I can't even compile a single Windows open source packages from github, sourceforge after weeks of trying.
The code might claim to be able to build with VS10, VS12. The dependency libraries will need completely different VS version of .xml, .proj, .sln build systems.
I challenge the PM of VS product try to build a few popular MS projs such as python, VLC, or anything in http://opensourcewindows.org/. Document the process of building the app and dependence library. Compare that to the process of try to build that same packages in Mac (with brew) or in Linux.
In Linux, for all the packages I like play with. "./configure && make" handle most of the the build in a few minutes. Even easier on Ubuntu with apt-get source/build commands. Very similar process in Mac.
Even linux kernel, I can build it easily with pretty much the same 1-2 commands for the past 20 years.
Don't get me wrong: configure/make is way more mature but you almost make it sound like nothing works at all with VS/msbuild which is imo often just because people don't really know how to work with it (which in turn might be because of lack of documentation/proper examples/...), or because project maintainers don't care for VS support, and/or because there is no standard dependency managment (yet? cmake does a pretty good job, vcpkg looks promising).
such as python
Wasn't that just 'msbuild path/to/python.sln'? At least for the core, might be different for other modules. But I definitely remember getting a working python.exe just by building the supplied project files.
I often have to run configure multiple times and hunt down the correct version of whatever library it needs before re-running it and finding yet another library that it can not find (it gets even worse if you actually have the library installed but it's not in the search path...)
In Linux, the dependencies are just apt/dnf/yum away. In Windows, you have to build them, including their dependencies. There is no ./configure, no cmake config, it either has VS solution file (if you are lucky, it will even work with your version), or not. If you have the dependency library somewhere, you have to edit that project file tell the VS manually where it is. If you weren't lucky with an existing sln file, it's time to make your own.
Reading README to learn about dependencies and running configure with some flags is fine, compared to that.
That issue is much more complicated than what most FOSS projects deal with.
I agree with you, building a lot of non-Windows stuff on Windows sucks. It's getting better, though.
With libgmp, it looks like you should use http://www.mpir.org/ but I don't know how this works with programs that expect gmp.
R or Julia would have the exact same problems if they cared at all about MSVC.
> I agree with you, building a lot of non-Windows stuff on Windows sucks. It's getting better, though.
I actually didn't say that at all. It's the Microsoft dev tools that suck. GCC works fine.