Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
April 12, 2016 DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
This doesn't work: $ git clone --recursive git://github.com/d-widget-toolkit/dwt.git $ git clone --recursive https://github.com/d-widget-toolkit/dwt.git (cf. https://github.com/d-widget-toolkit/dwt) If I just download the master or clone without `--recursive`, files are missing and I cannot compile it. Does anyone know what I'm doing wrong? |
April 12, 2016 Re: DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris | On 2016-04-12 17:32, Chris wrote: > This doesn't work: > > $ git clone --recursive git://github.com/d-widget-toolkit/dwt.git > > $ git clone --recursive https://github.com/d-widget-toolkit/dwt.git > > (cf. https://github.com/d-widget-toolkit/dwt) What errors to you get? This should work unless you have a really old version of Git. Seems like the --recursive flag was added in Git 1.6.5 [1]. > If I just download the master or clone without `--recursive`, files are > missing and I cannot compile it. The download doesn't contain submodules. If you clone without "--recursive" you can to run "git submodule update --init" after you have cloned the project. [1] http://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules -- /Jacob Carlborg |
April 13, 2016 Re: DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Tuesday, 12 April 2016 at 19:20:44 UTC, Jacob Carlborg wrote: The error messages are below. If I do it step by step (without --recursive) and then "git submodule update --init", I get more or less the same error: Cloning into 'base'... fatal: unable to connect to github.com: github.com[0: 192.30.252.130]: errno=Connection refused I use `git 2.5.0` There's always something with github, isn't there? > On 2016-04-12 17:32, Chris wrote: >> This doesn't work: >> >> $ git clone --recursive git://github.com/d-widget-toolkit/dwt.git Error: git clone --recursive git://github.com/d-widget-toolkit/dwt.git Cloning into 'dwt'... fatal: unable to connect to github.com: github.com[0: 192.30.252.123]: errno=Connection refused >> $ git clone --recursive https://github.com/d-widget-toolkit/dwt.git Cloning into 'dwt'... remote: Counting objects: 119, done. remote: Total 119 (delta 0), reused 0 (delta 0), pack-reused 119 Receiving objects: 100% (119/119), 75.20 KiB | 0 bytes/s, done. Resolving deltas: 100% (54/54), done. Checking connectivity... done. Submodule 'base' (git://github.com/d-widget-toolkit/base.git) registered for path 'base' Submodule 'org.eclipse.swt.gtk.linux.x86' (git://github.com/d-widget-toolkit/org.eclipse.swt.gtk.linux.x86.git) registered for path 'org.eclipse.swt.gtk.linux.x86' Submodule 'org.eclipse.swt.snippets' (git://github.com/d-widget-toolkit/org.eclipse.swt.snippets.git) registered for path 'org.eclipse.swt.snippets' Submodule 'org.eclipse.swt.win32.win32.x86' (git://github.com/d-widget-toolkit/org.eclipse.swt.win32.win32.x86.git) registered for path 'org.eclipse.swt.win32.win32.x86' Cloning into 'base'... fatal: unable to connect to github.com: github.com[0: 192.30.252.123]: errno=Connection refused |
April 13, 2016 Re: DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris | On Wednesday, 13 April 2016 at 09:01:47 UTC, Chris wrote:
> On Tuesday, 12 April 2016 at 19:20:44 UTC, Jacob Carlborg wrote:
>
> The error messages are below. If I do it step by step (without --recursive) and then "git submodule update --init", I get more or less the same error:
>
> Cloning into 'base'...
> fatal: unable to connect to github.com:
> github.com[0: 192.30.252.130]: errno=Connection refused
Looks like your firewall is blocking the git protocol.
Checkout dwt without --recursive
Modify the .gitmodules file so that https:// urls are used instead of git
Run the git submodule update --init
|
April 13, 2016 Re: DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | On 2016-04-13 17:23, Jesse Phillips wrote: > Looks like your firewall is blocking the git protocol. > > Checkout dwt without --recursive > > Modify the .gitmodules file so that https:// urls are used instead of git > > Run the git submodule update --init Updated to use HTTPS for the submodules. -- /Jacob Carlborg |
April 14, 2016 Re: DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Wednesday, 13 April 2016 at 18:50:22 UTC, Jacob Carlborg wrote:
> On 2016-04-13 17:23, Jesse Phillips wrote:
>
>> Looks like your firewall is blocking the git protocol.
>>
>> Checkout dwt without --recursive
>>
>> Modify the .gitmodules file so that https:// urls are used instead of git
>>
>> Run the git submodule update --init
>
> Updated to use HTTPS for the submodules.
Thanks! It worked for me now, both cloning and building. I'm looking forward to testing it.
|
April 14, 2016 Re: DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris | For the record, on my Linux (Ubuntu 15), I had to tweak the command for the example: dmd main.d -I<dwt>/imp -J<dwt>/org.eclipse.swt.gtk.linux.x86/res -L-L<dwt>/lib \ -L-l:org.eclipse.swt.gtk.linux.x86.a \ -L-l:dwt-base.a -L-lgtk-x11-2.0 -L-lgdk-x11-2.0 -L-latk-1.0 -L-lgdk_pixbuf-2.0 \ -L-lgthread-2.0 -L-lpangocairo-1.0 -L-lfontconfig -L-lXtst -L-lXext -L-lXrender \ -L-lXinerama -L-lXi -L-lXrandr -L-lXcursor -L-lXcomposite -L-lXdamage -L-lX11 \ -L-lXfixes -L-lpango-1.0 -L-lgobject-2.0 -L-lgmodule-2.0 -L-lgnomevfs-2 -L-ldl -L-lglib-2.0 \ -L-lcairo -L-lgnomeui-2 I had to add ".a" to `-L-l:dwt-base` and `-L-l:org.eclipse.swt.gtk.linux.x86`, and add `-L-lgnomevfs-2` as well. |
April 14, 2016 Re: DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris | On 2016-04-14 15:56, Chris wrote: > I had to add ".a" to `-L-l:dwt-base` and > `-L-l:org.eclipse.swt.gtk.linux.x86`, and add `-L-lgnomevfs-2` as well. I added `-L-lgnomevfs-2 to the example. I need to look into way the ".a" was needed. -- /Jacob Carlborg |
April 15, 2016 Re: DWT Cloning / Build fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Thursday, 14 April 2016 at 19:16:30 UTC, Jacob Carlborg wrote:
> On 2016-04-14 15:56, Chris wrote:
>
>> I had to add ".a" to `-L-l:dwt-base` and
>> `-L-l:org.eclipse.swt.gtk.linux.x86`, and add `-L-lgnomevfs-2` as well.
>
> I added `-L-lgnomevfs-2 to the example. I need to look into way the ".a" was needed.
Yeah, it's strange alright. I was surprised that I had to add it.
|
Copyright © 1999-2021 by the D Language Foundation