Skip to content
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

Does not build on Mac #90

Open
bgulanowski opened this issue Aug 16, 2022 · 3 comments
Open

Does not build on Mac #90

bgulanowski opened this issue Aug 16, 2022 · 3 comments

Comments

@bgulanowski
Copy link

.Net is cross platform. Visual Studio has existed on macOS for years, and is slowing gaining more features.

However, these tools do not, and probably never will, exist on macOS:

  • vbscript
  • command.com/exe
  • wscript
  • cscript

It seems like, because of libtiff's dependencies on Windows-specific scripting tools, it cannot be built on macOS. I assume it also cannot be built on Linux, either with MSBuild or mono/xbuild.

If there is a way to make it work, please provide documentation.

@bgulanowski bgulanowski changed the title Does not build with on Mac Does not build on Mac Aug 16, 2022
@bgulanowski
Copy link
Author

The PreBuildEvent step that updates the version number based on the number of git commits seems straightforward. I can temporarily disable it and do the work manually.

But the PostBuildEvent that replaces strings in the target xml file is beyond my MSBuild knowledge to replicate. I mean, I can execute a manual find/replace using any of a number of tools, but I have no idea what the purpose of that step is, and how to verify if the results were correct.

@bgulanowski
Copy link
Author

I am hoping to use the code in a Unity project. I think I will copy the source files I need directly into my Unity project, instead of trying to build a library.

@Bobrovsky
Copy link
Member

We do not support anything except Windows as a build environment. You or anyone else is encouraged to fix this and provide a pull request.

The PostBuildEvent makes changes to XML documentation output. Without the changes the XML documentation file can not be properly processed by Sandcastle Help File Builder tool. You could probably disable the PostBuildEvent event if you are not going to build the documentation.

The recommended approach, however, is to use a pre-built NuGet in your project. You can also directly include the code of the library in your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants