Debug and release version of dll conflict in qt 5.9.2? How to debug and solve?



  • I am trying to compile and run in qt creator the pcl_visualizer demo from this gentleman: https://github.com/UnaNancyOwen/qt_visualizer but get a crash. Can someone spot what is going wrong? @mrjj (making new thread since this is a bit different topic than the other thread I made earlier)

    Environment:
    Windows 10 pro 64 bit
    qt 5.9.2

    0_1509182380576_674e1d39-ac72-41e5-8c8d-fa07b726940b-image.png

    Precompiled versions of Boost, Eigen, FLANN, OpenNi2, Qhull
    I have separately Compiled VTK 7.1.0 with qt support
    I have separately Compiled PCL 1.8.0
    Compiler is: MSVC2015 64

    I have turned on debug: QT_DEBUG_PLUGINS = 1

    I am using these cmake and msbuild buil steps:
    0_1509183431022_38684fdc-4cc7-4f13-b801-b1fe54dd2854-image.png

    Here is what I get in the Application output window (there looks like there are some dll conflicts?):

    Starting C:\Users\user2\Documents\pcl_visualizer_demo_test\sample\build\release\pcl_visualizer.exe...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2d.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2d.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "direct2d"
    ]
    },
    "className": "QWindowsDirect2DIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("direct2d")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "direct2d"
    ]
    },
    "className": "QWindowsDirect2DIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimal.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimal.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreen.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreen.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "windows"
    ]
    },
    "className": "QWindowsIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("windows")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "windows"
    ]
    },
    "className": "QWindowsIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/pcl_visualizer_demo_test/sample/build/release/platforms" ...
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll"
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/pcl_visualizer_demo_test/sample/build/release/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/pcl_visualizer_demo_test/sample/build/release/styles" ...
    The program has unexpectedly finished.
    The process was ended forcefully.
    C:\Users\user2\Documents\pcl_visualizer_demo_test\sample\build\release\pcl_visualizer.exe crashed.

    Can anyone spot what causes this?





  • @Charlie_Hdz setting QT_NO_DEBUG to 1 (also tried TRUE) in build settings didnt seem to help. (also tried to set it in environment variables). When I sat QT_NO_DEBUG to 1 it in environment variables it seems that it stopped to show the debug dump as listed in posting above, however the program still crashed.


  • Lifetime Qt Champion

    Hi,

    Do you also have VTK built both in debug and release ?



  • @slagst

    Yes I have build both debug and release versions of VTK .dll and .lib files.

    0_1509263794084_0d011116-21d4-4e7f-a37f-5c75e99b12fc-image.png



  • 0_1509276980393_0b28a544-4f65-4628-9889-08643023b6ad-image.png

    I am able to run the The VTK simpleview (example code from VTK examples) from cmd line when compiled with VS2015 after calling the qtenv2.bat script. However it seems that the same type of "incompatible dll errors" are given when running that VTK example on the cmd line as I got with the vtkvisualization code above....

    C:\Users\user2\Documents\qt_test_kode_div\vtk_SimpleView_exampl\build\Release>SimpleView.exe
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2d.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2d.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "direct2d"
    ]
    },
    "className": "QWindowsDirect2DIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("direct2d")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "direct2d"
    ]
    },
    "className": "QWindowsDirect2DIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimal.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimal.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreen.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreen.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "windows"
    ]
    },
    "className": "QWindowsIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("windows")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "windows"
    ]
    },
    "className": "QWindowsIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/qt_test_kode_div/vtk_SimpleView_exampl/build/Release/platforms" ...
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll"
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/qt_test_kode_div/vtk_SimpleView_exampl/build/Release/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/qt_test_kode_div/vtk_SimpleView_exampl/build/Release/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/iconengines" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/iconengines/qsvgicon.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/iconengines/qsvgicon.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
    "Keys": [
    "svg",
    "svgz",
    "svg.gz"
    ]
    },
    "className": "QSvgIconPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("svg", "svgz", "svg.gz")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/iconengines/qsvgicond.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/iconengines/qsvgicond.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
    "Keys": [
    "svg",
    "svgz",
    "svg.gz"
    ]
    },
    "className": "QSvgIconPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/iconengines/qsvgicond.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/qt_test_kode_div/vtk_SimpleView_exampl/build/Release/iconengines" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qgif.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qgif.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "gif"
    ],
    "MimeTypes": [
    "image/gif"
    ]
    },
    "className": "QGifPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("gif")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qgifd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qgifd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "gif"
    ],
    "MimeTypes": [
    "image/gif"
    ]
    },
    "className": "QGifPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qgifd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicns.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicns.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "icns"
    ],
    "MimeTypes": [
    "image/x-icns"
    ]
    },
    "className": "QICNSPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("icns")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicnsd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicnsd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "icns"
    ],
    "MimeTypes": [
    "image/x-icns"
    ]
    },
    "className": "QICNSPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicnsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qico.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qico.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "ico",
    "cur"
    ],
    "MimeTypes": [
    "image/vnd.microsoft.icon"
    ]
    },
    "className": "QICOPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("ico", "cur")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicod.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicod.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "ico",
    "cur"
    ],
    "MimeTypes": [
    "image/vnd.microsoft.icon"
    ]
    },
    "className": "QICOPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicod.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qjpeg.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qjpeg.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "jpg",
    "jpeg"
    ],
    "MimeTypes": [
    "image/jpeg",
    "image/jpeg"
    ]
    },
    "className": "QJpegPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("jpg", "jpeg")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qjpegd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qjpegd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "jpg",
    "jpeg"
    ],
    "MimeTypes": [
    "image/jpeg",
    "image/jpeg"
    ]
    },
    "className": "QJpegPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qjpegd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qsvg.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qsvg.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "svg",
    "svgz"
    ],
    "MimeTypes": [
    "image/svg+xml",
    "image/svg+xml-compressed"
    ]
    },
    "className": "QSvgPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("svg", "svgz")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qsvgd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qsvgd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "svg",
    "svgz"
    ],
    "MimeTypes": [
    "image/svg+xml",
    "image/svg+xml-compressed"
    ]
    },
    "className": "QSvgPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qsvgd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtga.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtga.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "tga"
    ],
    "MimeTypes": [
    "image/x-tga"
    ]
    },
    "className": "QTgaPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("tga")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtgad.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtgad.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "tga"
    ],
    "MimeTypes": [
    "image/x-tga"
    ]
    },
    "className": "QTgaPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtgad.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtiff.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtiff.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "tiff",
    "tif"
    ],
    "MimeTypes": [
    "image/tiff",
    "image/tiff"
    ]
    },
    "className": "QTiffPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("tiff", "tif")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtiffd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtiffd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "tiff",
    "tif"
    ],
    "MimeTypes": [
    "image/tiff",
    "image/tiff"
    ]
    },
    "className": "QTiffPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtiffd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwbmp.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwbmp.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "wbmp"
    ],
    "MimeTypes": [
    "image/vnd.wap.wbmp"
    ]
    },
    "className": "QWbmpPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("wbmp")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwbmpd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwbmpd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "wbmp"
    ],
    "MimeTypes": [
    "image/vnd.wap.wbmp"
    ]
    },
    "className": "QWbmpPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwbmpd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwebp.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwebp.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "webp"
    ],
    "MimeTypes": [
    "image/webp"
    ]
    },
    "className": "QWebpPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("webp")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwebpd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwebpd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
    "Keys": [
    "webp"
    ],
    "MimeTypes": [
    "image/webp"
    ]
    },
    "className": "QWebpPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwebpd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/qt_test_kode_div/vtk_SimpleView_exampl/build/Release/imageformats" ...
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qgif.dll"
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qicns.dll"
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qico.dll"
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qjpeg.dll"
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qsvg.dll"
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtga.dll"
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qtiff.dll"
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwbmp.dll"
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/imageformats/qwebp.dll"
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/accessible" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/qt_test_kode_div/vtk_SimpleView_exampl/build/Release/accessible" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/accessiblebridge" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/qt_test_kode_div/vtk_SimpleView_exampl/build/Release/accessiblebridge" ...



  • More info: Are there missing dlls? It says checking directory path but does not say it loaded the dlls its looking for...(?)

    I tried to run the vtk_visualization.exe from the cmd line. I get messages along the same line as the example code from the VTK examples (that ran) but it crashes.

    Here is the last it prints to the console before the crash:
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/pcl_visualizer_demo_test/sample/build/Release/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/pcl_visualizer_demo_test/sample/build/Release/styles" ...

    Here is the complete set of messages to the cmd console.

    C:\Users\user2\Documents\pcl_visualizer_demo_test\sample\build\Release>pcl_visualizer.exe
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2d.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2d.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "direct2d"
    ]
    },
    "className": "QWindowsDirect2DIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("direct2d")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "direct2d"
    ]
    },
    "className": "QWindowsDirect2DIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qdirect2dd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimal.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimal.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "minimal"
    ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qminimald.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreen.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreen.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "offscreen"
    ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "windows"
    ]
    },
    "className": "QWindowsIntegrationPlugin",
    "debug": false,
    "version": 329986
    }

    Got keys from plugin meta data ("windows")
    QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll"
    Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "windows"
    ]
    },
    "className": "QWindowsIntegrationPlugin",
    "debug": true,
    "version": 329986
    }

    "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
    not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/pcl_visualizer_demo_test/sample/build/Release/platforms" ...
    loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platforms/qwindows.dll"
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/pcl_visualizer_demo_test/sample/build/Release/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015_64/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/user2/Documents/pcl_visualizer_demo_test/sample/build/Release/styles" ...


  • Lifetime Qt Champion

    How did you install Qt ?



  • @SGaist I did download the open source installer from qt.

    I am on Win10 64 environment (Info: I have a Windows Insiders Build of Windows 10 so I am on a quite new version and build if that at all matters in terms of system .dll versions etc - did that to get the Linux Subsystem functionality in Windows)

    0_1509435216439_2b8b45a4-da17-4d9f-8b48-ddd92e69665e-image.png



  • I did manage to avoid the crash by deleting older versions and going to newer versions:

    -PCL1.8.1 all in one installer (using only 3rd party libraries)
    -VTK8.0.0 (compiling from sources by first using cmake)
    -Compiling PCL1.8.1 from sources by first using cmake, linking against the third party libraries (boost, flann etc) in the PCL1.8.1 all in one installer above.
    -Setting proper Environment variables and PATH
    -Installing Qt5.8.0 (open src version)
    -Setting 64 bit version of CDB under kits (default was x86 version of CDB)


  • Lifetime Qt Champion

    Great !

    Thanks for sharing your findings :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.