Skip to content
hekra01 edited this page Mar 25, 2015 · 58 revisions

Build

Example build in Ubuntu

  • Uninstall gyp provided by Ubuntu:
    $ sudo apt-get remove gyp
  • Clone gyp and install it:
    $ git clone https://chromium.googlesource.com/external/gyp.git
    $ sudo apt-get install python-pip
    $ sudo pip install setuptools
    $ cd ./gyp
    $ sudo python setup.py install
  • Install dependencies:
    $ sudo apt-get install g++
  • Create a configuration file wd.gypi, e.g:
$ cat wd.gypi
{
'variables': {
    'QT5': '1', # change to '0' to disable Qt5
    'WD_CONFIG_QWIDGET_BASE': '1', # 1 to support widget or hybrid web
    'WD_CONFIG_WEBKIT': '1', #1 to support Web views
    'WD_CONFIG_QUICK': '1', #1 to support QML
    'WD_BUILD_MONGOOSE': '1', #1 to inline mongoose code in WebDriver libraries. Otherwise CISCO_MONGOOSE paths below will be needed
    'WD_CONFIG_PLAYER': '0', #Set to 1 if qtmultimedia should be built. In case of Hawaii Cisco profile, set to 0
    'QT_INC_PATH': '<\!(/bin/echo \-n $QT_DIR/include)',
    'QT_BIN_PATH': '<\!(/bin/echo \-n $QT_DIR/bin)',
    'QT_LIB_PATH': '<\!(/bin/echo \-n $QT_DIR/lib)'
 },
}
  • Build:
    $ ./build.sh ./out

Run

To run the prebuilt bianries

On Windows
# Set Qt environment
D:\test> D:\Qt\5.2.1\msvc2010_opengl\bin\qtenv2.bat vsvars
# Run WebDriver
D:\test> WebDriver.exe

See Releases to download the pre-built exes

To build and run your own binary

Clone this wiki locally