|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
qt build problem.I have download qt 3.3.8 from trolltech.com mirrors. I applied following
commands: bash$ echo $PWD /usr/local bash$ mv /home/arn/qt-x11-free-3.3.8.tar.gz ./ bash$ gunzip qt-x11-free-3.3.8.tar.gz && tar xvf qt-x11-free-3.3.8.tar bash$ mv qt-x11-free-3.3.8 qt bash$ cd qt Then I set variables in .profile QTDIR=/usr/local/qt PATH=$QTDIR/bin:$PATH MANPATH=$QTDIR/doc/man:$MANPATH LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH export QTDIR PATH MANPATH LD_LIBRARY_PATH Then I tried to configure. bash$ echo $QTDIR /usr/locat/qt bash$ ./configure This is the Qt/X11 Open Source 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... CC -c -o project.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/usr/local/qt/include/qmake -I/usr/local/qt/include -I/usr/local/qt/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/local/qt/mkspecs/solaris-cc -DHAVE_QCONFIG_CPP project.cpp make: CC: Command not found make: *** [project.o] Error 127 qmake failed to build. Aborting. As a possible solution I made a symbolic link to gcc with the name CC (as root) bash# ln -s /usr/sfw/bin/gcc /usr/sfw/bin/CC Then tried to configure(back to normal user): bash$ ./configure This is the Qt/X11 Open Source 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... CC -c -o project.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/usr/local/qt/include/qmake -I/usr/local/qt/include -I/usr/local/qt/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/local/qt/mkspecs/solaris-cc -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.h:50: error: `QString' does not name a type project.h:53: error: ISO C++ forbids declaration of `QMap' with no type project.h:53: error: expected `;' before '<' token project.h:54: error: expected `,' or `...' before '&' token project.h:54: error: ISO C++ forbids declaration of `QString' with no type project.h:55: error: expected `,' or `...' before '&' token project.h:55: error: ISO C++ forbids declaration of `QString' ............................................. etc thousands of errors....................... Should I have to specify configure options for Solaris? I am not sure if I have to build as regular user or super user! I have tried as regular user above. I am using Solaris 10 update 6 on an x86 machine. Please tell me details. I am a newbie. ___________________________________________________ This message is from the kde-solaris mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde-solaris. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html. |
|
|
Re: qt build problem.On Mon, 05 Jan 2009 02:52:54 +0600, <atiqcse@...> wrote: > bash$ ./configure > This is the Qt/X11 Open Source 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... > CC -c -o project.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 > -Igenerators/mac -I/usr/local/qt/include/qmake -I/usr/local/qt/include > -I/usr/local/qt/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES > -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS > -I/usr/local/qt/mkspecs/solaris-cc -DHAVE_QCONFIG_CPP project.cpp > make: CC: Command not found > make: *** [project.o] Error 127 > qmake failed to build. Aborting. > Well, I have got to know that I have to use -platform solaris-g++ option. But still error remains: bash$ ./configure -platform solaris-g++ This is the Qt/X11 Open Source 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/usr/local/qt/include/qmake -I/usr/local/qt/include -I/usr/local/qt/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/local/qt/mkspecs/solaris-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.h:50: error: `QString' does not name a type project.h:53: error: ISO C++ forbids declaration of `QMap' with no type project.h:53: error: expected `;' before '<' token project.h:54: error: expected `,' or `...' before '&' token project.h:54: error: ISO C++ forbids declaration of `QString' with no type project.h:55: error: expected `,' or `...' before '&' token project.h:55: error: ISO C++ forbids declaration of `QString' with no type project.h:56: error: expected `,' or `...' before '&' token project.h:56: error: ISO C++ forbids declaration of `QString' with no type project.h:56: error: `bool QMakeProject::doProjectTest(int)' and `bool QMakeProject::doProjectTest(int)' cannot be overloaded project.h:57: error: expected `,' or `...' before '&' token project.h:57: error: ISO C++ forbids declaration of `QStringList' with no type project.h:58: error: `QString' does not name a type project.h:65: error: expected `,' or `...' before '&' token project.h:65: error: ISO C++ forbids declaration of `QString' with no type project.h:66: error: `uchar' has not been declared project.h:66: error: ISO C++ forbids declaration of `cmd' with no type project.h:66: error: `bool QMakeProject::read(int)' and `bool QMakeProject::read(int)' cannot be overloaded project.h:68: error: `QString' does not name a type project.h:69: error: `QString' does not name a type project.h:71: error: expected `,' or `...' before '&' token project.h:71: error: ISO C++ forbids declaration of `QString' with no type project.h:72: error: ISO C++ forbids declaration of `QStringList' with no type project.h:72: error: expected `;' before '&' token project.h:73: error: `QString' does not name a type project.h:74: error: ISO C++ forbids declaration of `QMap' with no type project.h:74: error: expected `;' before '<' token project.h:75: error: expected `,' or `...' before '&' token project.h:75: error: ISO C++ forbids declaration of `QString' with no type project.h:79: error: expected `,' or `...' before '&' token project.h:79: error: ISO C++ forbids declaration of `QString' with no type project.h:79: error: `bool QMakeProject::read(int)' and `bool QMakeProject::read(int)' cannot be overloaded project.h:83: error: `QString' does not name a type project.h:96: error: `QString' does not name a type project.h:99: error: expected `,' or `...' before '&' token project.h:100: error: ISO C++ forbids declaration of `QString' with no type project.h: In member function `bool QMakeProject::isEmpty(int)': project.h:100: error: `vars' undeclared (first use this function) project.h:100: error: (Each undeclared identifier is reported only once for each function it appears in.) project.h:100: error: `v' undeclared (first use this function) project.h: At global scope: project.h:102: error: expected init-declarator before '&' token project.h:102: error: expected `,' or `;' before '&' token ................................................................ thousands of errors.......................................... Please help.. ___________________________________________________ This message is from the kde-solaris mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde-solaris. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html. |
| Free embeddable forum powered by Nabble | Forum Help |