Turns out (with JPs help) that I needed the CONFIG/QXT lines, plus add qxt\bin to my PATH
Thanks On Wed, Mar 23, 2011 at 11:26 AM, Thomas Ehrnhoefer <[email protected]> wrote: > Hi Adam > > Thanks for answering. My apologies, the initial post had a line > missing, where I stated that I tried the CONFIG/QXT thing exactly as > you described it. > The result is that that it compiles fine, but once I add this to the code: > > #include "QxtConfirmationMessage" > [...] > QxtConfirmationMessage::confirm(widget, tr("Confirm"), text > > and nmake and restart QtCreator, I am getting the "module was not > found" dialog at startup. > > What puzzles me is that during building, the parameters list (as an > example) both > > -I"c:\work\Qt\qt-everywhere-opensoure-opensource-src-4.7.2\include\QxtCore" > and > -I"c:\Qxt\include\QxtCore" > > But that might just be normal. The qt-src folder does not contain any > qxt stuff (except a QxtDesignerPlugins.dll, qxtvars.prf and qxt.prf), > the rest is all just in c:/qxt/.... > > I guess I can assume that if my plug in compiles and runs correct > without libqxt it is setup correct, and the problems are somehow in > how I try to use/include libqxt. > > Thomas > > P.S.: I sent the original message to [email protected] after > signing up (and confirming), but maybe a first message is in review? > No clue why it's not showing. > > On Wed, Mar 23, 2011 at 10:52 AM, Coda Highland <[email protected]> wrote: >> Hey, ahigerd here from Qxt. >> >> Don't use the Add Library wizard. Qxt is one of the rare libraries out >> there that actually uses the hooks qmake offers to integrate itself in >> as if it were a set of Qt modules. >> >> To use Qxt in your project, you need a couple lines that look something like: >> CONFIG += qxt >> QXT = core network >> The first line enables the Qxt hooks; the second line tells qmake that >> you want to use the QxtCore and QxtNetwork modules. >> >> Once you have done this, the qmake hooks will add the Qxt libraries to >> the linker and the Qxt include directories to the header search path. >> >> /s/ Adam Higerd >> >> P.S. I don't think you cross-posted it correctly because I don't see >> this message on the libqxt mailing list. >> >> On Wed, Mar 23, 2011 at 11:40 AM, Thomas Ehrnhoefer >> <[email protected]> wrote: >>> Hi Group >>> >>> Disclaimer: I am new to libqxt, Qt and QtCreator, so assume the least >>> and let me know if the question is misplaced here :) >>> >>> I am starting on a plugin for QtCreator (adding a sidebar) and want to >>> use libqxt in my work (I need the JSON support). The problem I am >>> experiencing is that I cannot get the plugin to either compile or run >>> with libqxt. >>> I used the "Add library..." wizard to add the libs (which are compiled >>> and sit in C:/qxt/), which adds a bunch of lines for each of the libs >>> I want to my .pro file. >>> I also added a simple line to invoke one if the features (opening a >>> QxtConfirmationMessage) plus imports of: >>> #include "QxtCore/QxtCore" >>> #include "QxtGui/QxtGui" >>> #include "QxtGui/QxtConfirmationMessage". >>> >>> Compiling results in the following error: >>> c:\qxt\include\qxtcore\qxtabstractconnectionmanager.h(30) : fatal >>> error C1083: Cannot open include file: 'qxtglobal.h': No such file or >>> directory >>> >>> The file is there though, sitting in c:\qxt\include\qxtcore. So it >>> seems my .pro file is not sufficient (or incorrect) to find everything >>> it needs. >>> >>> Then I read that to add libqxt, one simple needs to add >>> >>> If I am compiling this, it finishes without an error, but starting >>> QtCreator with my plugin pops up a dialog stating it couldn't load my >>> library because "the specified module was not found". So again some >>> setup problem. >>> >>> Combining both methods lead to the same result as method 2 by itself. >>> >>> I am also cross-posting this to the libqxt mailing list (as I am not >>> certain which part I am doing wrong). >>> Any help is appreciated >>> >>> Thanks >>> Thomas >>> >>> P.S.: here is my dev environment and how I got qt/qtcreator and libqxt >>> compiled: >>> * using MSVC2008 and activeperl >>> * configuring Qt with -release -no-scripttools -qt-zlib -qt-gif >>> -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -nomake demos -nomake >>> examples -phonon -phonon-backend >>> * configuring Qxt with -release -no-db >>> >>> -- >>> Thomas Ehrnhoefer >>> Software Developer, http://tasktop.com >>> _______________________________________________ >>> Qt-creator mailing list >>> [email protected] >>> http://lists.qt.nokia.com/mailman/listinfo/qt-creator >>> >> _______________________________________________ >> Qt-creator mailing list >> [email protected] >> http://lists.qt.nokia.com/mailman/listinfo/qt-creator >> > > > > -- > Thomas Ehrnhoefer > Software Developer, http://tasktop.com > -- Thomas Ehrnhoefer Software Developer, http://tasktop.com _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
