PDA

View Full Version : Qt 4.1 and KDE 3.5.1 on OSX 10.2.8



Ptero-4
4th February 2006, 03:56
Hi. I have an eMac G4 which have OS X 10.2.8 in one partition and LFS 6 PPC in another. I want to install Qt/Mac 4.1 in OSX 10.2, according to trolltech Qt 4.1 have been tested in OSX 10.2.8 and later and is known to work in those versions of OSX. But now trying to install it I keep stumbling in errors during the ./configure or make (I have tried all known switches and always fails in one of those steps). And since I'm installing Qt/Mac to install KDE 3.5.1 and koffice 1.5b1 on my Mac, I wanted to ask.

Is Qt/Mac 4.1 really installable/compilable on Jaguar?
Is KDE 3.5.1/Koffice 1.5b1 compatible with Qt 4+?
And if it isn't which Qt does KDE 3.5.1/Koffice 1.5b1 requires? can it be compiled in Jaguar?

Note: I want to have cups support b/c my printer only works thorugh gimp-print (no OSX or Linux native drivers, only Windoze and OS9 native ones exist).

wysota
4th February 2006, 12:42
Is Qt/Mac 4.1 really installable/compilable on Jaguar?
If it is mentioned as "supported" on Trolls' page, it is installable and compilable, otherwise it's a wild luck and patching. What errors are you getting?


Is KDE 3.5.1/Koffice 1.5b1 compatible with Qt 4+?
And if it isn't which Qt does KDE 3.5.1/Koffice 1.5b1 requires? can it be compiled in Jaguar?

No. KDE 3 requires Qt3 (version 3.3 AFAIR).
The full requirement list is here: http://www.kde.org/info/requirements/3.5.php

Ptero-4
5th February 2006, 07:05
Since KDE/Koffice isn't compatible with Qt 4 I decided to go with Qt 3.3.5 but still have problems.
I used this parameters in the ./configure script:


[PirateBook:/Developer/qt] ptero_4% ./configure -qt-sql-sqlite -no-style-windows -cups -v -no-tablet

And the ./configure went well but then when I do make I got this:


c++ -c -pipe -Wall -W -Os -fPIC -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_NO_DEBUG -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQMAC_ONE_PIXEL_LOCK -DQT_SQL_SQLITE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/Developer/qt/mkspecs/macx-g++ -I. -I3rdparty/sqlite -I3rdparty/libpng -I3rdparty/dlcompat -I../include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Versions/A/Headers -I.moc/release-shared/ -o .obj/release-shared/qpixmap_mac.o kernel/qpixmap_mac.cpp
c++ -c -pipe -Wall -W -Os -fPIC -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_NO_DEBUG -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQMAC_ONE_PIXEL_LOCK -DQT_SQL_SQLITE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/Developer/qt/mkspecs/macx-g++ -I. -I3rdparty/sqlite -I3rdparty/libpng -I3rdparty/dlcompat -I../include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Versions/A/Headers -I.moc/release-shared/ -o .obj/release-shared/qprinter_mac.o kernel/qprinter_mac.cpp
In file included from kernel/qprinter_mac.cpp:47:
../include/qmacstyle_mac.h:58: parse error before `{' token
../include/qmacstyle_mac.h:59: virtual outside class declaration
../include/qmacstyle_mac.h:59: non-member function `const char* className()'
cannot have `const' method qualifier
../include/qmacstyle_mac.h:59: virtual outside class declaration
../include/qmacstyle_mac.h:59: virtual outside class declaration
../include/qmacstyle_mac.h:59: virtual outside class declaration
../include/qmacstyle_mac.h:59: virtual outside class declaration
../include/qmacstyle_mac.h: In function `QObject* qObject()':
../include/qmacstyle_mac.h:59: invalid use of `this' in non-member function
../include/qmacstyle_mac.h: At global scope:
../include/qmacstyle_mac.h:59: parse error before `private'
../include/qmacstyle_mac.h:62: destructors must be member functions
../include/qmacstyle_mac.h:62: virtual outside class declaration
../include/qmacstyle_mac.h:71: non-member function `void drawItem(QPainter*,
const QRect&, int, const QColorGroup&, bool, const QPixmap*, const QString&,
int, const QColor*)' cannot have `const' method qualifier
../include/qmacstyle_mac.h:73: `PrimitiveElement' was not declared in this
scope
../include/qmacstyle_mac.h:73: parse error before `,' token
../include/qmacstyle_mac.h:78: non-member function `void drawPrimitive(...)'
cannot have `const' method qualifier
../include/qmacstyle_mac.h:80: `ControlElement' was not declared in this scope
../include/qmacstyle_mac.h:80: parse error before `,' token
../include/qmacstyle_mac.h:86: non-member function `void drawControl(...)'
cannot have `const' method qualifier
../include/qmacstyle_mac.h:88: `ComplexControl' was not declared in this scope
../include/qmacstyle_mac.h:88: parse error before `,' token
../include/qmacstyle_mac.h:96: non-member function `void
drawComplexControl(...)' cannot have `const' method qualifier
../include/qmacstyle_mac.h:99: `PixelMetric' was not declared in this scope
../include/qmacstyle_mac.h:99: parse error before `,' token
../include/qmacstyle_mac.h:100: non-member function `int pixelMetric(...)'
cannot have `const' method qualifier
../include/qmacstyle_mac.h:103: `ComplexControl' was not declared in this scope
../include/qmacstyle_mac.h:103: parse error before `,' token
../include/qmacstyle_mac.h:106: virtual outside class declaration
../include/qmacstyle_mac.h:106: non-member function `QRect
querySubControlMetrics(...)' cannot have `const' method qualifier
../include/qmacstyle_mac.h:108: `SubRect' was not declared in this scope
../include/qmacstyle_mac.h:108: parse error before `*' token
../include/qmacstyle_mac.h:108: virtual outside class declaration
../include/qmacstyle_mac.h:108: non-member function `QRect subRect(...)' cannot
have `const' method qualifier
../include/qmacstyle_mac.h:110: `ComplexControl' was not declared in this scope
../include/qmacstyle_mac.h:110: parse error before `,' token
../include/qmacstyle_mac.h:115: `StyleHint' was not declared in this scope
../include/qmacstyle_mac.h:115: parse error before `,' token
../include/qmacstyle_mac.h:116: virtual outside class declaration
../include/qmacstyle_mac.h:116: non-member function `int styleHint(...)' cannot
have `const' method qualifier
../include/qmacstyle_mac.h:118: `ContentsType' was not declared in this scope
../include/qmacstyle_mac.h:118: parse error before `,' token
../include/qmacstyle_mac.h:121: non-member function `QSize
sizeFromContents(...)' cannot have `const' method qualifier
../include/qmacstyle_mac.h:131: parse error before `protected'
../include/qmacstyle_mac.h:137: syntax error before `&' token
../include/qmacstyle_mac.h:59: warning: `bool qt_static_property(QObject*, int,
int, QVariant*)' declared `static' but never defined
../include/qmacstyle_mac.h:59: warning: `QMetaObject* staticMetaObject()'
declared `static' but never defined
../include/qmacstyle_mac.h:59: warning: `QString tr(const char*, const char*)'
declared `static' but never defined
../include/qmacstyle_mac.h:59: warning: `QString trUtf8(const char*, const
char*)' declared `static' but never defined
../include/qmacstyle_mac.h:124: warning: `void setFocusRectPolicy(QWidget*,
FocusRectPolicy)' declared `static' but never defined
../include/qmacstyle_mac.h:125: warning: `FocusRectPolicy
focusRectPolicy(QWidget*)' declared `static' but never defined
../include/qmacstyle_mac.h:128: warning: `void setWidgetSizePolicy(QWidget*,
WidgetSizePolicy)' declared `static' but never defined
../include/qmacstyle_mac.h:129: warning: `WidgetSizePolicy
widgetSizePolicy(QWidget*)' declared `static' but never defined
make[2]: *** [.obj/release-shared/qprinter_mac.o] Error 1
make[1]: *** [sub-src] Error 2
make: *** [init] Error 2
[PirateBook:/Developer/qt] ptero_4%

And that's how far I get.
What I can do to make it build?

wysota
5th February 2006, 14:50
Maybe you should try a different compiler?

Ptero-4
5th February 2006, 17:22
I'm using gcc 3.1 which is the one included in OSX 10.2.8

wysota
5th February 2006, 18:01
What happens if you don't provide any arguments to configure?

Ptero-4
6th February 2006, 03:44
ran configure without arguments. It goes well but make fails with this:


