使用MinGW的CTK PluginFramework构建失败:(

时间:2019-04-23 04:22:11

标签: plugins frameworks qt5 mingw-w64 msys2

我可以使用VS2015为CTK git repo构建成功,但使用MinGW-W64 32bit构建失败。 我的操作系统是Win7 64位,已经安装了MSYS2 64位,并使用Pacman从mingw32位终端安装mingw-w64-i686-toolchain,mingw-w64-i686-cmake,MinGW-W64-i686-qt5和cmake CTK MinGW Makefile,命令列表:

mkdir /usr/src/CTK-build 
cd /usr/src/CTK-build 
cmake -DCTK_QT_VERSION:STRING=5 -DCMAKE_PREFIX_PATH:STRING="C:/msys64/mingw32/lib/cmake" -DCTK_ENABLE_PluginFramework:BOOL=ON -G"MinGW Makefiles"  ../CTK 
mingw32-make -j4

建立目标CTK成功,然后运行../CTK-build/bin/CTKCoreCppTests.exe,确定! 但是运行CTKPluginFrameworkCppTests.exe或其他CTKPluginFramework测试,失败!它显示故障模块:“ libCTKPluginFramework.dll”,异常代码:“ c0000005”。

我不知道哪里错了,为什么?以及怎么办?


构建目标CTK bin路径树: / usr / src / CTK-build / CTK-build / bin>

│ CTKCoreCppTests.exe
│ CTKPluginFrameworkAppTests.exe
│ CTKPluginFrameworkCppTests.exe
│ libCTKCore.dll
│ libCTKCore.dll.a
│ libCTKDummyPlugin.dll
│ libCTKDummyPlugin.dll.a
│ libCTKPluginFramework.dll
│ libCTKPluginFramework.dll.a
│ libCTKPluginFrameworkTestUtil.dll
│ libCTKPluginFrameworkTestUtil.dll.a
│ liborg_commontk_configadmin.dll
│ liborg_commontk_configadmin.dll.a
│ liborg_commontk_eventadmin.dll
│ liborg_commontk_eventadmin.dll.a
│ liborg_commontk_log.dll
│ liborg_commontk_log.dll.a
│ liborg_commontk_metatype.dll
│ liborg_commontk_metatype.dll.a
│ org_commontk_configadminCppTests.exe
│ org_commontk_eventadminCppTests.exe
│ org_commontk_eventadminPerfTests.exe
│ org_commontk_metatypeCppTests.exe
│ org_commontk_pluginfwtest_perfCppTests.exe
│
├─snippets
│ CommandLineParser.exe
│ EventAdmin-Intro.exe
│
└─test_plugins
libapp_test.dll
libapp_test.dll.a
liborg_commontk_configadmintest.dll
liborg_commontk_configadmintest.dll.a
liborg_commontk_eventadmintest.dll
liborg_commontk_eventadmintest.dll.a
liborg_commontk_eventadmintest_perf.dll
liborg_commontk_eventadmintest_perf.dll.a
liborg_commontk_metatypetest.dll
liborg_commontk_metatypetest.dll.a
liborg_commontk_pluginfwtest.dll
liborg_commontk_pluginfwtest.dll.a
liborg_commontk_pluginfwtest_perf.dll
liborg_commontk_pluginfwtest_perf.dll.a
libpluginA1_test.dll
libpluginA1_test.dll.a
libpluginA2_test.dll
libpluginA2_test.dll.a
libpluginAttrPwd_test.dll
libpluginAttrPwd_test.dll.a
libpluginA_test.dll
libpluginA_test.dll.a
libpluginD_test.dll
libpluginD_test.dll.a
libpluginSL1_test.dll
libpluginSL1_test.dll.a
libpluginSL3_test.dll
libpluginSL3_test.dll.a
libpluginSL4_test.dll
libpluginSL4_test.dll.a
libpluginS_test.dll
libpluginS_test.dll.a

0 个答案:

没有答案