[Qgis-developer] QGIS and platforms

Tom Russo tom.km5vy at gmail.com
Thu Feb 1 17:30:20 EST 2007


On 2/1/07, Martin Dobias <wonder.sk at gmail.com> wrote:
> On 2/1/07, Tom Russo <tom.km5vy at gmail.com> wrote:
> >
> > The failure is in the link of the qgis application:
> >
> > [ 30%] Built target qgis_gui
> > Linking CXX executable qgis
[...]
> > /usr/local/Trolltech/Qt-4.2.2/lib/libQtCore.so: undefined reference to
> > `pthread_cleanup_pop'
> > [etc.]
>
> That's interesting that the linking fails for qgis_gui library - thus
> qgis_core library must have compiled well.
>
> Just to make sure - do you use CMake in version 2.4.3 or later?

cmake --version reports:
cmake version 2.4-patch 4

according to the tarball that was used to build it it's 2.4.4


> Can you check your CMakeCache.txt file in root of your build to see
> what is the value of qgis_gui_LIB_DEPENDS variable? Mine looks like
> this - pthread is there.
>qgis_gui_LIB_DEPENDS:STATIC=/usr/lib/libQtCore.so;-lpthread;/usr/lib/libQtCore.so;dl;/usr/lib/libQtGui.so;/usr/lib/libQtGui.so;-lSM;-lICE;/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libQt3Support.so;/usr/lib/libQt3Support.so;/usr/lib/libQtNetwork.so;/usr/lib/libQtNetwork.so;/usr/lib/libQtXml.so;/usr/lib/libQtXml.so;qgis_core;

Nope.  Nowhere to be found:

 qgis_gui_LIB_DEPENDS:STATIC=/usr/local/Trolltech/Qt-4.2.2/lib/libQt3Support.so;/
usr/local/Trolltech/Qt-4.2.2/lib/libQtSvg.so;/usr/local/Trolltech/Qt-4.2.2/lib/l
ibQtGui.so;/usr/local/lib/libpng.so;/usr/X11R6/lib/libSM.so;/usr/X11R6/lib/libIC
E.so;/usr/X11R6/lib/libXi.so;/usr/X11R6/lib/libXrender.so;/usr/X11R6/lib/libXran
dr.so;/usr/X11R6/lib/libXcursor.so;/usr/X11R6/lib/libXinerama.so;/usr/local/lib/
libfreetype.so;/usr/X11R6/lib/libfontconfig.so;/usr/X11R6/lib/libXext.so;/usr/X1
1R6/lib/libX11.so;/usr/lib/libm.so;/usr/local/Trolltech/Qt-4.2.2/lib/libQtXml.so
;/usr/local/Trolltech/Qt-4.2.2/lib/libQtNetwork.so;/usr/local/Trolltech/Qt-4.2.2
/lib/libQtCore.so;/usr/lib/libz.so;qgis_core;

> Also can you try to add this line at the end of CMakeLists.txt in root
> dir of qgis sources?
> MESSAGE (STATUS "Threads: ${CMAKE_THREAD_LIBS_INIT}")
> And see what value will it show when you run CMake.

This is what cmake outputs.

> cmake -DGRASS_PREFIX=/usr/local/grass-6.3.cvs -DQT_QMAKE_EXECUTABLE=/usr/local/Trolltech/Qt-4.2.2/bin/qmake .
-- Found Proj: /usr/local/lib/libproj.so
-- Found Sqlite3: /usr/local/lib/libsqlite3.so
-- Found GEOS: /usr/local/lib/libgeos.so
-- Found GDAL: /usr/local/lib/libgdal.so
-- Found PostgreSQL: /usr/local/lib/libpq.so
-- Found Expat: /usr/local/lib/libexpat.so
-- Using GSL from /usr/local
-- Found GRASS: /usr/local/grass-6.3.cvs (6.3.cvs)
-- Python libraries found
-- SIP not found!
-- PyQt4 not found!
-- Python bindings disabled due dependency problems!
-- Found Qt-Version 4.2.2
-- Threads:
-- Configuring done
-- Generating done
-- Build files have been written to: /users/russo/src/qgis_unstable

That is, it finds nothing when looking for threads.

-- 
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