-
Notifications
You must be signed in to change notification settings - Fork 56
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
Problems building Re with MSVC toolchain under Windows #68
Comments
@Drup why does oasis try to install |
Which is why it says there is nothing to install, I guess ? I'm not really sure. It's not the issue anyway. |
Oh I see, that's just a warning. |
I tried again installing Re on a fresh build environment.
However, the need for adminstrator privileges is strange: The privileges are required, as during the installation process, an attempt is made to create a directory "re" within Windows' "Program Files (x86)" folder. When executed with Administrator privileges, this succeeds. As a result, the installation process copies a folder hierarchy "C:\Program Files (x86)\re\share\doc$pkg_name\api" and a long list of HTML documentation files of the Re API. This behavior is rather strange and, I guess, unintended. At least, it impairs the installation process on Windows systems. Any suggestions? I am not even sure, if the last bug is related to Re, or rather an issue of the underlying OASIS... Best regards |
Can you solve this issue using the The installation of the documentation is on purpose, and the default directory is up to OASIS indeed. I have no idea about |
When configuring a (standard) build of Re on Windows, it says:
The directory "C:\Program Files (x86)\re" occurs as the path for storing "architecture-independent files". The path can be changed by providing a Providing an alternative path with |
Good, should something be changed in the doc ? The opam package uses the |
I looked more closely into the initial (and a little bit more severe) problem of the stale "setup.obj" file. A short remark about setting the --prefix option when building on Windows might be helpful to others. |
@martin-neuhaeusser Would you mind submitting a PR for the remark? I don't think any of the maintainers use windows so the issue is unlikely to get resolved otherwise. |
Dear all,
when building Re with OCaml 4.02.2 under Windows (MSVC toolchain used under Cygwin), the first build attempt fails because a file "setup.obj" is created and not removed afterwards. I guess, this is due to the *.obj extension produced by the MSVC compiler.
If one removes "setup.obj" after the build failed and starts again, the compile succeeds.
Installing with "make install" succeeds in installing the library in findlib, but fails afterwards with the following message:
Finally, the INSTALL file mentions the possibility to build with "make opt", which seems to not exist as a build target.
Best regards
Martin
The text was updated successfully, but these errors were encountered: