Helló!
A blogban olvastam a qgtkstyle programról. Gondoltam kipróbálom. A fordításnál kicsit elakadtam. Pár nehézséget már leküzdöttem a google segitségével, de nem jutottam a végére.
Itt akadtam el:
leslie@hp-laptop:~/svn/gtkstyle$ sudo qmake && make
qgtkstyle.pro:9: Unknown replace function: qtLibraryTarget
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/share/qt3/mkspecs/default -I. -I/usr/share/qt3/include -o main.o main.cpp
In file included from main.cpp:24:
qgtkstyle.h:27:28: error: QCleanlooksStyle: No such file or directory
qgtkstyle.h:28:20: error: QPalette: No such file or directory
qgtkstyle.h:29:17: error: QFont: No such file or directory
main.cpp:25:30: error: QtGui/QStylePlugin: No such file or directory
In file included from main.cpp:24:
qgtkstyle.h:34: error: expected class-name before ‘{’ token
qgtkstyle.h:35: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
qgtkstyle.h:37: error: expected ‘;’ before ‘public’
qgtkstyle.h:40: error: expected `;' before ‘void’
qgtkstyle.h:40: error: ‘QApplication’ has not been declared
qgtkstyle.h:41: error: ‘QPalette’ has not been declared
qgtkstyle.h:42: error: ‘QWidget’ has not been declared
qgtkstyle.h:42: error: ‘void QGtkStyle::polish(int*)’ cannot be overloaded
qgtkstyle.h:40: error: with ‘void QGtkStyle::polish(int*)’
qgtkstyle.h:43: error: ‘QWidget’ has not been declared
qgtkstyle.h:44: error: ‘QApplication’ has not been declared
qgtkstyle.h:44: error: ‘void QGtkStyle::unpolish(int*)’ cannot be overloaded
qgtkstyle.h:43: error: with ‘void QGtkStyle::unpolish(int*)’
qgtkstyle.h:45: error: ‘QPalette’ does not name a type
qgtkstyle.h:46: error: ‘PixelMetric’ has not been declared
qgtkstyle.h:46: error: expected ‘,’ or ‘...’ before ‘*’ token
qgtkstyle.h:47: error: ISO C++ forbids declaration of ‘QStyleOption’ with no type
qgtkstyle.h:48: error: ‘StyleHint’ has not been declared
qgtkstyle.h:48: error: expected ‘,’ or ‘...’ before ‘*’ token
qgtkstyle.h:49: error: ISO C++ forbids declaration of ‘QStyleOption’ with no type
qgtkstyle.h:50: error: ‘PrimitiveElement’ has not been declared
qgtkstyle.h:50: error: expected ‘,’ or ‘...’ before ‘*’ token
qgtkstyle.h:51: error: ISO C++ forbids declaration of ‘QStyleOption’ with no type
qgtkstyle.h:52: error: ‘ControlElement’ has not been declared
qgtkstyle.h:52: error: expected ‘,’ or ‘...’ before ‘*’ token
qgtkstyle.h:53: error: ISO C++ forbids declaration of ‘QStyleOption’ with no type
qgtkstyle.h:54: error: ‘ComplexControl’ has not been declared
qgtkstyle.h:54: error: expected ‘,’ or ‘...’ before ‘*’ token
qgtkstyle.h:55: error: ISO C++ forbids declaration of ‘QStyleOptionComplex’ with no type
qgtkstyle.h:56: error: ‘QRect’ does not name a type
qgtkstyle.h:58: error: ‘QSize’ does not name a type
qgtkstyle.h:60: error: ‘QPixmap’ does not name a type
qgtkstyle.h:64: error: ‘QFont’ does not name a type
qgtkstyle.h:65: error: ISO C++ forbids declaration of ‘QList’ with no type
qgtkstyle.h:65: error: expected ‘;’ before ‘<’ token
main.cpp:28: error: expected class-name before ‘{’ token
main.cpp:31: error: ISO C++ forbids declaration of ‘QStyle’ with no type
main.cpp:31: error: expected ‘;’ before ‘*’ token
main.cpp:32: error: ‘QStringList’ does not name a type
main.cpp:39: error: expected constructor, destructor, or type conversion before ‘*’ token
main.cpp:44: error: ‘QStringList’ does not name a type
main.cpp:49: error: expected constructor, destructor, or type conversion before ‘(’ token
make: *** [main.o] Error 1
Mit kell még feltennem hogy leforduljon?
Köszi.