Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, May 2008
QT4.4 on OpenSolaris


Message 1 in thread


QT4.4 in OpenSolaris 2008.5
help, please ...

carlos@solaris:~/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0$ gmake
cd src/tools/moc/ && gmake -f Makefile
gmake[1]: Entering directory
`/export/home/carlos/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/src/tools/moc'
XX -c XXFLAGS -O2 -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE
-DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM
-DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD
-DQT_NO_REGEXP -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT
-DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-I../../../mkspecs/solaris-cc -I. -I../../corelib/arch/generic
-I../../../include -I. -I../../../include/QtCore -I. -I.uic/release-shared
-I/usr/sfw/include -o release-shared/moc.o moc.cpp
gmake[1]: XX: Command not found
gmake[1]: *** [release-shared/moc.o] Error 127
gmake[1]: Leaving directory
`/export/home/carlos/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/src/tools/moc'
gmake: *** [sub-moc-make_default-ordered] Error 2
___________________________________________________________________________________
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!

--
 [ signature omitted ] 

Message 2 in thread

Hi,

> gmake[1]: Entering directory
> `/export/home/carlos/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/src/tools/moc'
> XX -c XXFLAGS -O2 -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE
> -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM
> -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD
> -DQT_NO_REGEXP -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT
> -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> -I../../../mkspecs/solaris-cc -I. -I../../corelib/arch/generic
> -I../../../include -I. -I../../../include/QtCore -I. -I.uic/release-shared
> -I/usr/sfw/include -o release-shared/moc.o moc.cpp
> gmake[1]: XX: Command not found

The problem is that the C++ compiler is identified as XX instead of g++.

How did you configure Qt?

What is the value of QMAKE_CXX in:
~/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/mkspecs/solaris-g++/qmake.conf

What is the output of:
	which qmake
	which gmake

What is the value (if any) of the environment variable QTDIR?

What is the value of CXX in:
~/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/src/tools/moc/Makefile

-- 
 [ signature omitted ] 

Message 3 in thread

Hi,

>> XX -c XXFLAGS -O2 -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS 
>> [...]
>> -I../../../mkspecs/solaris-cc -I. -I../../corelib/arch/generic
> [...]
> The problem is that the C++ compiler is identified as XX instead of g++.

Actually the compiler should be identified as CC, not g++, since you're using 
the solaris-cc mkspecs.

On the other hand, mkspecs/solaris-cc/qmake.conf should contain:

> [...]
> What is the value of QMAKE_CXX in:
> ~/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/mkspecs/solaris-g++/qmake.conf 

Therefore the above should be:
~/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/mkspecs/solaris-cc/qmake.conf

Also what is the output of:
	CC -V

-- 
 [ signature omitted ] 

Message 4 in thread

Hello all,

i have the same problem, i tried both Qt 4.3.4 and 4.4.0, i also tried with 
the Sun compiler as well as with the gnu tools, each time i start from a 
freshly installed OpenSolaris 2008.05 install.

i installed the ss-dev Sun Studio development cluster, added
/opt/SunStudioExpress/bin to my path
in qt directory i typed: ./configure -platform solaris-cc
configure ran fine, but after it completes i typed: make or gmake i got:

cd src/tools/moc/ && gmake -f Makefile
gmake[1]: Entering directory
`/export/home/maged/dev/qt-x11-commercial-src-4.4.0/src/tools/moc'
XX -c
XXFLAGS -O2 -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS
 -DQT_LITE_UNICODE -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM
 -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD -DQT_NO_REGEXP
 -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -DQT_NO_USING_NAMESPACE
 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/solaris-cc -I.
 -I../../corelib/arch/generic -I../../../include -I. -I../../../include/QtCore
 -I. -I.uic/release-shared -I/usr/sfw/include -o release-shared/moc.o
moc.cpp
gmake[1]: XX: Command not found

it seems that Qt/qmake generated XX for the compiler name. my understanding
Qt/qmake should read this from the mkspecs/solaris-cc/qmake.conf where it is
defined as:

QMAKE_CC = cc
QMAKE_CXX = CC
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS

The generated Makefile has the following definitions:
CC = $CC
CXX = $CXX
CFLAGS = $CFLAGS -O
CXXFLAGS = $CXXFLAGS -O2

CXX should be defined as g++ or CC depending on the mkspec definition. The 
$CXX is wrong and gets evaulated as XX by the shell, hence the error.


"Cr0n0s" <cr0n0s@xxxxxxxxxxxxxx> wrote in message 
news:1211942355.483cc5d38061f@xxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> QT4.4 in OpenSolaris 2008.5
> help, please ...
>
> carlos@solaris:~/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0$ gmake
> cd src/tools/moc/ && gmake -f Makefile
> gmake[1]: Entering directory
> `/export/home/carlos/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/src/tools/moc'
> XX -c 
> XXFLAGS -O2 -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE
> -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM
> -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD
> -DQT_NO_REGEXP -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT
> -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> -I../../../mkspecs/solaris-cc -I. -I../../corelib/arch/generic
> -I../../../include -I. -I../../../include/QtCore -I. -I.uic/release-shared
> -I/usr/sfw/include -o release-shared/moc.o moc.cpp
> gmake[1]: XX: Command not found
> gmake[1]: *** [release-shared/moc.o] Error 127
> gmake[1]: Leaving directory
> `/export/home/carlos/Instalar/qt/qt/unix/qt-x11-opensource-src-4.4.0/src/tools/moc'
> gmake: *** [sub-moc-make_default-ordered] Error 2
> ___________________________________________________________________________________
> Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel 
> tem
> tarifas muito baratas esperando por você. Aproveite!
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/ 


