Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you compile WebkitGTK on windows for MinGW

My experience with C++, GCC, MinGW and Cygwin is very limited. However, I already tested it and realized that Cygwin is not the ideal solution for what I am trying to do. Even though a GTK+ program with GTKWebkit works fine on Cygwin, it's not that great in terms of packaging the final project to a single .exe. The dependency on the cywin1.dll, etc... is a deal breaker.

I tested MinGW and it works flawlessly for a standard GTK only application in Windows. And the file size is great!

I tested a standard GCC compiler to compile a GTK & WebKitGtk application on Mac and it worked flawlessly.

But in the windows world where I am getting confused with GTK and WebkitGTK. What I want to do is compile a sample WebkitGTK application on Windows using MinGW. So, all the required libraries are statically linked and has a single .exe.

What are my choices? How do I actually build WebsiteGTK on Windows? Please give me the tools and as much details as you can.

FYI, QtWebkit is not going to cut it. Their licensing terms are not that commercial friendly.

like image 232
roosevelt Avatar asked Sep 10 '14 04:09

roosevelt


1 Answers

I never did get WebKitGtk to compile on Windows. I think I could have got it to work using cygwin, but that's a non-starter for the project I'm working on.

I ended up using Chromium Embedded Framework instead: https://code.google.com/p/chromiumembedded/. It has clear instructions and sample apps for Mac, Linux, Windows, and mobile.

like image 125
mikejonesguy Avatar answered Nov 08 '22 14:11

mikejonesguy