Trolltech Home | QSA-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

QSA-interest Archive, February 2006
qsa installation problem


Message 1 in thread

Hi,
I'm trying to build qsa-1.1.3 with qt-3.3.5. I'm getting the following 
error during build.

=======
cd enums && qmake enums.pro 
QMAKE_ABSOLUTE_SOURCE_PATH="/nfs/skglnx/home/skg/Packages/Gui-Packages/Qt3/qt-x11-free-3.3.5/examples" 
"CONFIG+=xml table sql network" 
"QSA_INSTALL_PREFIX=/nfs/skglnx/home/skg/Packages/Gui-Packages/Qt3/qt-x11-free-3.3.5" 
-o Makefile
Project LOAD(): Feature qsa cannot be found.
=======

What does that mean? How to get rid of it .

I'm using gcc-4.0.2 compiler.

Surya

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx


Message 2 in thread

This is my configuration:

  VS2005 Pro
  qt-win-commercial-4.1.0-vs2005.exe
  qt-vsintegration-1.1.0.exe
  qsa-win-eval-1.2.0.exe

Basicly I try to create a console program executing a QSA script. Here
is a brief description of what I was doing:

- Start vs2005
- File - New - Project...
- Qt Projects - Qt Console Application
  Name: qsatest
  [OK]
- Qt4 console project wizard: [Finish]

Edit main.cpp as:

------------------------------8<------------------------------
#include <QCoreApplication>
#include <QTextStream>
#include <qsinterpreter.h>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QString script("x = 'hello from QSA';");
    QSInterpreter* qsi(QSInterpreter::defaultInterpreter());
    QString ret(qsi->evaluate(script).toString());
    QTextStream out(stdout);
    out << "Return: " << ret << endl;
    return a.exec();
}
------------------------------8<------------------------------

Compilation failed because it wants to include 'QWidget' from
qseditor.h(45). I dont want to create a gui application at all, and
also dont need qseditor. But anyway, I added $(QTDIR)\include\QtGui to
the list of additional include directories to satisfy the compiler.

Then it compiled, but failed to link because the QSInterpreter code is
not found. I manually added qsa1.lib to the list of additional
libraries and then it also linked.

Now when I run it, I get an error since it cannot find MSVCP80.dll. I
never needed that DLL in Qt projects before, and cannot imagine why it
should be required for QSA (the standard QSA samples also work fine
without that DLL.)

I am now stuck and cannot find any hint what else might be wrong. In
QSA doc is says that one shoud add

    CONFIG += qsa

To the .pro file. But when working with the vs integration there is no
.pro file, everything is in the project settings. So what else does
this qmake option include besides adding the qsa lib?

Peter

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx


Message 3 in thread

Sorry to replying to myself, but I figured out the problem was because
the eval version of QSA only creates the non-debug library qsa1.lib,
whereas the default vs2005 Qt projects are created for debugging.
I changed the vs2005 project configuration from "Debug" to "Release"
and now the testprogram works as expected.

Is it possible to create the debug library qsad1.lib by appending a
special parameter to configure or nmake when compiling QSA, or is it a
wanted crippling of the eval version not to have the debug libraries?

Freundliche Grüsse
Peter Koch
--------------------------------
IBK Software AG
Bondastrasse 45
CH-7000 Chur
Telefon +41 81 3228300
Telefax +41 81 3228384
EMail peter.koch@xxxxxxxxxxxxxxx
--------------------------------


Am Freitag, 3. Februar 2006, 08:28:30 schrieben Sie:

> This is my configuration:

>   VS2005 Pro
>   qt-win-commercial-4.1.0-vs2005.exe
>   qt-vsintegration-1.1.0.exe
>   qsa-win-eval-1.2.0.exe

> Basicly I try to create a console program executing a QSA script. Here
> is a brief description of what I was doing:

> - Start vs2005
> - File - New - Project...
> - Qt Projects - Qt Console Application
>   Name: qsatest
>   [OK]
> - Qt4 console project wizard: [Finish]

> Edit main.cpp as:

> ------------------------------8<------------------------------
> #include <QCoreApplication>
> #include <QTextStream>
> #include <qsinterpreter.h>

> int main(int argc, char *argv[])
> {
>     QCoreApplication a(argc, argv);
>     QString script("x = 'hello from QSA';");
>     QSInterpreter* qsi(QSInterpreter::defaultInterpreter());
>     QString ret(qsi->evaluate(script).toString());
>     QTextStream out(stdout);
>     out << "Return: " << ret << endl;
>     return a.exec();
> }
> ------------------------------8<------------------------------

> Compilation failed because it wants to include 'QWidget' from
> qseditor.h(45). I dont want to create a gui application at all, and
> also dont need qseditor. But anyway, I added $(QTDIR)\include\QtGui to
> the list of additional include directories to satisfy the compiler.

> Then it compiled, but failed to link because the QSInterpreter code is
> not found. I manually added qsa1.lib to the list of additional
> libraries and then it also linked.

> Now when I run it, I get an error since it cannot find MSVCP80.dll. I
> never needed that DLL in Qt projects before, and cannot imagine why it
> should be required for QSA (the standard QSA samples also work fine
> without that DLL.)

> I am now stuck and cannot find any hint what else might be wrong. In
> QSA doc is says that one shoud add

>     CONFIG += qsa

> To the .pro file. But when working with the vs integration there is no
> .pro file, everything is in the project settings. So what else does
> this qmake option include besides adding the qsa lib?

> Peter

> To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx


Message 4 in thread

On Fri, 3 Feb 2006, Surya Kiran Gullapalli wrote:

> cd enums && qmake enums.pro
> QMAKE_ABSOLUTE_SOURCE_PATH="/nfs/skglnx/home/skg/Packages/Gui-Packages/Qt3/qt-x11-free-3.3.5/examples"

This looks suspicous to me. Why /examples ? Have you set QTDIR correctly?

> "CONFIG+=xml table sql network"
> "QSA_INSTALL_PREFIX=/nfs/skglnx/home/skg/Packages/Gui-Packages/Qt3/qt-x11-free-3.3.5"
> -o Makefile
> Project LOAD(): Feature qsa cannot be found.
> =======
>
> What does that mean? How to get rid of it .

qmake couldn't find the file $QTDIR/mkspecs/features/qsa.prf.

Harri.

To unsubscribe - send "unsubscribe" in the subject to qsa-interest-request@xxxxxxxxxxxxx