Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CMake修复包如何忽略嵌入式dll_Dll_Cmake_Cpack - Fatal编程技术网

CMake修复包如何忽略嵌入式dll

CMake修复包如何忽略嵌入式dll,dll,cmake,cpack,Dll,Cmake,Cpack,我的系统有一些DLL链接到其他嵌入式可执行文件中,比如来自MSYS的命令 目录结构: MySystem/ |_ mysystem.exe |_ CMakeLists.txt |_ embedded system/ |_ msys_command1.exe |_ msys_command2.exe |_ msys-1.0.dll 当它从CMake运行fixup_bundle时,会显示以下警告: EXEC : warning : cannot res

我的系统有一些DLL链接到其他嵌入式可执行文件中,比如来自MSYS的命令

目录结构:

MySystem/
  |_ mysystem.exe
  |_ CMakeLists.txt
  |_ embedded system/
      |_ msys_command1.exe
      |_ msys_command2.exe
      |_ msys-1.0.dll
当它从CMake运行fixup_bundle时,会显示以下警告:

EXEC : warning : cannot resolve item 'msys-1.0.dll'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

EXEC : -- warning : gp_resolved_file_type non-absolute file 'msys-1.0.dll' returning type 'other' -- possibly incorrect
--
EXEC : warning : cannot resolve item 'msys-1.0.dll'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?
MSYS命令位于软件嵌入目录中。 如果我将嵌入式目录放在fixup_bundle路径上,DLL将复制到我的可执行目录,但我不希望出现这种行为

有没有办法忽略这些DLL

我尝试过使用fixup\u bundle宏忽略\u项,但不起作用

除此之外,问题还传播到CPack:

  CPack: Create package using NSIS
  CPack: Install projects
  CPack: - Install project: MySystem
  Error copying file "msys-1.0.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/msys-1.0.dll".
  Error copying file "msys-intl-8.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/msys-intl-8.dll".
  Error copying file "Qt5Core.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/Qt5Core.dll".
  Error copying file "Qt5Gui.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/Qt5Gui.dll".
  Error copying file "Qt5Network.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/Qt5Network.dll".
  Error copying file "Qt5Widgets.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/Qt5Widgets.dll".
  Error copying file "libprotobuf.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/libprotobuf.dll".
  Error copying file "lua.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/lua.dll".
  Error copying file "qwt.dll" to "D:/mysystem/solution/build/_CPack_Packages/win64/NSIS/MySystem/qwt.dll".
  CPack: Create package