[solved] Qxt installation problems

  • Hi,
    New to the forum and quite new to QT, but not new in programming at all.

    I'm writing a project for my studies, and one of the functions it should do is to send email. I've found out that many of developers use Qxt library, so I decided to try with it.

    Am using Qt 5 on Win 8 with newest Qxt libraries. I generally followed what is "here":http://qt-project.org/wiki/LibQxt_in_QtCreator. I had one problem: html directory is not included in zip I've downloaded so it couldn't be copied. All other steps went fine, i have additionally used mingw32-make install as found on "that page":http://dev.libqxt.org/libqxt/wiki/user_guide.

    I've created completely new project in QtCreator and i've added that lines to the project file at the end of .pro file:

    @win32:CONFIG(release, debug|release): LIBS += -LC:/Qt/libqxt/lib/ -lqxtcore
    else:win32:CONFIG(debug, debug|release): LIBS += -LC:/Qt/libqxt/lib/ -lqxtcore
    INCLUDEPATH += C:/Qt/libqxt/include/QxtCore
    DEPENDPATH += C:/Qt/libqxt/include/QxtCore
    CONFIG += qxt
    QXT += core@

    Now, in my main.cpp i've added:

    @#include <QxtCore>@

    And finally, the errors i get:
    :-1: error: cannot find -lQxtCored
    collect2.exe:-1: error: error: ld returned 1 exit status

    Does anyone has an idea of what can be wrong here? Or maybe someone knows more detailed manual for installing Qxt? I have already spent two days for trying this to work and decided to ask you for help.

    Feel free to ask any additional questions if needed.
    Thanks in advance,


  • Hi,

    is there a debug-version of the library in your lib-path?
    Does the build work in release-mode?

    But even if you get your link-problem solved. Obey the hint from the website:
    "Qxt will likely not work with newer Qt versions due to usage of internal api. We recommend that you pick out the parts you want instead of using the entire libqxt."

    Best regards Kai

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you build Qxt for both debug and release ?

  • Hi

    Thanks for such quick replies.

    You're right, I haven't installed Qxt for debug, only for release. Did it and everything is working fine.

    Thanks a lot :)

  • Lifetime Qt Champion

    You welcome !

    Since you have Qxt working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

  • How can I Install Qxt for debug? Could You tell me how Yod did that?

  • Lifetime Qt Champion

    Build Qxt for both debug and release

  • When you have Qxt unzipped and run "configure.bat" it is installing Qxt in release mode. To enable debug mode run the command again, but with -debug option ("configure.bat -debug"). Than run mingw32-make & mingw32-make install again.
    It worked for me.

  • Thanks guys for all Your replies.
    But I got one important question to [~SGaist]. As I found in http://dev.libqxt.org/libqxt/wiki/Home the LIBQXT IS NO LONGER MAINTAINED. Is it wise to include this library to currently started project? I really like QxtLogger class working mechanism. Maybe its better to seek for newer solutions? I check QMessageLogger but its completly different and its not what Im looking for. Could anybody give me some advice?

  • Lifetime Qt Champion

    The library itself is still working so there's nothing wrong using it. However if you find a bug you will have to fix it yourself (or get someone to help you)

  • Already implemented qxtLogger engine in my app and works very nice.

    Does anybody heard about internal mechanism which control log files?
    Delete old ones and e.t.c ?
    Or maybe I have to implement it by myself?
    Any tip will be precious.

  • Lifetime Qt Champion

    That will depend on your OS, e.g. on linux you have system tools that handles that

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.