Hi,
I am trying to create a project to be built on both 64 bit and 32 bit Linux/Windows environment.
This is what I am doing to detect for architecture:
contains(QMAKE_TARGET.arch, x86_64):{
message( "Building for 64 bit")
}
!contains(QMAKE_TARGET.arch, x86_64):{
message( "Building for 32 bit")
}
I am using 64 bit machine with RHEL6, but it always go in to 32 bit. It doesnt detect that I am on 64 bit machine.
My qmake parameters are as follows:
qmake Test.pro -r -spec linux-g++-64 CONFIG+=debug
Am I doing anything wrong . Please suggest.
Or is there any other way of doing this ???
Thanks in advance for youe help.
Regards,
Raj
Bookmarks