PDA

View Full Version : qt-4.5.3 linking issue (excessive pthread)



Ronayn
7th April 2011, 14:43
I am using QT-4.5.3 on a 64bit Fedora 14 HP server.

When I compile my applications I get a massive amount of "-pthread" appearing during the linking stage. The following is an example:

"g++ -m64 -Wl,-rpath,/usr/local/qt-4.5.3/lib -o ctbfee .obj/main.o .obj/logger.o .obj/statuspane.o .obj/mainwindow.o .obj/moc_statuspane.o .obj/moc_mainwindow.o -L/usr/local/qt-4.5.3/lib -lQt3Support -L/usr/local/qt-4.5.3/lib -lQtSql -pthread -pthread -pthread -pthread -lQtXml -pthread -pthread -pthread -pthread -L/usr/X11R6/lib64 -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -lQtGui -pthread -lpng -lfreetype -pthread -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtNetwork -pthread -pthread -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread"

Is this a problem? If so, how can it be fixed.

The reason I am worried about this is because I am getting invalid results (NaN's) from a call to a library function that I installed (BLAS). I was wondering if maybe these copies links of pthread were somehow corrupting the BLAS static libs. (Far fetched, I know, but the BLAS library looks good, and I am running out of ideas :)

SixDegrees
7th April 2011, 15:48
Repeated library declarations will have no result, for bad or for good, on the final executable produced. It is safe to ignore them.

It may be worth checking your project file to ensure it doesn't do anything unusual. But I've seen this sort of thing on older Qt releases for Solaris. It's just sloppiness in how the QMake defaults were put together that is otherwise harmless.