c++ -c -pipe -Wall -W -Os -fPIC -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQMAC_ONE_PIXEL_LOCK -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/Developer/qt/mkspecs/macx-g++ -I. -I3rdparty/libpng -I3rdparty/dlcompat -I../include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Versions/A/Headers -I.moc/release-shared/ -o .obj/release-shared/qsocket.o network/qsocket.cppc++ -c -pipe -Wall -W -Os -fPIC -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQMAC_ONE_PIXEL_LOCK -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/Developer/qt/mkspecs/macx-g++ -I. -I3rdparty/libpng -I3rdparty/dlcompat -I../include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Versions/A/Headers -I.moc/release-shared/ -o .obj/release-shared/qsocketdevice.o network/qsocketdevice.cpp
c++ -c -pipe -Wall -W -Os -fPIC -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQMAC_ONE_PIXEL_LOCK -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/Developer/qt/mkspecs/macx-g++ -I. -I3rdparty/libpng -I3rdparty/dlcompat -I../include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Versions/A/Headers -I.moc/release-shared/ -o .obj/release-shared/qsocketdevice_unix.o network/qsocketdevice_unix.cpp
network/qsocketdevice_unix.cpp:46: type specifier omitted for parameter `
socklen_t'
network/qsocketdevice_unix.cpp:46: parse error before `*' token
network/qsocketdevice_unix.cpp: In function `int qt_socket_accept(...)':
network/qsocketdevice_unix.cpp:47: `s' undeclared (first use this function)
network/qsocketdevice_unix.cpp:47: (Each undeclared identifier is reported only once for each function it appears in.)
network/qsocketdevice_unix.cpp:47: `addr' undeclared (first use this function)
network/qsocketdevice_unix.cpp:47: `addrlen' undeclared (first use this
function)
network/qsocketdevice_unix.cpp: At global scope:
network/qsocketdevice_unix.cpp:53: type specifier omitted for parameter `
socklen_t'
network/qsocketdevice_unix.cpp:53: parse error before `)' token
network/qsocketdevice_unix.cpp:60: type specifier omitted for parameter `
socklen_t'
network/qsocketdevice_unix.cpp:60: parse error before `)' token
network/qsocketdevice_unix.cpp: In member function `QSocketDevice::Protocol
QSocketDevice::getProtocol() const':
network/qsocketdevice_unix.cpp:129: `socklen_t' undeclared (first use this
function)
network/qsocketdevice_unix.cpp:129: parse error before `=' token
network/qsocketdevice_unix.cpp:132: `sz' undeclared (first use this function)
network/qsocketdevice_unix.cpp: In member function `int
QSocketDevice::option(QSocketDevice::Option) const':
network/qsocketdevice_unix.cpp:325: `socklen_t' undeclared (first use this
function)
network/qsocketdevice_unix.cpp:325: parse error before `;' token
network/qsocketdevice_unix.cpp:326: `len' undeclared (first use this function)
network/qsocketdevice_unix.cpp: In member function `virtual bool
QSocketDevice::connect(const QHostAddress&, short unsigned int)':
network/qsocketdevice_unix.cpp:412: `socklen_t' undeclared (first use this
function)
network/qsocketdevice_unix.cpp:412: parse error before `;' token
network/qsocketdevice_unix.cpp:424: `aalen' undeclared (first use this
function)
network/qsocketdevice_unix.cpp: In member function `virtual int
QSocketDevice::accept()':
network/qsocketdevice_unix.cpp:598: `socklen_t' undeclared (first use this
function)
network/qsocketdevice_unix.cpp:598: parse error before `=' token
network/qsocketdevice_unix.cpp:602: `l' undeclared (first use this function)
network/qsocketdevice_unix.cpp: In member function `virtual Q_LONG
QSocketDevice::readBlock(char*, long unsigned int)':
network/qsocketdevice_unix.cpp:787: parse error before `;' token
network/qsocketdevice_unix.cpp: In member function `virtual Q_LONG
QSocketDevice::writeBlock(const char*, long unsigned int, const
QHostAddress&, short unsigned int)':
network/qsocketdevice_unix.cpp:970: `socklen_t' undeclared (first use this
function)
network/qsocketdevice_unix.cpp:970: parse error before `;' token
network/qsocketdevice_unix.cpp:980: `slen' undeclared (first use this function)
network/qsocketdevice_unix.cpp: In member function `void
QSocketDevice::fetchConnectionParameters()':
network/qsocketdevice_unix.cpp:1058: parse error before `;' token
make[2]: *** [.obj/release-shared/qsocketdevice_unix.o] Error 1
make[1]: *** [sub-src] Error 2
make: *** [init] Error 2
[PirateBook:/Developer/qt] ptero_4%