Skip to content

Compiling under MacOS X does not work #557

@dragan

Description

@dragan

I tried to compile under MacOS X and fix the problems, but there was too many and I just decided to stop and report the issue and some insight of what I've done so far. Basically, I got it compiling, but tests fail or cause mono to crash. To compile, make these changes, by editing your existing *nix toolchain (build.libgit2sharp.sh & CI-build.msbuild) or create new ones just for mac:

  1. You need to use DYLD_FALLBACK_LIBRARY_PATH when adding native binaries to Mono's search path for MacOS X.
  2. Need to compile libgit2 for 32-bit instead of 64-bit, since the Mono release package for MacOS X is 32-bit only. That or compile your own version of Mono targeting 64-bit.
  3. Not sure if this is still needed, but I did it anyways, create a config file so you can set a dllmap. On MacOS X, native binaries end with .dylib instead of .so.
  4. You may need to modify how some files are copied around during the build process as well.

After that, it should compile and run the tests, where you'll see the failing tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions