PDA

View Full Version : loading two sets of Qt binaries into the same process



scarecr0w132
26th May 2013, 10:21
Hi,
I'm receiving the following error.


On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x109409760) is not the object's thread (0x108774850).
Cannot move to target thread (0x109409760)

It's including both debug and release versions for some libraries and I can't see why.

I'm using qt 5.02 on mac
No compiling errors

Libraries being loaded (small snippet)



dyld: loaded: /usr/local/Qt-5.0.2/lib/libQt5Widgets.5.dylib
dyld: loaded: /usr/local/Qt-5.0.2/lib/libQt5Widgets_debug.5.dylib

dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqtga.dylib
dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqtga_debug.dylib

dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqtiff.dylib
dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqtiff_debug.dylib

dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqwbmp.dylib
dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqwbmp_debug.dylib

My .pro file

QT += core gui
QT += widgets

CONFIG += x86_64
CONFIG += debug
SOURCES += ApplicationCommon.cxx \
DocumentCommon.cxx \
Material.cxx \
MDIWindow.cxx \
Transparency.cxx \
View.cxx \
hi222.cpp


HEADERS += ApplicationCommon.h \
CommonSample.h \
DocumentCommon.h \
Material.h \
MDIWindow.h \
Transparency.h \
View.h \

INCLUDEPATH += "/Users/stephenneander/Desktop/oce6.6/build/include/oce" \
"/usr/local/Qt-5.0.2/include/QtWidgets" \
/usr/local/Qt-5.0.2/include/QtWidgets \
/usr/local/Qt-5.0.2/include \
/usr/local/Qt-5.0.2/include/QtDeclarative \
/usr/local/Qt-5.0.2/include/QtDesigner \
/usr/local/Qt-5.0.2/include/QtDesignerComponents \
/usr/local/Qt-5.0.2/include/QtGui \
/usr/local/Qt-5.0.2/include/QtHelp \
/usr/local/Qt-5.0.2/include/QtMultimedia \
/usr/local/Qt-5.0.2/include/QtMultimediaQuick_p \
/usr/local/Qt-5.0.2/include/QtMultimediaWidgets \
/usr/local/Qt-5.0.2/include/QtNetwork \
/usr/local/Qt-5.0.2/include/QtOpenGL \
/usr/local/Qt-5.0.2/include/QtPlatformSupport \
/usr/local/Qt-5.0.2/include/QtPrintSupport \
/usr/local/Qt-5.0.2/include/QtQml \
/usr/local/Qt-5.0.2/include/QtQmlDevTools \
/usr/local/Qt-5.0.2/include/QtQuick \
/usr/local/Qt-5.0.2/include/QtQuickParticles \
/usr/local/Qt-5.0.2/include/QtQuickTest \
/usr/local/Qt-5.0.2/include/QtScript \
/usr/local/Qt-5.0.2/include/QtScriptTools \
/usr/local/Qt-5.0.2/include/QtSql \
/usr/local/Qt-5.0.2/include/QtSvg \
/usr/local/Qt-5.0.2/include/QtTest \
/usr/local/Qt-5.0.2/include/QtUiTools \
/usr/local/Qt-5.0.2/include/QtV8 \
/usr/local/Qt-5.0.2/include/QtWebKit \
/usr/local/Qt-5.0.2/include/QtWebKitWidgets \
/usr/local/Qt-5.0.2/include/QtWidgets \
/usr/local/Qt-5.0.2/include/QtXml \
/usr/local/Qt-5.0.2/include/QtXmlPatterns \
/usr/local/Qt-5.0.2/include/QtCLucene \
/usr/local/Qt-5.0.2/include/QtConcurrent \
/usr/local/Qt-5.0.2/include/QtCore

LIBPATH += /Users/stephenneander/Desktop/oce6.6/build/lib
LIBS += -L/Users/stephenneander/Desktop/oce6.6/build/lib
LIBS += -lTKBRep \
-lTKCAF \
-lTKernel \
-lTKFeat \
-lPTKernel \
-lTKAdvTools \
-lTKBin \
-lTKG2d \
-lTKXSBase \
-lTKXmlXCAF \
-lTKXmlTObj \
-lTKXmlL \
-lTKBinL \
-lTKCDF \
-lTKHLR \
-lTKXDESTEP \
-lTKXml \
-lTKXMesh \
-lTKXDEIGES \
-lTKXCAFSchema \
-lTKXCAF \
-lTKVRML \
-lTKVoxel \
-lTKV3d \
-lTKV2d \
-lTKTopAlgo \
-lTKTObj \
-lTKSTL \
-lTKSTEPBase \
-lTKSTEPAttr \
-lTKSTEP209 \
-lTKSTEP \
-lTKStdSchema \
-lTKStdLSchema \
-lTKShHealing \
-lTKShapeSchema \
-lTKService \
-lTKPShape \
-lTKPrim \
-lTKPLCAF \
-lTKPCAF \
-lTKOpenGl \
-lTKOffset \
-lTKNIS \
-lTKMeshVS \
-lTKMesh \
-lTKMath \
-lTKLCAF \
-lTKIGES \
-lTKGeomBase \
-lTKGeomAlgo \
-lTKG3d \
-lTKFillet \
-lTKBinTObj \
-lTKBool \
-lTKBO \
-lTKBinXCAF \
-lFWOSPlugin



I have already looked at the other threads.

Thanks for any help!

wysota
27th May 2013, 07:10
Build your app in release mode.