[Qgis-developer] QGIS and platforms

Martin Dobias wonder.sk at gmail.com
Fri Feb 2 05:10:56 EST 2007


On 2/2/07, Tom Russo <tom.km5vy at gmail.com> wrote:
> > So it seems that FindQt4 macro is not ready for this situation. If so,
> > we should report it to CMake developers - but could you please check
> > first whether this problem stays also in latest CMake release?
> >
> > And for the current situation - will setting CMAKE_SHARED_LINKER_FLAGS
> > in ccmake to "-pthread" help to continue the build?
>
> Adding "-DCMAKE_SHARED_LINKER_FLAGS=-pthread" to the cmake line does
> indeed allow the compile to continue past where it was dying earlier.
> Now, instead of getting linker errors in making the qgis_gui library
> at 30%, it gets to 59% and complains so:
>
> [ 59%] Building CXX object src/app/CMakeFiles/qgis.dir/moc_qgspythondialog.o
> Linking CXX executable qgis
> /usr/local/Trolltech/Qt-4.2.2/lib/libQtCore.so: undefined reference to
> `pthread_cleanup_pop'
>
> and so forth.

Good, so please try setting also CMAKE_EXE_LINKER_FLAGS and
CMAKE_MODULE_LINKER_FLAGS variables to -pthread and I hope it will
build everything.

Martin



More information about the Qgis-developer mailing list