-
Notifications
You must be signed in to change notification settings - Fork 267
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
netcdf does not build on Windows with cmake #2580
Comments
Ping |
The problem is that somehow the file libsrc/attr.c got deleted. |
The problem is that if we use
and running it from VS, let it proceed a little further, but not much
|
And, I'm able to build netCDF (same compiler) with VCPKG that apparently applies several patches, so conclusion seems to be that cmake generated make files are broken. |
Let me take a look at this; m4 has long been a requirement, even on Windows, when working with non-release code, but the tagged releases should not be trying to generate the file. In the meantime, what happens if you install gnu m4 on your path? Does that also solve the issue? |
@WardF Just FYI I did have to add m4 to the build dependencies for our conda-forge build of 4.9.1-rc1. |
Good to know. attr.c is not kept in version control, as it's a generated file, with the exception of release branches. But clearly something changed, and I didn't notice it because I have m4 on my Windows dev system. I'll get this straightened up, but installing m4 in the meantime is probably the most straightforward work-around. |
I have (like I said in 1st post) m4 installed. Tried so far 4.8.1, 4.9.0, 4.9.1 and master and same errors for all of them. Only way to build is with vcpkg but I'm not interested in that because I want to control the name of the generated DLL. Some thing that used to be possible (first cmake scripts were derived from the GMT ones were that is configurable) but I suspect was dropped meanwhile. |
Hi, I'm a long time builder with cmake but now that tried to update my version I'm no longer able to build it.
First it asks me to have M4
Why do I have to have M4? This is a Cmake build.
But OK, let's try it. Installed one GNU m4 for windows and first step went till the end. But compiling is all broken. It starts to say
and if I patch that file then there are a bunch of errors like
Seems headers for windows are not well set.
This is with version 4.9.0 but the same happened with master.
The text was updated successfully, but these errors were encountered: