-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Build script error on Windows #85
Comments
The build script assumes that if there is a 'build' If the build directory is created but (e.g.) cmake So, I suggest you try the following:
nmake works just fine on our appveyor.com builds. If this works, then I think all we need is a more |
Yes it works! In this case, we may create the By the way, in Powershell, we should run |
Previously, when cmake was missing, the build dir would be created anyway, and subsequent attempts (even with cmake) would fail, because cmake would not be run. Depending on build/CMakeFiles is more robust -- this won't be created unless cmake is run. Partially addresses #85.
I have made a small change which would have prevented the A more ambitious change would be to explicitly check |
@bohrshaw (and @jgm actually too ;-)
I had to "massage" the sources a bit so that a pre-C99, dumb compiler like VC 9.0 can grok them, but otherwise (as far as I can remember) the translator itself is not changed. I have merged the jgm/cmark repository into my clone just two hours ago, so the CommonMark reference implementation parts should be up to date ... The
These are created from macros REPOURL and GITIDENT, defined in the header files |
@tin-pot I'd rather stick with the current cmake build system. It should be capable of handling MSVC, and is regularly tested on Windows. If it's not able to handle certain older versions, let us know the details and we can improve the build system. |
Well, I did not intend to replace the current build system using If I remember correctly, I didn't even try to use the build system: Clobbering together some project files to build a "simple" command-line program seemed easier to me. And I had the wish to place the parser in a (static) library, which it isn't in the current build process (?) -- in order to build multiple tools using the same parser. So I can't really say much about how well or bad the The little stumbling blocks in the sources itself (regarding pre-C99 compilers) have been ironed out, thanks to your help, and that is what is important for me. (Isn't |
Yes, cmake will generate VS project files.
and see what it gives you. I haven't tried this myself, +++ Martin Hofmann [Oct 18 15 14:17 ]:
|
Thanks, I'll try to use the I'll come back to you if I run into problems, ok? |
I couldn't build with
.\nmake.bat
on Windows with a probably proper build environment. I asked for help at http://talk.commonmark.org/t/help-building-cmark-on-windows/1881 and @jgm suggested me to report an issue instead.I was able to built it successfully with the following steps:
I made some edits to "Makefile.nmake".
I ran
.\nmake.bat
and got:I supposed at least the build files are generated successfully.
I then reverted the change to "Makefile.nmake" and ran
.\nmake.bat
again. This time it succeeded.So it seems the build script is not robust or not correct.
The text was updated successfully, but these errors were encountered: