[kde-solaris] qt build problem.

atiqcse at smile.com.bd atiqcse at smile.com.bd
Sun Jan 4 21:52:54 CET 2009


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.



More information about the kde-solaris mailing list