KDE-cygwin devel incomplete?

Chris Hart chriscorp at web.de
Tue May 13 17:11:40 CEST 2003


Hi,

Great job on the KDE packages. I tried to follow the QT tutorial after installing the devel package and quickly realised that qmake and other stuff was missing (in my humble opinion they should be part of the devel package, ideally whoever installs devel should be able to build a possible source package easily). 

Trying to fetch the Qt tarball from sourceforge I noticed that only an outdated one is available, somebody please rectify this. Unfortunately, mkspecs files or the QMAKESPEC variable are not included (qmake.exe is included), and by fetching the latest Qt-free from troll.no I was able to convince qmake to "work" with the help of the spec files under mkspecs/cygwin-g++ , but the result is quite a useless makefile with little Qt-specific information, that can't build Hello World (see results appended). I'd appreciate it if -devel was a couple of megabytes bigger and was able to build Hello World out of the box, then one could really use the included documentation and investigate the more subtle issues of the port.

Thanks,

CH  (a clueless Qt user)

$ cat main.cpp
#include <qapplication.h>
#include <qpushbutton.h>


int main( int argc, char **argv )
{
    QApplication a( argc, argv );

    QPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );

    a.setMainWidget( &hello );
    hello.show();
    return a.exec();
}

Part of Makefile:
CC       = gcc
CXX      = g++
LEX      = flex
YACC     = byacc
CFLAGS   = -pipe -Wall -W -O2 -DQT_NO_DEBUG
CXXFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG
LEXFLAGS =
YACCFLAGS= -d
INCPATH  = -I$(QTDIR)/include -I/usr/local/qt/mkspecs
LINK     = g++
LFLAGS   =
LIBS     = $(SUBLIBS) -L/usr/X11R6/lib -lXext -lX11
AR       = ar cqs
RANLIB   =
MOC      = $(QTDIR)/bin/moc
UIC      = $(QTDIR)/bin/uic
QMAKE    = qmake
TAR      = tar -cf
GZIP     = gzip -9f
COPY     = cp -f
COPY_FILE= $(COPY) -p
COPY_DIR = $(COPY) -pR
DEL_FILE = rm -f
DEL_DIR  = rmdir
MOVE     = mv -f

####### Output directory

OBJECTS_DIR = ./

####### Files

HEADERS =
SOURCES = main.cpp
OBJECTS = main.o
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC   =
OBJMOC =
DIST     =
QMAKE_TARGET = qt
DESTDIR  =
TARGET   = qt

$ make
g++  -o qt main.o   -L/usr/X11R6/lib -lXext -lX11
main.o(.text+0x4c):main.cpp: undefined reference to `QApplication::QApplication[in-ch
arge](int&, char**)'
main.o(.text+0x5c):main.cpp: undefined reference to `QString::QString[in-charge](char
 const*)'
main.o(.text+0x7e):main.cpp: undefined reference to `QPushButton::QPushButton[in-char
ge](QString const&, QWidget*, char const*)'
main.o(.text+0x99):main.cpp: undefined reference to `QString::shared_null'
main.o(.text+0xa3):main.cpp: undefined reference to `QStringData::deleteSelf()'
main.o(.text+0xbb):main.cpp: undefined reference to `QPushButton::resize(int, int)'
main.o(.text+0xc7):main.cpp: undefined reference to `QApplication::setMainWidget(QWid
get*)'
main.o(.text+0xcf):main.cpp: undefined reference to `QWidget::show()'
main.o(.text+0xd7):main.cpp: undefined reference to `QApplication::exec()'
main.o(.text+0xe1):main.cpp: undefined reference to `QPushButton::~QPushButton [in-ch
arge]()'
main.o(.text+0xe9):main.cpp: undefined reference to `QApplication::~QApplication [in-
charge]()'
main.o(.text+0x100):main.cpp: undefined reference to `QString::shared_null'
main.o(.text+0x129):main.cpp: undefined reference to `QString::shared_null'
main.o(.text+0x133):main.cpp: undefined reference to `QStringData::deleteSelf()'
main.o(.text+0x13d):main.cpp: undefined reference to `QString::shared_null'
main.o(.text+0x156):main.cpp: undefined reference to `QPushButton::~QPushButton [in-c
harge]()'
main.o(.text+0x166):main.cpp: undefined reference to `QApplication::~QApplication [in
-charge]()'
collect2: ld returned 1 exit status
make: *** [qt] Error 1


________________________________________________________________
Mit der Grupppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179




More information about the kde-cygwin mailing list