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

Building v2.0.322 for Ubuntu 22.04 (Jammy) results in error: "The source directory does not appear to contain CMakeLists.txt" #156

Open
elijah-ezaga opened this issue Jul 4, 2024 · 1 comment

Comments

@elijah-ezaga
Copy link

elijah-ezaga commented Jul 4, 2024

Hello LibGit2Sharp.NativeBinaries Team,

v2.0.322 native binaries for Ubuntu Jammy is not available on Ubuntu Lunchpad although present for newer Ubuntu versions so I am trying to build one from the source. My use case for the library is a Visual Studio Extension whose tests are run within a docker container. The .so and other libraries are needed within the container for the tests to run.

Now I downloaded the v2.0.322 archive, unpacked it and ran build.libgit2.sh. Note that instructions in the READ.ME advice to use dockerbuild.sh but I need use the former because I shall be building the library also in the docker during container creation.

After running build.libgit2.sh, I get the error. Please help.

CMake Warning:
Ignoring extra path from command line:

".."

The source directory "some/known/path" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.**

@bording
Copy link
Member

bording commented Sep 7, 2024

It's not clear to me why you're trying to build the source from this repo in the first place.

The intended way for you to use the output of this repo is from the NuGet package that contains precompiled binaries and is referenced from the LibGit2Sharp package.

If you aren't using LibGit2Sharp at all, then you should be trying to obtain the source directly from the libgit2 repo.

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

No branches or pull requests

2 participants