[haiku-development] Re: Trouble loading LibGit2 library

  • From: Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 10 May 2018 10:24:10 +0000

I was able to compile my addon and is working fine. Thanks to Adrien.

I also created a Makefile for easy installation.

The string is the icon in the HVIF format. You should be able to convert

simple svg images into hvif using Icon-O-Matic which is included in Haiku.
I say simple because the Haiku Vector Icon Format is designed to be
lightweight so not all svg constructs may be translated.

You can try to do the same thing using Wonderbrush.

Once you get your icon imported just export in rdef format from
Icon-O-Matic, that'd be exactly the string you put in your addon rdef.


I did convert a svg image to hvif rdef using Icon-o-matic. And used it in
.rdef file. But the icon is not being shown in addon menu.

The icon is https://github.com/Hrily/TrackGit/blob/master/git.svg
The rdef icon is https://github.com/Hrily/TrackGit/blob/master/git.rdef

The addon rdef is
https://github.com/Hrily/TrackGit/blob/master/TrackGit.rdef

The Makefile is https://github.com/Hrily/TrackGit/blob/master/Makefile

Thank you

Regards
Hrishi



On Thu, May 10, 2018 at 3:01 PM Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
wrote:

Thank you Adrien.



On Thu, May 10, 2018 at 2:07 PM Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
wrote:

On Thu, May 10, 2018 at 09:46:36AM +0200, Adrien Destugues wrote:
On Thu, May 10, 2018 at 06:02:56AM +0000, Hrishi Hiraskar wrote:
Hi

I'm using libgit2 library for my GSoC project TrackGit.

I  installed libgit2_x86 and libgit2_x86_devel packages from
HaikuDepot.

The lib is built using gcc5, so it can't be used in an add-on, which has
to be built with gcc2 for compatibility with Tracker. I'm taking a look
to see if it's possible to get libgit2 built with gcc2. If that doesn't
work, we will have to work in a different way, with the add-on built
using gcc2, but calling a separate executable that will interface with
libgit2.

Fortunately it was easy enough to get libgit2 building with gcc2, so you
should soon see a libgit2 (no _x86 suffix) package in the repo (once the
bots have built it).

This one should be loadable from an add-on.

--
Adrien.


Other related posts: