Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebKit Compiler
#1
I worked out how to compile WebKit and make it to work - or almost, in Linux. Tested in Ubuntu Intrepid. Just...copy-paste the following code, save it as "compiler.sh" in your directory (in a good one. It will create tons of cache files, etc in it.) and run it in terminal. You might need to Right Click -> Options -> Permissions -> Allow running as a program. First.

Now, keep in mind that:
  1. This WILL download a NIGHTLY RELEASE from WebKit's SubRepositories. Means, its either an Alpha, or Beta. Its not stable. Use it ON YOUR OWN RISK.
  2. It requires GTK, and tons of Libraries to work. The script installs them, and it might take like 100MBs.
  3. The script will get the nightly build, right? It takes 300MBs. So, keep that in mind.
  4. This has lots of bugs. See below

Okay, if you readed that, cool. Next List:
BUG LIST
  • The page won't load if you didn't type http:// in the address bar, before the URL.
  • The Web Inspector is still not implemented.
  • Lack of features. Not a bug, but...

Okay, now, Run this in terminal. Save it before you do.
Be prepared that it may take 3-4 hours to compile.
Code:
#!/bin/bash
####################################
# WebKit Compiler script for GNU/Linux
# Made in Ubuntu Intrepid 8.10
# By Jimmie Lin
####################################

## Added in Revision 21
echo WebKit Compiler for GNU Linux - By Jimmie32
echo Use CTRL+C to abort - you wont be able to later. So if you want to do it, do it now. Do it, while we are in the installation of packages.
echo -----------------------------------------------------------------------------
echo Still dont want to abort? Proceeding
echo Installing needed packages, starting apt-get trigger

# Get all the needed packages. Ugh.
sudo apt-get install libqt4-dev libxslt-dev gperf bison libsqlite3-dev flex build-essential subversion bison libsqlite3-dev flex build-essential subversion libcurl4-openssl-dev libgtk2.0-dev libicu38 libpango1.0-dev libicu-dev
echo Package installation finished - 2 seconds to abort or wait to continue
# First we must get an fresh copy of the Repos.
svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit
echo Repositories refresh and download finished - 2 seconds to abort or wait to continue
#### DEVELOPER INFO: This saves the files in ~/WebKit.
# Now that we're done,
./WebKit/autogen.sh # Runs the install script
echo Install script running - Installation finished
./WebKit/Programs/GtkLauncher # Runs the GTK Launcher for the Browser
echo GTK Launcher Starting, happy developing!

#Send an happy msg
echo Congratulations, WebKit is now compiled.
echo To run safari, please consult the documentation
echo Be happy! Jimmie

# END
# Todo List:
##################################
# ~ Web Inspector GTK
# ~ Fix http:// bug
# ~ Make settings area
##################################

#Version 1.0.0, Revision 21, end.
Jimmie Lin - Community Manager & THT.Next Developer
Reply
#2
Developer Stuff for Revision 20
Revision 20, released Dec 15 2008, contains a Syntax-Highlighted Version of the code, incase you don't have an parser or editor which does it.
MyBB Export:: Code Editor Syntax Highlighting Wrote:#!/bin/bash
####################################
# WebKit Compiler script for GNU/Linux
# Made in Ubuntu Intrepid 8.10
# By Jimmie Lin
####################################

# Get all the needed packages. Ugh.

sudo apt-get install libqt4-dev libxslt-dev gperf bison libsqlite3-dev flex build-essential subversion bison libsqlite3-dev flex build-essential subversion libcurl4-openssl-dev libgtk2.0-dev libicu38 libpango1.0-dev libicu-dev

# First we must get an fresh copy of the Repos.

svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit

#### DEVELOPER INFO: This saves the files in ~/WebKit.
# Now that we're done,


./WebKit/autogen.sh
# Runs the install script
./WebKit/Programs/GtkLauncher # Runs the GTK Launcher for the Browser

#Send an happy msg


echo Congratulations, WebKit is now compiled.
echo To run safari, please consult the documentation
echo Be happy! Jimmie


# END
# Todo List:
##################################
# ~ Web Inspector GTK
# ~ Fix http:// bug
# ~ Make settings area
##################################

#Version 1.0.0, Revision 20, end.
Jimmie Lin - Community Manager & THT.Next Developer
Reply
#3
Version 1.0.0, Revision 21 Released
This adds side notes in the terminal so you can keep track of the process.

This only affects new users - Features in webkit are not touched nor changed. If you're using an earlier build of my WebKit Compiler (Revision 20) there are no changes. But here's an changelog incase you want it.

Highlighted Changes
Changes from revision 20 to 21 Wrote:#!/bin/bash
####################################
# WebKit Compiler script for GNU/Linux
# Made in Ubuntu Intrepid 8.10
# By Jimmie Lin
####################################

## Added in Revision 21
echo WebKit Compiler for GNU Linux - By Jimmie32
echo Use CTRL+C to abort - you wont be able to later. So if you want to do it, do it now. Do it, while we are in the installation of packages.
echo -----------------------------------------------------------------------------
echo Still dont want to abort? Proceeding
echo Installing needed packages, starting apt-get trigger


# Get all the needed packages. Ugh.
sudo apt-get install libqt4-dev libxslt-dev gperf bison libsqlite3-dev flex build-essential subversion bison libsqlite3-dev flex build-essential subversion libcurl4-openssl-dev libgtk2.0-dev libicu38 libpango1.0-dev libicu-dev
echo Package installation finished - 2 seconds to abort or wait to continue
# First we must get an fresh copy of the Repos.
svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit
echo Repositories refresh and download finished - 2 seconds to abort or wait to continue
#### DEVELOPER INFO: This saves the files in ~/WebKit.
# Now that we're done,
./WebKit/autogen.sh # Runs the install script
echo Install script running - Installation finished
./WebKit/Programs/GtkLauncher # Runs the GTK Launcher for the Browser
echo GTK Launcher Starting, happy developing!

#Send an happy msg
echo Congratulations, WebKit is now compiled.
echo To run safari, please consult the documentation
echo Be happy! Jimmie

# END
# Todo List:
##################################
# ~ Web Inspector GTK
# ~ Fix http:// bug
# ~ Make settings area
##################################

#Version 1.0.0, Revision 21, end.
Jimmie Lin - Community Manager & THT.Next Developer
Reply
#4
Soon to be released - 1.1.0
This new version brings some important features for Web Developers and Programmers, and a few UI enhancements, which are:
New features:
~ Added Web Inspector
~ GUI Compiler¹
Enhancements:
~ Enhanced Compiling time and no longer requires an svn checkout of 200mb file, but only an 9.8 mb file
BugFixes:
Permission error when running install script, fixed with sudo.

There is an beta version of the compiler soon to be released. Wink
Jimmie Lin - Community Manager & THT.Next Developer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)