--
 [ signature omitted ] 

Message 5 in thread

Quoting Maged Mokhtar <magedmokhtar@xxxxxxxxx>:

[snip]
>
> it seems that Qt/qmake generated XX for the compiler name. my understanding
> Qt/qmake should read this from the mkspecs/solaris-cc/qmake.conf where it is
> defined as:

...

> The generated Makefile has the following definitions:
> CC = $CC
> CXX = $CXX
> CFLAGS = $CFLAGS -O
> CXXFLAGS = $CXXFLAGS -O2
>
> CXX should be defined as g++ or CC depending on the mkspec definition. The
> $CXX is wrong and gets evaulated as XX by the shell, hence the error.

This does look like a bug. Looking at the qmake source,

    t << "CC            = " << var("QMAKE_CC") << endl;

What happens if you cd to src/tools/moc and type

../../../bin/qmake -d -spec `pwd`/../../../mkspecs/solaris-cc
?

A+
Paul



-- 
 [ signature omitted ] 

Message 6 in thread

Hi,

> it seems that Qt/qmake generated XX for the compiler name. my understanding
> Qt/qmake should read this from the mkspecs/solaris-cc/qmake.conf where it is
> defined as:
> 
> QMAKE_CC = cc
> QMAKE_CXX = CC
> QMAKE_CXXFLAGS = $$QMAKE_CFLAGS

This is OK.

> The generated Makefile has the following definitions:
> CC = $CC
> CXX = $CXX
> CFLAGS = $CFLAGS -O
> CXXFLAGS = $CXXFLAGS -O2

This is not OK. It should read:
	CC = cc
	CXX = CC

I have no idea how this could happen.

Just for the purpose of debugging, maybe you could try using the GNU compiler:
	configure -platform solaris-g++

Do you see a difference?

-- 
 [ signature omitted ] 

Message 7 in thread

I tried the GNU compiler ( from the gcc-dev package ) same problem

"Dimitri" <dimitri@xxxxxxxxxxxxx> wrote in message 
news:g1jl3d$5ec$1@xxxxxxxxxxxxxxxx
> Hi,
>
>> it seems that Qt/qmake generated XX for the compiler name. my 
>> understanding
>> Qt/qmake should read this from the mkspecs/solaris-cc/qmake.conf where it 
>> is
>> defined as:
>>
>> QMAKE_CC = cc
>> QMAKE_CXX = CC
>> QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
>
> This is OK.
>
>> The generated Makefile has the following definitions:
>> CC = $CC
>> CXX = $CXX
>> CFLAGS = $CFLAGS -O
>> CXXFLAGS = $CXXFLAGS -O2
>
> This is not OK. It should read:
> CC = cc
> CXX = CC
>
> I have no idea how this could happen.
>
> Just for the purpose of debugging, maybe you could try using the GNU 
> compiler:
> configure -platform solaris-g++
>
> Do you see a difference?
>
> -- 
> Dimitri 


--
 [ signature omitted ] 

Message 8 in thread

Hi,

> I tried the GNU compiler ( from the gcc-dev package ) same problem

You mean with a fresh Qt package (so that qmake is rebuilt from scratch) and 
after:
	configure -platform solaris-g++

If so what happens if you do as suggested by Paul Floyd?

-- 
 [ signature omitted ] 

Message 9 in thread

> You mean with a fresh Qt package (so that qmake is rebuilt from scratch) 
> and after:
> configure -platform solaris-g++

yes this is after wiping out the qt directory and building from scratch,
same issue

> If so what happens if you do as suggested by Paul Floyd?

unfortunately the machine is not with me now.


"Dimitri" <dimitri@xxxxxxxxxxxxx> wrote in message 
news:g1jv34$l3n$1@xxxxxxxxxxxxxxxx
> Hi,
>
>> I tried the GNU compiler ( from the gcc-dev package ) same problem
>
> You mean with a fresh Qt package (so that qmake is rebuilt from scratch) 
> and after:
> configure -platform solaris-g++
>
> If so what happens if you do as suggested by Paul Floyd?
>
> -- 
> Dimitri 


--
 [ signature omitted ] 

Message 10 in thread

Maged Mokhtar wrote:
>>You mean with a fresh Qt package (so that qmake is rebuilt from scratch) 
>>and after:
>>configure -platform solaris-g++
> 
> 
> yes this is after wiping out the qt directory and building from scratch,
> same issue
> 
...

I just had a try with an OpenSolaris 2008.05 live CD. This doesn't 
include the compiler, but I had hoped that I'd be able to mount my hard 
disk with SXCE 89 and compiler installed, and used that. Unfortunately, 
there seems to be a lot of stuff missing from /usr/include on the live 
CD (I'm not sure that I see the point of having some include files, but 
not the std C headers).

FWIW 'make' is really Sun dmake. That was about as far as I managed to get.

A+
Paul
-- 
 [ signature omitted ]