[OpenIndiana-discuss] compiling qt4 with gcc
Apostolos Syropoulos
asyropoulos at yahoo.com
Thu May 19 19:25:01 UTC 2011
Hello,
The last few days I tried to compile Qt 4.7.3 (i.e., the latest
stable version). I wanted to use gcc in order to be able to
compile other things that, to the best of my knowledge, do
not compile with solstudio. I have used 4.5.3 and then 4.6.0
but it failed. However, the instructions in the following page
http://doc.qt.nokia.com/4.7-snapshot/platform-notes-x11.html
are very clear: one needs to use gcc that makes use of GNU ld
and GNU as. So I recompiled gcc 4.6.0 with, among others, the
following options
--with-gnu-ld --with-ld=/usr/gnu/bin/ld
--with-gnu-as --with-as=/usr/sfw/bin/gas
Next, the resulting compiler was used to successfully compile Qt.
Problem solved!
Now, I believe that if the system is going to include the gcc
compiler (I mean a recent version not the ancient one...),
then this compiler must be compiled so to use GNU ld and GNU as.
A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece
More information about the OpenIndiana-discuss
mailing list