Jump to content


Photo

cygwin dwb on windows gtk browser

cygwin dwb windows gtk

  • Please log in to reply
5 replies to this topic

#1 acktic

acktic

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 05 November 2014 - 11:43 AM

Back around when systemd was introduced on Archlinux I came across a gtk webkit browser "dwb."  I think it was originally by suckless, but now it's maintained by portix here...

https://bitbucket.org/portix/dwb

 

I've been testing some web development, and would just like a copy of dwb built in cygwin that works!

I've failed miserably everytime...I'm awful without a pkg manager.

 

So I'm just asking for a build and dependencies to run in windows8.1.

 

Also if you're interested I can share the cli web project I've been working on.

 

Thanks

ack



#2 N3Cr0

N3Cr0

    Prosumer

  • Members
  • PipPip
  • 22 posts

Posted 08 November 2014 - 11:20 AM

That's what I wanted to ask, but you were faster.

 

Diabol successfully compiled dwb for Windows and ran it under cygwin.

http://blackbox4wind...ing-on-windows/

 

However, I fail compiling, although I have installed the packages it depends to.

I'll retry and post my console logs later.

I hope compiling with debugging symbols will help, since I never felt comfortable with debugging.



#3 acktic

acktic

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 10 November 2014 - 05:59 PM

I saw the same success Diabol had, after trying for 2 hours with cygwin.

 

Not sure I'm willing to try again but I want that browser.

 

Hope to hear more.



#4 diabol

diabol

    Lazyass

  • Validating
  • 236 posts

Posted 11 November 2014 - 01:11 AM

To repeat for everyone:

 

well, frankly it was just a fast experiment to see how much effort i'd need to put into porting it. it wasn't much, there was a single file in the build tools which blocked the build and some stuff about sockets iirc bear in mind that dwb needs an X server to run - I used the free version of Xming, which isn't great   i would rather not go through the hassle to create a package (and i don't have the build lying around anymore), so instead i will reembark on the journey and document the steps.   on a (semi-)fresh cygwin install, you need the following packages and all their required dependencies (you can get all of these via cygwin's setup-xxx.exe): pkg-config make gcc-core gcc-g++ (i think)   libsoup2.4-devel libwebkitgtk3.0-devel gnutls-devel libglib2.0-devel libjson-c-devel   1.) Patch for stdlib stuff Add the line "CFLAGS += -U__STRICT_ANSI__" to config.mk

 

This fixes a lot of weird compilation stuff where standard functions are not defined

 

2.) Add some empty const to hsts_preload.h

I'm not sure why the tool which is supposed to generate this file fails, but whatever.

After an unsuccessful compile, add these lines to "hsts_preload.h" and it compiles:

 

const HSTSPreloadEntry *s_hsts_preload = NULL;

const int s_hsts_preload_length = 0;

 

3.) make install (this should work)

 

4.) grab Xming, start it

 

5.) cygwin rebaseall (google it)

 

6.) add this to ~/.config/dwb/settings:

[default]

 

7.) run dwb with

export DISPLAY=127.0.0.1:0

dwb

 

I got back up to this point today and here it dies with a horrible sigsegv somewhere in webgit-gkt3 and i don't know why.

Another day I might try out an older branch from github or talk to the guys from dwb's irc channel (they are friendly and helped a bit in my first experiment)

 

Or I could just enable debug symbols and see if gdb gives me a useful backtrace. Who knows, mysterious are the ways of the lazyass


  • N3Cr0 likes this

#5 N3Cr0

N3Cr0

    Prosumer

  • Members
  • PipPip
  • 22 posts

Posted 14 November 2014 - 12:16 PM

Thank you, very much! I'll give it a try.

 

EDIT: The 2014 version fails.

Spoiler

 

Same as 2013:

$ make installmake[1]: Nothing to be done for 'all'.gen settings.htmlgen keys.htmlcc entry.ccc completion.ccc local.ccc view.ccc callback.ccc js.ccc soup.ccc commands.ccc dwb.cdwb.c:29:22: schwerwiegender Fehler: execinfo.h: No such file or directory #include <execinfo.h>                      ^Kompilierung beendet.Makefile:20: recipe for target 'dwb.o' failedmake[1]: *** [dwb.o] Error 1Makefile:17: recipe for target 'src.subdir-make' failedmake: *** [src.subdir-make] Error 2

Maybe it's because I'm using the 64Bit version of Cygwin.



#6 diabol

diabol

    Lazyass

  • Validating
  • 236 posts

Posted 20 November 2014 - 09:26 PM

Thank you, very much! I'll give it a try.

 

EDIT: The 2014 version fails.

Spoiler

 

Same as 2013:

$ make installmake[1]: Nothing to be done for 'all'.gen settings.htmlgen keys.htmlcc entry.ccc completion.ccc local.ccc view.ccc callback.ccc js.ccc soup.ccc commands.ccc dwb.cdwb.c:29:22: schwerwiegender Fehler: execinfo.h: No such file or directory #include <execinfo.h>                      ^Kompilierung beendet.Makefile:20: recipe for target 'dwb.o' failedmake[1]: *** [dwb.o] Error 1Makefile:17: recipe for target 'src.subdir-make' failedmake: *** [src.subdir-make] Error 2

Maybe it's because I'm using the 64Bit version of Cygwin.

 

Try this:

1.) Patch for stdlib stuffAdd the line "CFLAGS += -U__STRICT_ANSI__" to config.mkThis fixes a lot of weird compilation stuff where standard functions are not defined

It should at least get rid of the stdlib errors in the 2014 version (exar.c:708:5: Fehler: Implizite Deklaration der Funktion »mkstemp« [-Werror=implicit-function-declaration] and the like)







Also tagged with one or more of these keywords: cygwin, dwb, windows, gtk

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users