Failed to verify the bundle while running fixup_bundle in CMake - cmake

So I make a script that install all the .Frameworks folder to The Project but while installing this error shows up:
CMake Error at /opt/homebrew/Cellar/cmake/3.25.1/share/cmake/Modules/BundleUtilities.cmake:1128 (message):
error: verify_app failed
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.25.1/share/cmake/Modules/BundleUtilities.cmake:995 (verify_app)
cmake_install.cmake:44 (fixup_bundle)
My Install script:
install(CODE "
include(InstallRequiredSystemLibraries)
include(BundleUtilities)
fixup_bundle(${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.app \"\" \"\")
"
DESTINATION .
COMPONENT Runtime
)

Related

Got "No preprocessor test for "Intel"" when configure a project with CMake

I have a problem when cmake launch first program test.
In fact I launch this command (docker container from mcr.microsoft.com/windows:1809-AMD64) :
cmake.exe -B Build_Windows -DTarget=Windows -DCMAKE_BUILD_TYPE=Debug -G "Ninja" -DCodeCoverage=OFF -DCMAKE_C_COMPILER=C:/workdir/compiler/mingw-w64-7.3.0/bin/gcc.exe -DCMAKE_CXX_COMPILER=C:/workdir/compiler/mingw-w64-7.3.0/bin/g++.exe -S .
I have this result :
CMake Error at C:/workdir/compiler/cmake-3.14.0-win64-x64/share/cmake-3.14/Modules/cmakecompileriddetection.cmake:111 (message):
No preprocessor test for "Intel"
Call Stack (most recent call first):
C:/workdir/compiler/cmake-3.14.0-win64-x64/share/cmake-3.14/Modules/cmakedeterminecompilerid.cmake:151 (compiler_id_detection)
C:/workdir/compiler/cmake-3.14.0-win64-x64/share/cmake-3.14/Modules/cmakedeterminecompilerid.cmake:170 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
C:/workdir/compiler/cmake-3.14.0-win64-x64/share/cmake-3.14/Modules/cmakedeterminecompilerid.cmake:31 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/workdir/compiler/cmake-3.14.0-win64-x64/share/cmake-3.14/Modules/cmakedetermineccompiler.cmake:113 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:2 (project)
When open CMakeErrorLog.txt:
The target system is: Windows - -
The host system is: Windows - 10.0.17763 - AMD64
I don't understand why, all path compilers are ok.

Unknown CMake command "tablegen"

I'm trying to compile MLIR with the command:
cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=“mlir” ../mlir
Then came the CMake Error:
...
CMake Error at CMakeLists.txt:10 (tablegen):
Unknown CMake command "tablegen".
Call Stack (most recent call first):
include/mlir/Analysis/CMakeLists.txt:2 (mlir_tablegen)
...
I can't figure out what went wrong, how can I fix it?
Whichever llvm project you want to build, you still need to run cmake for the source directory corresponding to top-level llvm directory, not for its subdirectory.
Top-level directory is where you clone the project https://github.com/llvm/llvm-project.

VTK install error cannot find libvtkCommonCore-6.3.so.1

I'm trying to install VTK but I'm getting the following error
CMake Error at Common/Core/cmake_install.cmake:47 (file):
file INSTALL cannot find
"/home/VTK-6.3.0/VTKBuild/lib/libvtkCommonCore-6.3.so.1".
Call Stack (most recent call first):
cmake_install.cmake:100 (include)
These are the steps I followed
cd VTKBuild
cmake ..\
-D"CMAKE_INSTALL_PREFIX:PATH=/home/VTK-6.3.0/VTKBuild"
make
make install
Can anyone point me to what might be going wrong
I had to turn off shared library option, these are the configuration I used to build VTK
mkdir VTKBuild
cd VTKBuild
cmake ..\
-DCMAKE_INSTALL_PREFIX=/home/VTK-6.3.0/VTKBuild \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DVTK_USE_SYSTEM_ZLIB:BOOL=ON
make
make install

Where is ITKConfig.cmake on Fedora?

My program uses
FIND_PACKAGE(ITK REQUIRED)
it gives me the error message
Could not find a package configuration file provided by "ITK" with any of
the following names:
ITKConfig.cmake
itk-config.cmake
I've installed the packages itk and itk-devel but none of them has any CMake module. The module from CMake itself is deprecated.
I am using Fedora 23 and CMake 3.4.1
edit:
After downloading ITK 4.9.1 and trying to build it with
cmake ../
I get the following error:
Performing Test C_HAS_WARNING-Wformat=2
Performing Test C_HAS_WARNING-Wformat=2 - Success
Performing Test CXX_HAS_WARNING-Wformat=2
Performing Test CXX_HAS_WARNING-Wformat=2 - Success
CMake Error at CMakeLists.txt:243 (include):
include could not find load file:
/home/.../InsightToolkit/InsightToolkit-4.9.1/Utilities/KWStyle/KWStyle.cmake
CMake Error at CMake/ITKModuleEnablement.cmake:43 (message):
No such module "ITKKWIML" needed by "ITKCommon"
Call Stack (most recent call first):
CMake/ITKModuleEnablement.cmake:59 (itk_module_check)
CMake/ITKModuleEnablement.cmake:59 (itk_module_check)
CMake/ITKModuleEnablement.cmake:66 (itk_module_check)
CMakeLists.txt:345 (include)
You need to build and install ITK from source. There is a detailed explanation here.
Once you have finished installing ITK, CMake will be able to find it.

Errors when downloading emscripten

I want to download emscripten on ubuntu 12.04.I downloaded Cmake 3.3.0 then I download esmscripten_portable and I run these commands:
# Fetch the latest registry of available tools.
./emsdk update
# Download and install the latest SDK tools.
./emsdk install latest
I got these error messages:
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
CMake Error at cmake/modules/HandleLLVMOptions.cmake:17 (message):
Host GCC version must be at least 4.7!
Call Stack (most recent call first):
CMakeLists.txt:378 (include)
-- Configuring incomplete, errors occurred!
See also "/home/slim/Bureau/emsdk_portable/clang/tag-e1.34.3/build_tag-e1.34.3_32/CMakeFiles/CMakeOutput.log".
See also "/home/slim/Bureau/emsdk_portable/clang/tag-e1.34.3/build_tag-e1.34.3_32/CMakeFiles/CMakeError.log".
CMake invocation failed due to exception!
Working directory: /home/slim/Bureau/emsdk_portable/clang/tag-e1.34.3/build_tag-e1.34.3_32
Command '['cmake', '-G', 'Unix Makefiles', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DLLVM_TARGETS_TO_BUILD=X86;JSBackend', '-DLLVM_INCLUDE_EXAMPLES=OFF', '-DLLVM_INCLUDE_TESTS=OFF', '-DCLANG_INCLUDE_EXAMPLES=OFF', '-DCLANG_INCLUDE_TESTS=OFF', '/home/slim/Bureau/emsdk_portable/clang/tag-e1.34.3/src']' returned non-zero exit status 1
Installation failed!
I installed all these libraries very well but when I run this command:./emsdk activate latest.I got this message:The Emscripten configuration file /home/slim/.emscripten has been rewritten with the following contents:
import os
SPIDERMONKEY_ENGINE = ''
NODE_JS = 'node'
LLVM_ROOT='/home/slim/Bureau/emsdk_portable/clang/tag-e1.34.3/build_tag-e1.34.3_32/bin'
EMSCRIPTEN_ROOT='/home/slim/Bureau/emsdk_portable/emscripten/tag-1.34.3'
EMSCRIPTEN_NATIVE_OPTIMIZER='/home/slim/Bureau/emsdk_portable/emscripten/tag-1.34.3_32bit_optimizer/optimizer'
V8_ENGINE = ''
TEMP_DIR = '/tmp'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]
To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.
/home/slim/Bureau/emsdk_portable:/home/slim/Bureau/emsdk_portable/clang/tag-e1.34.3/build_tag-e1.34.3_32/bin:/home/slim/Bureau/emsdk_portable/emscripten/tag-1.34.3
I run :
source ./emsdk_env.sh
But when I run the command :
./emcc v
I got :
bash: ./emcc: No such file or directory