[Qt-interest] Qt 4.7.4 build on Solaris 10 (amd64)

Xavier Roche roche+qt at exalead.com
Thu Sep 15 16:00:21 CEST 2011


Hi folks,

Just small hints on how to build Qt 4.7.4 on a Solaris 10 (AMD64) with 
GCC (GCC 3 or 4).

GCC tested:
    * GCC 3.4.3
    * GCC 4.3.4

A small patch is necessary for the build to be successful, and some 
tweaking in a Makefile is also needed (gc-sections causing issues)

Using -D USE_SYSTEM_MALLOC=1 is still necessary, apparently.

==================== Build extract ====================
export PATH=/opt/csw/gcc4/bin:/opt/csw/gcc4/bin/amd64:$PATH
export LD_LIBRARY_PATH=/opt/csw/gcc4/lib/amd64
gpatch -p0 < qt-everywhere-opensource-src-4.7.4.solaris.patch
./configure \
	-platform solaris-g++-64 \
	-shared \
	-opensource \
	-release \
	-L/opt/csw/gcc4/lib/amd64 \
	-D USE_SYSTEM_MALLOC=1
gsed -i -e 's/-Wl,--gc-sections//g' src/3rdparty/webkit/WebCore/Makefile
gmake -j8 && gmake install
==================== End build extract ====================

The build is fine (if it breaks, do another sed in the Makefile) with 
these minor changes.

[ Note: never use libumem (-lumem) or you'll have weird crashes inside 
if_freenameindex() (QNetworkInterfaceManager::interfaceFromIndex(int) => 
QNetworkInterfaceManager::allInterfaces() => 
QNetworkInterfaceManager::scan() => if_freenameindex() => free()) -- I 
did not dig too deeper on the issue, which is definitely weird. ]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt-everywhere-opensource-src-4.7.4.solaris.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110915/875d5fbe/attachment.bin 


More information about the Qt-interest-old mailing list