Code Monkey home page Code Monkey logo

Comments (6)

chobie avatar chobie commented on July 20, 2024
/tmp/php-git/php_git2.h:40:20: error: git2.h: No such file or directory
/tmp/php-git/php_git2.h:41:27: error: git2/errors.h: No such file or directory
/tmp/php-git/php_git2.h:42:32: error: git2/odb_backend.h: No such file or directory

let me take a look today. probably i made some mistakes.

from php-git.

MattKetmo avatar MattKetmo commented on July 20, 2024

Indeed, I changed those lines with relative path of the header files and it passed:

-#  include <git2.h>
-#  include <git2/errors.h>
-#  include <git2/odb_backend.h>
+#  include "libgit2/include/git2.h"
+#  include "libgit2/include/git2/errors.h"
+#  include "libgit2/include/git2/odb_backend.h"

... but I guess that's not a pretty solution.

So maybe there is something to change in the construction of libgit2 ?

from php-git.

chobie avatar chobie commented on July 20, 2024

sorry. I've forgotten to add PHP_ADD_INCLUDE to config.mr.
https://github.com/libgit2/php-git/blob/develop/config.m4

probably I'll fix this issue today. but i drunk too much today at work. anyway i'll do my best

from php-git.

chobie avatar chobie commented on July 20, 2024

@MattKetmo can you try to build php-git2 with latest develop branch?
you need to do phpize --clean before build.

from php-git.

MattKetmo avatar MattKetmo commented on July 20, 2024

I tested it on OSX and Debian and it works perfectly. Thanks.

For information, I'm on commit fe4cb28 of php-git and e4607392b5cbdcaf6a5dc810ca77b5dd1afcb147 of libgit2.

from php-git.

chobie avatar chobie commented on July 20, 2024

๐Ÿ˜ธ

At least current testcases passed. but it may contains several bugs as php-git2 jumped libgit2 version at this time.
if you have some troubles regarding php-git2. please ask me directly or make an issue.

from php-git.

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.