[kde-solaris] STUDIO 11 is FREE (was Re: qt on solaris )

Lars Tunkrans lars.tunkrans at bredband.net
Mon Nov 21 18:30:02 CET 2005


truename wrote:

>hi, I want to compile qt 3.3.4 on solaris 10, but wrong as follow :
>
>#./configure
>this is the Qt/X11 Open Source Edition
>
>You are licensed ......
>
>Creating qmake.Please wait ...
>CC -c -o projict.0 ....
>
>gmake:cc:Command not found
>gmake: *** [project.o] error 127
>qmake failed to build .aborting.
>
>I have looked up much documents. This wrong means I 
>don't install solaris   cc compiler,but solaris cc compiler is not free software,
>how can  I do? can i use gcc to replace cc,but how can i do it?
>
>Could anyone to give me a answer? Best wishes to You!
>  
>
******** SUN Studio 11 is now free to use for anyone. ******************

Download as much as you like.

http://www.sun.com/software/products/studio/index.xml
http://www.sun.com/software/products/studio/buy.xml

You will need a Solaris 10 machine with a Developer Installation .
If you have installed All of Solaris 10 you are OK. I you just selected
END User installation when you installed Solaris 10 , You should do an
uppgrade or
a re-installtion of your server first.



The first thing you need to do when using any compiler is to configure your
Build environment in a useful fasion. To set up a user account on
Solaris 10 to utilise the studio 11 compiler suite, I reccomend the
following
setup in regard to the environment variables that you need.

PATH=/opt/SUNWspro/bin:/usr/ccs/bin:$PATH ; export PATH
CC=/opt/SUNWspro/bin/cc ;export CC
CXX=/opt/SUNWspro/bin/CC ; export CXX
LDFLAGS="-L/usr/lib -R/usr/lib -L/usr/sfw/lib -R/usr/sfw/lib
-L/usr/openwin/lib -R/usr/openwin/lib"
export LDFLAGS

CFLAGS and CXXFLAGS needs to be tuned to the machine you are compiling on
Two examples:

For a SUNBLADE 1500 workstation :
CFLAGS="-fast -xtarget=ultra3i -xarch=v8plusb"
CXXFLAGS="-fast -xtarget=ultra3i -xarch=v8plusb"
export CFLAGS CXXFLAGS

For a Athlon64 PC workstation :

CFLAGS="-fast -xtarget=opteron -xarch=amd64a"
CXXFLAGS="-fast -xtarget=opteron -xarch=amd64a"
export CFLAGS CXXFLAGS

Here is the User guide !

http://docs.sun.com/app/docs/doc/819-3688

Have Fun !

//Lars







More information about the kde-solaris mailing list