Results 1 to 3 of 3

Thread: qt5 qtwebkit compile problem

  1. #1
    Join Date
    Oct 2010
    Location
    Iran
    Posts
    27
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question qt5 qtwebkit compile problem

    Hi
    How to resolve this problem?

    /opt/source/qt5/qtwebkit/Source/JavaScriptCore/wtf/NullPtr.h:48:1: error: identifier ‘nullptr’ will become a keyword in C++0x [-Werror=c++0x-compat]
    cc1plus: all warnings being treated as errors

  2. #2
    Join Date
    Oct 2010
    Location
    Iran
    Posts
    27
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: qt5 qtwebkit compile problem

    remove -well
    and then see this error:


    /qt5/bin/moc -DENABLE_NETSCAPE_PLUGIN_API=0 -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I .... qt5/qtwebkit/Source/JavaScriptCore/wtf/qt/MainThreadQt.cpp -o MainThreadQt.moc
    /home/arm/opt/source/qt5/qtwebkit/Source/JavaScriptCore/yarr/YarrParser.h: In function ‘const char* JSC::Yarr::checkSyntax(const JSC::UString&)’:


    /opt/source/qt5/qtwebkit/Source/JavaScriptCore/yarr/YarrParser.h:136:17: error: ‘characterClassConstructor.JSC::Yarr::Parser <JSC::Yarr::SyntaxChecker>::CharacterClassParserDe legate::m_character’ may be used uninitialized in this function [-Werror=uninitialized]
    /home/arm/opt/source/qt5/qtwebkit/Source/JavaScriptCore/yarr/YarrParser.h:454:38: note: ‘characterClassConstructor.JSC::Yarr::Parser <JSC::Yarr::SyntaxChecker>::CharacterClassParserDe legate::m_character’ was declared here
    cc1plus: all warnings being treated as errors

  3. #3
    Join Date
    Oct 2010
    Location
    Iran
    Posts
    27
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: qt5 qtwebkit compile problem

    Now
    Cheng Webkit.pri

    add : -Wno-c++0x-compat
    comment : isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror

    *-g++*:QMAKE_CXXFLAGS += -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -Wno-c++0x-compat

    # Treat warnings as errors on x86/Linux/GCC
    linux-g++* {
    # isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror
    }

    Compiling and see this error:

    g++ -fuse-ld=gold -Wl,-O1 -Wl,-rpath,/opt/installed/x86/qt5/lib -Wl,-rpath,/home/arm/opt/source/qt5/qtwebkit/WebKitBuild/Release/lib -o ./jsc obj/release/jsc.o -L./release -L/opt/installed/x86/qt5/lib -lQtCore -L/opt/installed/x86/qt5/lib -lpthread -ljscore
    /usr/bin/ld: ./release/libjscore.a(FastMalloc.o): undefined reference to symbol 'pthread_create@@GLIBC_2.1'
    /usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line
    /lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation
    collect2: ld returned 1 exit status
    make[3]: *** [jsc] Error 1


    Added after 45 minutes:


    remove:
    -lpthread

    from:
    g++ -fuse-ld=gold -Wl,-O1 -Wl,-rpath,/opt/installed/x86/qt5/lib -Wl,-rpath,/home/arm/opt/source/qt5/qtwebkit/WebKitBuild/Release/lib -o ./jsc obj/release/jsc.o -L./release -L/opt/installed/x86/qt5/lib -lQtCore -L/opt/installed/x86/qt5/lib -lpthread -ljscore

    and run command :
    g++ -fuse-ld=gold -Wl,-O1 -Wl,-rpath,/opt/installed/x86/qt5/lib -Wl,-rpath,/home/arm/opt/source/qt5/qtwebkit/WebKitBuild/Release/lib -o ./jsc obj/release/jsc.o -L./release -L/opt/installed/x86/qt5/lib -lQtCore -L/opt/installed/x86/qt5/lib -ljscore

    then make -j4 and make -j4 install
    Last edited by lamp; 30th November 2011 at 21:28.

Similar Threads

  1. QtWebkit - Flash rendering problem
    By rsilva in forum Qt Programming
    Replies: 5
    Last Post: 5th May 2011, 08:38
  2. Cookie problem with QtWebkit
    By vides2012 in forum Qt Programming
    Replies: 3
    Last Post: 8th April 2010, 13:42
  3. QtWebKit and problem with events
    By piotr.dobrogost in forum Qt Programming
    Replies: 0
    Last Post: 29th September 2009, 11:36
  4. problem installing QtWebKit and CutyCapt on Centos
    By gadelkareem in forum Installation and Deployment
    Replies: 0
    Last Post: 19th September 2009, 08:11
  5. QtWebKit Compilation problem
    By PiXeL16 in forum Qt Programming
    Replies: 2
    Last Post: 9th May 2008, 00:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.