librelist archives

« back to archive

Compiling on windows & missing features?

Compiling on windows & missing features?

From:
Jan Vrany
Date:
2012-09-13 @ 10:45
Hello,

I'm now about to write a (open) GIT support for Smalltalk/X.
After some initial experiment, libgit2 seemed to be an obvious
solution and the API looks sound to me. Well done!

However, I failed to compile it on
Windows using MSVC - some missing defines, wrong options.
At the end I managed to compile 0.17 tag but resulting
.dll is somewhat corrupted - I cannot load it into an image
(LoadLibraryEx gives me 0xC1 error code - not a windows app)

Does anybody tried to compile devel branch and/or 0.17 tag on
windows using MSVC?

Also - I should have support for basic workflow ready quite soon,
so I need at least to:
- clone remote repo (https/ssh)
- checkout/commit
- fetch updates from remote repos (https/ssh)
- merge
- push to remote repos (https/ssh)

It seems that working with remote repos is somewhat half-baken
(=not yet supported), isn't it?

I haven't found any roadmap or so - this is for me as possible
user/early adopter quite important so I can plan my work/do
technical decisions :-)


Cheers, Jan

Re: [libgit2] Compiling on windows & missing features?

From:
schu
Date:
2012-09-13 @ 13:56
On 09/13/2012 12:45 PM, Jan Vrany wrote:
> However, I failed to compile it on
> Windows using MSVC - some missing defines, wrong options.
> At the end I managed to compile 0.17 tag but resulting
> .dll is somewhat corrupted - I cannot load it into an image
> (LoadLibraryEx gives me 0xC1 error code - not a windows app)
> 
> Does anybody tried to compile devel branch and/or 0.17 tag on
> windows using MSVC?

Could you open an issue? The library is used on Windows, but
there might are Windows specific details.

> Also - I should have support for basic workflow ready quite soon,
> so I need at least to:
> - clone remote repo (https/ssh)
> - checkout/commit
> - fetch updates from remote repos (https/ssh)
> - merge
> - push to remote repos (https/ssh)

Push and ssh transport is cooking, merge has to be done yet.

> It seems that working with remote repos is somewhat half-baken
> (=not yet supported), isn't it?

Fetch / clone via http(s):// and git:// should work. For any
specific problem, please open an issue.

> I haven't found any roadmap or so - this is for me as possible
> user/early adopter quite important so I can plan my work/do
> technical decisions :-)

There's no roadmap. We are working on getting somewhat feature
complete "quite soon"..

Let us know in case you have any questions or feedback to share.
Thanks.

Re: [libgit2] Compiling on windows & missing features?

From:
Sascha Cunz
Date:
2012-09-13 @ 16:28
On Thursday, September 13, 2012 03:56:46 PM schu wrote:
> On 09/13/2012 12:45 PM, Jan Vrany wrote:
> > However, I failed to compile it on
> > Windows using MSVC - some missing defines, wrong options.
> > At the end I managed to compile 0.17 tag but resulting
> > .dll is somewhat corrupted - I cannot load it into an image
> > (LoadLibraryEx gives me 0xC1 error code - not a windows app)

It usually compiles fine on windows - and "LoadLibraryEx gives me 0xC1 error 
code" sounds more like a corruption in your local build progress. I would 
recommend to retry compilation from scratch.

> > Does anybody tried to compile devel branch and/or 0.17 tag on
> > windows using MSVC?
> 
> Could you open an issue? The library is used on Windows, but
> there might are Windows specific details.
> 
> > Also - I should have support for basic workflow ready quite soon,
> > so I need at least to:
> > - clone remote repo (https/ssh)
> > - checkout/commit
> > - fetch updates from remote repos (https/ssh)
> > - merge
> > - push to remote repos (https/ssh)

Please note that all of schu's comments below apply to the development branch 
of libgit2. From your above list of required features, as far as I can see, 
commit is the only one that was already 'done' in version 0.17. However, most 
of the time, the development branch of libgit2 itself is reliable and stable.

Also, you should be prepared that libgit2 won't strictly follow binary or 
source compatibility with previously released versions. This is due to the 
fact that almost anything is still in a flow and a "finalization" of the APIs 
is not yet done.

> Push and ssh transport is cooking, merge has to be done yet.

Simple "checkout" and "reset" are also currently being cooked.

> > It seems that working with remote repos is somewhat half-baken
> > (=not yet supported), isn't it?
> 
> Fetch / clone via http(s):// and git:// should work. For any
> specific problem, please open an issue.
> 
> > I haven't found any roadmap or so - this is for me as possible
> > user/early adopter quite important so I can plan my work/do
> > technical decisions :-)
> 
> There's no roadmap. We are working on getting somewhat feature
> complete "quite soon"..
> 
> Let us know in case you have any questions or feedback to share.
> Thanks.

Re: [libgit2] Compiling on windows & missing features?

From:
Jan Vrany
Date:
2012-09-14 @ 14:52
Hi,

>>> Does anybody tried to compile devel branch and/or 0.17 tag on
>>> windows using MSVC?
>>
>> Could you open an issue? The library is used on Windows, but
>> there might are Windows specific details.

Yes, I can :-)

https://github.com/libgit2/libgit2/issues/935

>
> Also, you should be prepared that libgit2 won't strictly follow binary or
> source compatibility with previously released versions. This is due to the
> fact that almost anything is still in a flow and a "finalization" of the APIs
> is not yet done.

That's fine with me :-)

>
>> Push and ssh transport is cooking, merge has to be done yet.
>
> Simple "checkout" and "reset" are also currently being cooked.
>

OK, thanks.