Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [Solved] QT WebKit Important Problem
Forum Updated to NodeBB v4.3 + New Features

[Solved] QT WebKit Important Problem

Scheduled Pinned Locked Moved Qt WebKit
8 Posts 2 Posters 6.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lednes
    wrote on last edited by
    #1

    Hello everyone

    I'm Crosscompiling QT embedded 4.5.3 on my ubuntu 9.04 for AVR32 Linux.

    I get following error when compiling the library after several hours

    @avr32-linux-g++ -fno-exceptions -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.5.3-avr32/lib -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.5.3-avr32/lib -o formextractor .obj/release-shared-emb-avr32/main.o .obj/release-shared-emb-avr32/formextractor.o .obj/release-shared-emb-avr32/mainwindow.o .obj/release-shared-emb-avr32/moc_formextractor.o .obj/release-shared-emb-avr32/moc_mainwindow.o .obj/release-shared-emb-avr32/qrc_formextractor.o -L/home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/lib -lQtWebKit -L/home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/lib -lQtGui -lpng -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread
    /home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/lib/libQtWebKit.so: undefined reference to trunc' collect2: ld returned 1 exit status make[3]: *** [formextractor] Error 1 make[3]: Leaving directory /home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/examples/webkit/formextractor'
    make[2]: *** [sub-formextractor-make_default] Error 2
    make[2]: Leaving directory /home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/examples/webkit' make[1]: *** [sub-webkit-make_default] Error 2 make[1]: Leaving directory /home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/examples'
    make: *** [sub-examples-make_default-ordered] Error 2
    avr32@avr32-desktop:~/Desktop/qt-embedded-linux-opensource-src-4.5.3$

    @

    can some one HELP me fixing this issue its important for my work :(

    1 Reply Last reply
    0
    • B Offline
      B Offline
      benjamin.poulain
      wrote on last edited by
      #2

      It is failing in the examples, no big deal. Do you get the same error when linking your own application with QtWebKit?

      The error is a bit suspicious: undefined reference to `trunc'.

      Finally, why do you use Qt 4.5.x? Qt 4.6 has been there for a while, and the release candidate of Qt 4.7.0 is available as well. I am not sure Qt 4.5 is still officially supported.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lednes
        wrote on last edited by
        #3

        most examples are compiled without error, binarys are in the folder,

        are the examples compiled at the end? or are there any important things "make" should do to finish the installation. can i force make to go further after this error ? make -i -k don't actually work it still ends the installation after this "trunc" error

        i didnt found a 4.6 embedded source ball on nokias FTP server, but i should try compiling a newer version.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          benjamin.poulain
          wrote on last edited by
          #4

          are the examples compiled at the end?

          Yep. You can do make install to install what you already have.

          i didnt found a 4.6 embedded source ball on nokias FTP server, but i should try compiling a newer version.

          You can always get the source from Gitorious, or just download the qt-everywhere package and compile for embedded.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lednes
            wrote on last edited by
            #5

            so when examples are at the end, the library itself should work so far ? right?

            but when i compile my code , that i developed under another machine with 4.6.2 or something like that, i get an error

            @
            ics.h:25: error: 'QDate' has not been declared
            ics.cpp:9: error: no match for 'operator=' in '((ics*)this)->ics::Who = ""'
            ../../buildroot-avr32-v2.2.0-beta2-atstk1005/build_avr32/staging_dir/include/QtCore/qstringlist.h:64: note: candidates are: QStringList& QStringList::operator=(const QStringList&)@

            seems that the part in which QDate / Qstringlist is , isnt compiled right way. every other code line works well

            1 Reply Last reply
            0
            • B Offline
              B Offline
              benjamin.poulain
              wrote on last edited by
              #6

              [quote author="lednes" date="1284647407"]so when examples are at the end, the library itself should work so far ? right?
              [/quote]
              Yep.

              [quote author="lednes" date="1284647407"]
              @
              ics.h:25: error: 'QDate' has not been declared
              @
              [/quote]

              This is a compile issue, not a link issue. It seems you get wrong with your headers. Have you #included QDate? Have you installed the headers?

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lednes
                wrote on last edited by
                #7

                Oh :) it seems to work now:)! i missed <QDate> because in earlyer version i had <QTGui> included which i dropped :)
                thank you Benjamin :)

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  benjamin.poulain
                  wrote on last edited by
                  #8

                  Cool, I am glad to know it is fixed. :)

                  Thinking about it, if you have linking error with WebKit but you don't use WebKit in your project, you can add -no-webkit to configure. That will speed-up the build, and avoid you the problems.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved