qt-interest@trolltech.com
[Top] [All Lists]

Re: program without graphic interface

Subject: Re: program without graphic interface
From: Veliczky Rudolf
Date: Wed, 07 Dec 2005 20:09:15 +0100
Konrad Rosenbaum Ãrta:

On Tuesday 06 December 2005 20:44, Veliczky Rudolf wrote:
I've posted a question about this matter to this list a few days ago -
no answer. And now you offer the above...

Hmm, must have missed that one...

I have a console only app with QCoreApplication and with the QT -= gui
option int the pro file.
Everything works fine in windows env., but on linux app keeps searching
for the qtgui lib. qmake generates a Makefile with the qtgui and x11
libs in it.

Strange, it works fine for me.

It would be desirable to omit it, since qtgui lib is more than 5 mb and
our app should run on an embedded-type minimal linux...

Does this works for you seamless? Have you got a working solution for it?

I appended an example .pro file (don't let yourself be worried by the Tcl references in there).

"ldd qcall" gives me this:
       libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0x0000002a9566e000)
libQtCore.so.4 => /usr/local/Trolltech/Qt-4.0.1/lib/libQtCore.so.4 (0x0000002a9582e000)
       libz.so.1 => /usr/lib/libz.so.1 (0x0000002a95a83000)
       libdl.so.2 => /lib/libdl.so.2 (0x0000002a95b97000)
       libpthread.so.0 => /lib/libpthread.so.0 (0x0000002a95c9a000)
       libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x0000002a95db0000)
       libm.so.6 => /lib/libm.so.6 (0x0000002a95f8d000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0000002a96112000)
       libc.so.6 => /lib/libc.so.6 (0x0000002a96220000)
       /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)




        Konrad
------------------------------------------------------------------------

CONFIG += release
QT -= gui

TEMPLATE = app
TARGET = qcall
SOURCES = qcall.cpp
LIBS += -ltcl8.4
INCLUDEPATH += /usr/include/tcl8.4
Hi Konrad,

a little word makes all the difference: release.

Thanks

Rudolf

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>