Results 1 to 2 of 2

Thread: loading two sets of Qt binaries into the same process

  1. #1
    Join Date
    May 2013
    Posts
    45
    Qt products
    Qt5
    Platforms
    MacOS X
    Thanks
    6
    Thanked 6 Times in 4 Posts

    Default loading two sets of Qt binaries into the same process

    Hi,
    I'm receiving the following error.

    Qt Code:
    1. 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.
    2. QObject::moveToThread: Current thread (0x109409760) is not the object's thread (0x108774850).
    3. Cannot move to target thread (0x109409760)
    To copy to clipboard, switch view to plain text mode 

    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)
    Qt Code:
    1. dyld: loaded: /usr/local/Qt-5.0.2/lib/libQt5Widgets.5.dylib
    2. dyld: loaded: /usr/local/Qt-5.0.2/lib/libQt5Widgets_debug.5.dylib
    3.  
    4. dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqtga.dylib
    5. dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqtga_debug.dylib
    6.  
    7. dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqtiff.dylib
    8. dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqtiff_debug.dylib
    9.  
    10. dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqwbmp.dylib
    11. dyld: loaded: /usr/local/Qt-5.0.2/plugins/imageformats/libqwbmp_debug.dylib
    To copy to clipboard, switch view to plain text mode 

    My .pro file
    Qt Code:
    1. QT += core gui
    2. QT += widgets
    3.  
    4. CONFIG += x86_64
    5. CONFIG += debug
    6. SOURCES += ApplicationCommon.cxx \
    7. DocumentCommon.cxx \
    8. Material.cxx \
    9. MDIWindow.cxx \
    10. Transparency.cxx \
    11. View.cxx \
    12. hi222.cpp
    13.  
    14.  
    15. HEADERS += ApplicationCommon.h \
    16. CommonSample.h \
    17. DocumentCommon.h \
    18. Material.h \
    19. MDIWindow.h \
    20. Transparency.h \
    21. View.h \
    22.  
    23. INCLUDEPATH += "/Users/stephenneander/Desktop/oce6.6/build/include/oce" \
    24. "/usr/local/Qt-5.0.2/include/QtWidgets" \
    25. /usr/local/Qt-5.0.2/include/QtWidgets \
    26. /usr/local/Qt-5.0.2/include \
    27. /usr/local/Qt-5.0.2/include/QtDeclarative \
    28. /usr/local/Qt-5.0.2/include/QtDesigner \
    29. /usr/local/Qt-5.0.2/include/QtDesignerComponents \
    30. /usr/local/Qt-5.0.2/include/QtGui \
    31. /usr/local/Qt-5.0.2/include/QtHelp \
    32. /usr/local/Qt-5.0.2/include/QtMultimedia \
    33. /usr/local/Qt-5.0.2/include/QtMultimediaQuick_p \
    34. /usr/local/Qt-5.0.2/include/QtMultimediaWidgets \
    35. /usr/local/Qt-5.0.2/include/QtNetwork \
    36. /usr/local/Qt-5.0.2/include/QtOpenGL \
    37. /usr/local/Qt-5.0.2/include/QtPlatformSupport \
    38. /usr/local/Qt-5.0.2/include/QtPrintSupport \
    39. /usr/local/Qt-5.0.2/include/QtQml \
    40. /usr/local/Qt-5.0.2/include/QtQmlDevTools \
    41. /usr/local/Qt-5.0.2/include/QtQuick \
    42. /usr/local/Qt-5.0.2/include/QtQuickParticles \
    43. /usr/local/Qt-5.0.2/include/QtQuickTest \
    44. /usr/local/Qt-5.0.2/include/QtScript \
    45. /usr/local/Qt-5.0.2/include/QtScriptTools \
    46. /usr/local/Qt-5.0.2/include/QtSql \
    47. /usr/local/Qt-5.0.2/include/QtSvg \
    48. /usr/local/Qt-5.0.2/include/QtTest \
    49. /usr/local/Qt-5.0.2/include/QtUiTools \
    50. /usr/local/Qt-5.0.2/include/QtV8 \
    51. /usr/local/Qt-5.0.2/include/QtWebKit \
    52. /usr/local/Qt-5.0.2/include/QtWebKitWidgets \
    53. /usr/local/Qt-5.0.2/include/QtWidgets \
    54. /usr/local/Qt-5.0.2/include/QtXml \
    55. /usr/local/Qt-5.0.2/include/QtXmlPatterns \
    56. /usr/local/Qt-5.0.2/include/QtCLucene \
    57. /usr/local/Qt-5.0.2/include/QtConcurrent \
    58. /usr/local/Qt-5.0.2/include/QtCore
    59.  
    60. LIBPATH += /Users/stephenneander/Desktop/oce6.6/build/lib
    61. LIBS += -L/Users/stephenneander/Desktop/oce6.6/build/lib
    62. LIBS += -lTKBRep \
    63. -lTKCAF \
    64. -lTKernel \
    65. -lTKFeat \
    66. -lPTKernel \
    67. -lTKAdvTools \
    68. -lTKBin \
    69. -lTKG2d \
    70. -lTKXSBase \
    71. -lTKXmlXCAF \
    72. -lTKXmlTObj \
    73. -lTKXmlL \
    74. -lTKBinL \
    75. -lTKCDF \
    76. -lTKHLR \
    77. -lTKXDESTEP \
    78. -lTKXml \
    79. -lTKXMesh \
    80. -lTKXDEIGES \
    81. -lTKXCAFSchema \
    82. -lTKXCAF \
    83. -lTKVRML \
    84. -lTKVoxel \
    85. -lTKV3d \
    86. -lTKV2d \
    87. -lTKTopAlgo \
    88. -lTKTObj \
    89. -lTKSTL \
    90. -lTKSTEPBase \
    91. -lTKSTEPAttr \
    92. -lTKSTEP209 \
    93. -lTKSTEP \
    94. -lTKStdSchema \
    95. -lTKStdLSchema \
    96. -lTKShHealing \
    97. -lTKShapeSchema \
    98. -lTKService \
    99. -lTKPShape \
    100. -lTKPrim \
    101. -lTKPLCAF \
    102. -lTKPCAF \
    103. -lTKOpenGl \
    104. -lTKOffset \
    105. -lTKNIS \
    106. -lTKMeshVS \
    107. -lTKMesh \
    108. -lTKMath \
    109. -lTKLCAF \
    110. -lTKIGES \
    111. -lTKGeomBase \
    112. -lTKGeomAlgo \
    113. -lTKG3d \
    114. -lTKFillet \
    115. -lTKBinTObj \
    116. -lTKBool \
    117. -lTKBO \
    118. -lTKBinXCAF \
    119. -lFWOSPlugin
    To copy to clipboard, switch view to plain text mode 

    I have already looked at the other threads.

    Thanks for any help!
    Last edited by scarecr0w132; 26th May 2013 at 13:12.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: loading two sets of Qt binaries into the same process

    Build your app in release mode.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 3
    Last Post: 8th November 2012, 00:58
  2. Replies: 1
    Last Post: 4th February 2011, 16:53
  3. What support for STL sets?
    By feraudyh in forum General Programming
    Replies: 17
    Last Post: 14th May 2010, 11:00
  4. DvB Chip sets
    By yuvaraj.yadav in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 29th January 2010, 06:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.