Author Topic: QT Question  (Read 1767 times)

R.M. Klippstein

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 265
    • View Profile
QT Question
« 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

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 11
  • -Receive: 169
  • Posts: 2433
    • View Profile
Re: QT Question
« Reply #1 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.