[webkit-help] How to cross-compile wetkit-r59711 with qt?

wenmhappy wenmhappy at 126.com
Mon Oct 17 19:11:43 PDT 2011


Hi  everyone,
    I  have built(cross-compile) webkit with gtk using script below.
export PKG_CONFIG_PATH="$SDKROOT/usr/lib/pkgconfig":$PKG_CONFIG_PATH
export PATH=`pwd`::$PATH
export BUILD_WEBKIT_ARGS="--host=sh4-linux --build=i686-pc-linux-gnu \
                          --prefix=/opt/STM/STLinux-2.3/devkit/sh4/target/usr \
                          LDFLAGS=-L$LIBTOOL_FILE_DIR \
                          --with-target=directfb"
./WebKitTools/Scripts/build-webkit --gtk --release --makeargs="2> buildlog" 
 
But failed when building webkit with qt like this:
QMAKE_DIR=/usr/lib/qt4/bin
export PKG_CONFIG_PATH="$SDKROOT/usr/lib/pkgconfig":$PKG_CONFIG_PATH
export PATH=`pwd`:$QMAKE_DIR:$PATH
export BUILD_WEBKIT_ARGS="--host=sh4-linux --build=i686-pc-linux-gnu \
                          --prefix=/opt/STM/STLinux-2.3/devkit/sh4/target/usr \
                          LDFLAGS=-L$LIBTOOL_FILE_DIR \
                          --with-target=directfb"
./WebKitTools/Scripts/build-webkit --qt --release --makeargs="2> buildlog" 
 
details is below:
[root at lhb WebKit-r59711]# ./cc-webkit
Generating derived sources
Calling 'qmake -r --host=sh4-linux --build=i686-pc-linux-gnu                                                     LDFLAGS=-L/opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib                           --with-target=directfb -r /home/wen/WebKit-r59711/DerivedSources.pro -o Makefile.DerivedSources' in /home/wen/WebKit-r59711/WebKitBuild/Release
***Unknown option --host=sh4-linux
Usage: qmake [mode] [options] [files]
QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project
Mode:
  -project       Put qmake into project file generation mode
                 In this mode qmake interprets files as files to
                 be built,
                 defaults to *.c; *.ui; *.y; *.l; *.ts; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C
  -makefile      Put qmake into makefile generation mode (default)
                 In this mode qmake interprets files as project files to
                 be processed, if skipped qmake will try to find a project
                 file in your current working directory
Warnings Options:
  -Wnone         Turn off all warnings
  -Wall          Turn on all warnings
  -Wparser       Turn on parser warnings
  -Wlogic        Turn on logic warnings
Options:
   * You can place any variable assignment in options and it will be     *
   * processed as if it was in [files]. These assignments will be parsed *
   * before [files].                                                     *
  -o file        Write output to file
  -unix          Run in unix mode
  -win32         Run in win32 mode
  -macx          Run in Mac OS X mode
  -d             Increase debug level
  -t templ       Overrides TEMPLATE as templ
  -tp prefix     Overrides TEMPLATE so that prefix is prefixed into the value
  -help          This help
  -v             Version information
  -after         All variable assignments after this will be
                 parsed after [files]
  -norecursive   Don't do a recursive search
  -recursive     Do a recursive search
  -cache file    Use file as cache           [makefile mode only]
  -spec spec     Use spec as QMAKESPEC       [makefile mode only]
  -nocache       Don't use a cache file      [makefile mode only]
  -nodepend      Don't generate dependencies [makefile mode only]
  -nomoc         Don't generate moc targets  [makefile mode only]
  -nopwd         Don't look for files in pwd [project mode only]
Failed while running qmake to generate derived sources!

I  installed qt4-qmake-4.3.2-3.i386.rpm and compat-libstdc++-33-3.2.3-68.i686.rpm on fedora14,  there are libs of qt on embedded platform(STLinux). I  don`t know where is problem.  I think maybe script is wrong.
How to fix it?
Thanks for any help.
 
Best regards
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20111018/bd79f687/attachment.html>


More information about the webkit-help mailing list