OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: R.M. Klippstein on June 04, 2014, 05:30:04 am

Title: QT Question
Post by: R.M. Klippstein on June 04, 2014, 05:30:04 am
I have QT4 installed on 2.2 beta2. Now I need to compile  a package that needs QT3 (Headers) installed. Question is, Can I have both QT4 and QT3 installed at the same time?

thanks,  klipp
Title: Re: QT Question
Post by: Dave Yeo on June 04, 2014, 06:35:43 am
You should be able to install the QT3 headers and libs in a different location and use environment variables or flags to differentiate. C_INCLUDE_PATH, CPLUS_INCLUDE_PATH and LIBRARY_PATH or CFLAGS=-Ipath/to/qt3/include, CPLUSFLAGS=-lpath/to/qt3/include, LDFLAGS=-Lpath/to/qt3/lib.
Even better if the developers gave this some thought and the defaults are /usr/include/qt4 and /usr/include/qt3 along with adding a suffix to the libraries to differentiate them. eg libqt4.lib and libqt3.lib
I don't have the QT developers kit installed.