I try compile qtwebkit



  • Hi, I get this issue when i try to make qtwebkit in windows 7:

    In file included from ./wtf/unicode/Unicode.h:32:0,
    from ./wtf/text/ASCIIFastPath.h:31,
    from ./wtf/text/WTFString.h:28,
    from wtf\DateMath.h:54,
    from wtf\DateMath.cpp:73:
    ./wtf/unicode/icu/UnicodeIcu.h:29:27: fatal error: unicode/uchar.h: No such file
    or directory
    #include <unicode/uchar.h>
    ^
    compilation terminated.
    Makefile.WTF.Release:1028: recipe for target '.obj/release/DateMath.o' failed
    mingw32-make[2]: *** [.obj/release/DateMath.o] Error 1
    mingw32-make[2]: Leaving directory 'F:/Qt/qt5/qtwebkit/Source/WTF'
    Makefile.WTF:34: recipe for target 'release' failed
    mingw32-make[1]: *** [release] Error 2
    mingw32-make[1]: Leaving directory 'F:/Qt/qt5/qtwebkit/Source/WTF'
    Makefile:46: recipe for target 'sub-Source-WTF-WTF-pro-make_first-ordered' faile
    d
    mingw32-make: *** [sub-Source-WTF-WTF-pro-make_first-ordered] Error 2

    What I need to do?

    Regards, Niko H.



  • I'm having a similar issue making the qtwebkit for Raspberry Pi. Did you every resolve this?



  • No, I have same issue



  • [quote author="nikohal" date="1395436214"]

    ./wtf/unicode/icu/UnicodeIcu.h:29:27: fatal error: unicode/uchar.h: No such file
    or directory
    #include <unicode/uchar.h>
    ^
    compilation terminated.
    [/quote]
    I received the same error, but managed to fix it.
    go to /qt5/qtwebkit/Source/WTF/unicode/ and copy ucar.h to qt5/qtwebkit/Source/WTF/wtf/unicode/icu/
    Or if you prefer use terminal to copy (cp).



  • You need to install icu libraries, in Ubuntu, you could install by:
    sudo apt-get install libicu-dev



  • You need to install icu libraries, in Ubuntu, you could install by:
    sudo apt-get install libicu-dev



  • Hello,

    I have the same issue.
    Installing libicu-dev in host did not help.
    Did anyone resolkved this issue ? I really struggle with it.

    Thank you very much,
    Ran





  • Hi

    I have exactly the same issue while building qtwebkit for raspberry pi and tried the link given above for ICU compilation. (TOOLCHAIN used -> gcc-4.7-linaro-rpi-gnueabihf)

    System details:
    Host = Ubuntu 14.04 LTS
    Target = Raspberry pi 2 model B (with raspbian jessie)

    Compilation settings:

    export TOOLCHAIN_TARGET_SYSTEM=arm-linux-gnueabihf
    export TOOLCHAIN_INSTALL_DIRECTORY=<<local host machine path>/gcc-4.7-linaro-rpi-gnueabihf/bin/

    **configure command is: **
    sudo ./configure CC=$TOOLCHAIN_TARGET_SYSTEM-gcc CXX=$TOOLCHAIN_TARGET_SYSTEM-g++ CPP=$TOOLCHAIN_TARGET_SYSTEM-cpp --host=$TOOLCHAIN_TARGET_SYSTEM --prefix=$TOOLCHAIN_INSTALL_DIRECTORY --enable-shared=yes --enable-tests=yes --enable-samples=no --with-cross-build=/opt/icu_prebuild/source

    While doing so, I get the following errors.


    ...
    ...
    checking if we have a C++ compiler... no
    configure: error: C++ compiler arm-linux-gnueabihf-g++ does not work or no compiler found


    However, I have arm-linux-gnueabihf-g++ and arm-linux-gnueabihf-c++ in the defined path in the host machine

    Please help

    Thanks
    Ganesh



  • Hi There

    I managed to cross compile the icu libraries using the link posted above, however, I still get the same error while building Qtwebkit.

    Please someone help.

    Is there any complete set of instructions to cross compile Qtwebkit for raspberry pi?

    Any help is highly appreciated

    Thanks



  • Hi,

    I am also having the same issue in ubuntu 16.04. I have installed icu packages, but still this same error occurs.
    Please help to resolve the error.

    Thanks



  • @ranshalit have you resolved the error.


Log in to reply