Building QT3/X11 Free within Cygwin Bash Shell

Steven Boothe steven at poiema.org
Fri Feb 25 21:39:44 CET 2005


Ralf Habacker wrote:
> Hi Steven,
> 
> for compiling qt3 you should use recent cvs branch QT_WIN32_3_3_BRANCH 
> or a recent source snapshot from http://kde-cygwin.sf.net/snapshots/qt
> 
> A compile instruction could be found under
> http://cvs.sourceforge.net/viewcvs.py/kde-cygwin/qt-3/cygwin/Attic/README?rev=1.1.2.1&hideattic=0&view=markup 
> 
> 
> The last cygwin binary package could be found here 
> http://webdev.cegit.de/snapshots/kde-cygwin/qt/qt-x11-free-3.3.3-0.tar.bz2
> 
> Regards
> Ralf

Thank you again Ralf, thank you again Peter!

Here is my second pass at trying to work through this exercise today:

1. opened cygwin command line shell
2. cd /
3. tar jxvf qt-x11-free-3.3.3-0.tar.bz2
4. cd /home/cboothe/src/qt-3/build
5. export QTDIR=/home/cboothe/src/qt-3/build
6. export QT_SOURCE_TREE=/home/cboothe/src/qt-3
7. $QT_SOURCE_TREE/configure -platform cygwin-g++ -plugin-imgfmt-mng 
-qt-zlib -qt-gif -qt-libpng -qt-libjpeg -qt-libmng -no-g++-exceptions 
-thread -no-stl -no-sm -no-xft -no-xkb -no-xrender -disable-opengl 
-disable-sql -prefix /opt/qt/3.3 -fast

Which resulted in the following error output:

cboothe at IT-staff ~/src/qt-3/build
$ $QT_SOURCE_TREE/configure -platform cygwin-g++ -plugin-imgfmt-mng 
-qt-zlib -qt-gif -qt-libpng
  -qt-libjpeg -qt-libmng -no-g++-exceptions -thread -no-stl -no-sm 
-no-xft -no-xkb -no-xrender -
disable-opengl -disable-sql -prefix /opt/qt/3.3 -fast
Preparing build tree...

This is the Qt/X11 Free Edition.

You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).

Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
g++ -c -o project.o -I. -Igenerators -Igenerators/unix 
-Igenerators/win32 -Igenerators/mac -I/ho
me/cboothe/src/qt-3/build/include/qmake 
-I/home/cboothe/src/qt-3/build/include -I/home/cboothe/s
rc/qt-3/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES 
-DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_CO
MPRESS -I/home/cboothe/src/qt-3/mkspecs/cygwin-g++ -DHAVE_QCONFIG_CPP 
project.cpp
In file included from project.cpp:36:
project.h:39:25: qstringlist.h: No such file or directory
project.h:40:21: qstring.h: No such file or directory
project.h:41:18: qmap.h: No such file or directory
In file included from project.cpp:36:
...
project.cpp:1346: error: parse error before `for'
project.cpp:1346: error: `d' was not declared in this scope
project.cpp:1346: error: parse error before `;' token
project.cpp:1346: error: syntax error before `++' token
project.cpp:1349: error: syntax error before `+=' token
project.cpp:1363: error: syntax error before `.' token
project.cpp:1364: error: syntax error before `.' token
project.cpp:1365: error: syntax error before `.' token
project.cpp:1366: error: `msg' was not declared in this scope
project.cpp:1366: error: ISO C++ forbids declaration of `doVariableReplace'
    with no type
project.cpp:1366: error: redefinition of `int doVariableReplace'
project.cpp:1016: error: `int doVariableReplace' previously defined here
project.cpp:1366: error: initializer list being treated as compound 
expression
project.cpp:1367: error: `msg' was not declared in this scope
project.cpp:1367: error: ISO C++ forbids declaration of 
`fixEnvVariables' with
    no type
project.cpp:1367: error: redefinition of `int fixEnvVariables'
project.cpp:1017: error: `int fixEnvVariables' previously defined here
project.cpp:1368: error: parse error before `if'
project.cpp:1370: error: `msg' was not declared in this scope
project.cpp:1370: error: ISO C++ forbids declaration of `fprintf' with 
no type
project.cpp:1370: error: redefinition of `int fprintf'
project.cpp:1018: error: `int fprintf' previously defined here
project.cpp:1370: error: initializer list being treated as compound 
expression
project.cpp:1372: error: 'QFile' is used as a type, but is not defined as a
    type.
project.cpp:1373: error: parse error before `if'
project.cpp:1375: error: ISO C++ forbids declaration of `replacement' 
with no
    type
project.cpp:1376: error: parse error before `}' token
project.cpp:1384: error: `var_begin' was not declared in this scope
project.cpp:1385: error: `str' was not declared in this scope
project.cpp:1386: error: `str' was not declared in this scope
project.cpp:1386: error: `var_begin' was not declared in this scope
project.cpp:1386: error: request for member `latin1' in `replacement', 
which is
    of non-aggregate type `int'
project.cpp:1386: error: ISO C++ forbids declaration of `debug_msg' with no
    type
project.cpp:1386: error: redefinition of `int debug_msg'
project.cpp:1175: error: `int debug_msg' previously defined here
project.cpp:1386: error: initializer list being treated as compound 
expression
project.cpp:1387: error: syntax error before `.' token
project.cpp:1388: error: syntax error before `+=' token
make: *** [project.o] Error 1
qmake failed to build. Aborting.

cboothe at IT-staff ~/src/qt-3/build
$

A couple of concerns/questions/observations:

1. After running configure unsuccessfully is it important to rerun 
configure with some option to clean out cached files? Something similer 
to "make clean" when rebuilding a kernal?

2. Same question regarding the qt-3 source directory? Right now I have 
consigned myself to moving the directory and starting fresh. Is that 
good practice?

Thanks!!!


More information about the kde-cygwin mailing list