[kde-solaris] qt on solaris
李先波
coralbird at yeah.net
Wed Nov 23 10:25:45 CET 2005
I am using SunStudio compiler.
this is my profile setting :
PATH=$PATH:/opt/csw/bin:/opt/csw/kde-gcc/bin:/opt/csw/kde-gcc/include:/opt/csw/kde-gcc/lib:/opt/csw/gcc3/bin:/usr/sfw/bin:/usr/ccs/bin:/opt/sfw/bin:/usr/ucb/:/export/home/MySunstdio11/SUNWspro/bin;
export PATH
cc=/export/home/MySunstdio11/SUNWspro/bin/cc;export cc
CXX=/export/home/MySunstdio11/SUNWspro/bin/cc;export CXX
QTDIR=/opt/csw/qt3.4.4/qt-x11-free-3.3.4
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
I don't set LDFlags ,CFLAGS and CXXFLAGS,In fact I don't know how to set.:(
I konw CFLAGS and CXXFLAGS is c and c++ compile option,
maybe this is the cause of mistake?
my machine is x86(DELL GX280).please give a usable setting of CFLAGS and CXXFLAGS.
w hat LDFLAGS stand for?
too many question to all of you,and i program on windows for five years,maybe
I still not be ready to work on unix and linux.
Linda
> it looks like you are using gcc but are using CFLAGS/CXXFLAGS for SunStudio.
>
> this won't work. :-)
>
> -KPIC is a SunStudio compiler flag and it tells the compiler to generate
> Position Independent Code.
>
> the equivalent for gcc is -fPIC -DPIC
>
> the 't' invalid options comes from passing -mt to gcc/g++. -mt is also a
> SunStudio compiler flag, and it tells the compiler to use thread-safe API's
> and interfaces. it is usually used in conjunction with -D_REENTRANT. you can
> pass -D_REENTRANT to gcc, but gcc will not like '-mt' at all.
>
> i would recommend you check your CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS, and make
> sure they are appropriate for gcc/g++. otherwise you will run into endless
> grief. the compiler flags for gcc/g++ and SunStudio10 are incompatible (with
> the exception of basic -I and -L).
>
> :-)
>
> --Stefan
>
> --
> Stefan Teleman 'Nobody Expects the Spanish Inquisition'
> steleman at nyc.rr.com -Monty Python
>
More information about the kde-solaris
mailing list