[kde-solaris] Re: QT - 64bit

Steve Evans stevee at zuken.co.uk
Fri May 30 10:47:12 CEST 2003

Hash: SHA1

On 29 May 2003, lists at apdtech.com wrote:

> Hello,
> I would like to build QT 64bit on my system. I am currently running
> Solaris 9, everything else I have installed is 64bit. Then I am
> going to build KDE 3x 64bit. GCC 3.2.2 is my compiler.
> Problem is if I choose:
> 	solaris-64 as my platform i get the following error:
> 	/usr/local/src/sys/qt-x11-free-3.1.2#CFLAGS=-m64
> 	LDFLAGS=-m64 CXXFLAGS=-m64 ./configure \
> 	> --prefix=/usr/local/qt-3.1.2 -system-libpng \
> 	> -system-libjpeg -platform solaris-64 \
> 	> -system-zlib -shared
> 	This is the Qt/X11 Free 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... /usr/local/bin/make -f
> 	Makefile qmake make[1]: Entering directory
> 	`/usr/local/src/sys/qt-x11-free-3.1.2/qmake' CC -c -o
> 	project.o -I. -Igenerators -Igenerators/unix
> 	-Igenerators/win32 -Igenerators/mac
> 	-I/usr/local/src/sys/qt-x11-free-3.1.2/include/qmake
> 	-I/usr/local/src/sys/qt-x11-free-3.1.2/include
> 	-I/usr/local/src/sys/qt-x11-free-3.1.2/include
> 	-I/usr/local/src/sys/qt-x11-free-3.1.2/mkspecs/solaris-cc-64
> 	project.cpp make[1]: CC: Command not found make[1]: ***
> 	[project.o] Error 127 make[1]: Leaving directory
> 	`/usr/local/src/sys/qt-x11-free-3.1.2/qmake' make: ***
> 	[uqmake] Error 2 qmake failed to build. Aborting.
> Ok so f' solaris-64 and I try solaris-g++. It works fine, however
> wehen I set flags CXXFLAGS and CFLAGS and LDFLAGS to -m64 the
> compiler doesnt pick it up.
> What am I doing wrong?

The QT build process doesn't use CXXFLAGS etc. from the environment,
instead they are set in the qmake.conf file for the platform, which
can be found in the directory mkspecs/<platform>, so you could edit
that file to add the -m64 flag. However in my copy of QT 3.1.2 there
is a solaris-g++-64 platform, which appears to have that switch.
Therefore your best bet is to build using a platform of

- -- 
Steve Evans,
Zuken Limited,                     TEL:   +44 (0)1454 207800 ext 8607
1500 Aztec West,                   Fax:   +44 (0)1454 207803
Almondsbury,                       mailto:stevee at zuken.co.uk
Bristol, BS32 4RF, UK              Web:   http://www.zuken.com
Registered Linux user #217906:     http://counter.li.org
Public Encryption Key:             http://www.gorbag.com/public-key-work.html
Version: GnuPG v1.2.2 (SunOS)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>


More information about the kde-solaris mailing list