[Qgis-developer] QGIS and platforms

Tom Russo tom.km5vy at gmail.com
Thu Feb 1 18:58:06 EST 2007


On 2/1/07, Martin Dobias <wonder.sk at gmail.com> wrote:

> Newer versions (I've looked into 2.4.6) use qmake's QMAKE_LIBS_THREAD
> variable to find this out. Please try this:
> - create a file, e.g. x.pro with this content:
> message($${QMAKE_LIBS_THREAD})
> - run: qmake x.pro
> - it should report the threading library which will be use, for me it shows:
> Project MESSAGE: -lpthread

No joy.

$ cat > x.pro
message($${QMAKE_LIBS_THREAD})
<control-D>
$ /usr/local/Trolltech/Qt-4.2.2/bin/qmake x.pro
Project MESSAGE:

My cmake is direct from the FreeBSD ports collection, which is installing 2.4.4

My Qt-4.2.2 is built from source, because QT4 isn't in the BSD ports
collection at all.
I configured and built it with no special options.

Looking in my FindQt4.cmake for something like what you posted I find
no block that's like that, and no "IF(UNIX)".  But I do find this:

  ###############################################
  #
  #       configuration/system dependent settings
  #
  ###############################################

  SET(QT_GUI_LIB_DEPENDENCIES "")
  SET(QT_CORE_LIB_DEPENDENCIES "")

[many more lines deleted]
  IF(Q_WS_X11)
    # X11 libraries Qt absolutely depends on
    QT_QUERY_QMAKE(QT_LIBS_X11 "QMAKE_LIBS_X11")
    SEPARATE_ARGUMENTS(QT_LIBS_X11)
    FOREACH(QT_X11_LIB ${QT_LIBS_X11})
      STRING(REGEX REPLACE "-l" "" QT_X11_LIB "${QT_X11_LIB}")
      SET(QT_TMP_STR "QT_X11_${QT_X11_LIB}_LIBRARY")
      FIND_LIBRARY(${QT_TMP_STR} NAMES "${QT_X11_LIB}" PATHS ${QMAKE_LIBDIR_X11}
)
      SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${${QT_TMP_STR}})
    ENDFOREACH(QT_X11_LIB)

    QT_QUERY_QMAKE(QT_LIBS_THREAD "QMAKE_LIBS_THREAD")
    SET(QT_CORE_LIB_DEPENDENCIES ${QT_CORE_LIB_DEPENDENCIES} ${QT_LIBS_THREAD})

    QT_QUERY_QMAKE(QMAKE_LIBS_DYNLOAD "QMAKE_LIBS_DYNLOAD")
    SET (QT_CORE_LIB_DEPENDENCIES ${QT_CORE_LIB_DEPENDENCIES} ${QMAKE_LIBS_DYNLO
AD})

  ENDIF(Q_WS_X11)

That does sure look like it's trying to get the QMAKE_LIBS_THREAD
stuff out of qmake, but isn't getting anything.

Strange, though, I've tried to augment your "x.pro" file with an
additional message:
message($${QT_X11_LIB})
and that, too, prints nothing but "Project MESSAGE:".  I'm suspicious of that.

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 http://kevan.org/brain.cgi?DDTNM
"And, isn't sanity really just a one-trick pony anyway? I mean all you get is
 one trick, rational thinking, but when you're good and crazy, oooh, oooh,
 oooh, the sky is the limit!"  --- The Tick



More information about the Qgis-developer mailing list