Giter VIP home page Giter VIP logo

Comments (10)

isacikgoz avatar isacikgoz commented on August 21, 2024

hi @ohle thanks for the feedback. Can you try it again after you pull #15 ?

from gitin.

ohle avatar ohle commented on August 21, 2024

The patch applies now, but the CMake error in libgit2 is still there:

git submodule -q foreach --recursive git reset -q --hard
git submodule update --init --recursive
if patch --dry-run -N -d /home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27 -p1 < patch/git2go.v27.patch >/dev/null; then \
		patch -d /home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27 -p1 < patch/git2go.v27.patch; \
	fi
patching file script/build-libgit2-static.sh
make -C /home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27 install-static
make[1]: Entering directory `/home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27'
./script/build-libgit2-static.sh
+ VENDORED_PATH=vendor/libgit2
+ cd vendor/libgit2
+ mkdir -p install/lib
+ mkdir -p build
+ cd build
+ cmake -DTHREADSAFE=ON -DBUILD_CLAR=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=../install -DUSE_EXT_HTTP_PARSER=OFF -DUSE_HTTPS=OFF -DUSE_NSEC=OFF -DUSE_SSH=OFF -DCURL=OFF -DUSE_GSSAPI=OFF -DUSE_BUNDLED_ZLIB=ON ..
CMake Error: The source directory "/home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27/vendor/libgit2" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make[1]: *** [build-libgit2] Error 1
make[1]: Leaving directory `/home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27'
make: *** [build-libgit2] Error 2

from gitin.

isacikgoz avatar isacikgoz commented on August 21, 2024

hi @ohle , does $GOPATH/src/gopkg.in/libgit2/git2go.v27/vendor/libgit2 folder exists? Because libgit2 itself should contain CMakeLists.txt file.

Somehow it can be failing on initializing

gitin/Makefile

Line 43 in 680b327

git submodule -q foreach --recursive git reset -q --hard
and

gitin/Makefile

Line 44 in 680b327

git submodule update --init --recursive

from gitin.

ohle avatar ohle commented on August 21, 2024

That was the problem. I don't know why those lines seemed to fail silently, but manually initializing the submodules in libgit2 helped.

However, now I seem to get linker errors:

[...]
go install --tags "static" ./...
can't load package: package gopkg.in/libgit2/git2go.v27: /home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27/git_static.go: malformed #cgo argument: -I${SRCDIR}/vendor/libgit2/include
make[1]: *** [install-static] Error 1
make[1]: Leaving directory `/home/claussen/gocode/src/gopkg.in/libgit2/git2go.v27'
make: *** [build-libgit2] Error 2

from gitin.

 avatar commented on August 21, 2024

https://github.com/isacikgoz/gitin#installation, make sure cmake and pkg-config installed.

from gitin.

ohle avatar ohle commented on August 21, 2024

They are installed.

I'm closing this bug now because, while I still get the above errors, I can't reproduce them in a clean ubuntu docker.

BTW, @isacikgoz is there any reason the 0.1.5 release came without linux binaries?

from gitin.

isacikgoz avatar isacikgoz commented on August 21, 2024

Ah, sorry @ohle It will be added in a few hours, I was having some issues with my Linux machine.

Edit: Added 👍

from gitin.

lk-chen avatar lk-chen commented on August 21, 2024

I get into the same issue: CMakeLists.txt missing in libgit2.

The folder has 2 subdirs: build/ and install/

from gitin.

isacikgoz avatar isacikgoz commented on August 21, 2024

hello @lk-chen CMakeLists.txt should be in libgit2 folder. If it is not, it may be a problem with git clone or git submodule commands. Maybe you can try to manually initialize submodules in $GOPATH/src/gopkg.in/libgit2/git2go

After that, you can build libgit2 with running ./script/install-libgit2.sh in the git2go folder. After these steps you should be able to go build in gitin folder.

from gitin.

lk-chen avatar lk-chen commented on August 21, 2024

I retried the git submodule commands above and got no luck. Then I tried go get -d github.com/isacikgoz/gitin again, and it works fine now.

from gitin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.