harakiri
19th July 2010, 13:17
hi everyone,
i have two separate libraries for 32 bit and 64 bit. now i want to check in the project file, if the system is a 32 oder 64 bit system in order to use the correct library.
i am using ubuntu 10.04, Qt version 4.6.2 and i have the following part in my .pro file:
if(getconf LONG_BIT == 64) { #64 bit libs
INCLUDEPATH += x_i
LIBS += -L../x
}
else { #32 bit libs
INCLUDEPATH += y_i
LIBS += -L../y
}
"getconf LONG_BIT == 64" does not seem to work, is there a better way to solve this or is there something wrong with this line?
i have two separate libraries for 32 bit and 64 bit. now i want to check in the project file, if the system is a 32 oder 64 bit system in order to use the correct library.
i am using ubuntu 10.04, Qt version 4.6.2 and i have the following part in my .pro file:
if(getconf LONG_BIT == 64) { #64 bit libs
INCLUDEPATH += x_i
LIBS += -L../x
}
else { #32 bit libs
INCLUDEPATH += y_i
LIBS += -L../y
}
"getconf LONG_BIT == 64" does not seem to work, is there a better way to solve this or is there something wrong with this line?