Build Error Project on Mac M1 #739
Unanswered
longhoang1641997
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I have the error below when I build project with command:
error: Multiple commands produce '/Users/longhoang/WorkingSpace/QtScrcpy/output/x64/Release/QtScrcpy.app/Contents'
Could someone help me resolve this issue?
Thank you so much !!!
./ci/mac/build_for_mac.sh "Release"
check ENV
ENV_QT_PATH
check build param[Debug/Release/MinSizeRel/RelWithDebInfo]
current build mode: Release
begin cmake build
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [QtScrcpy] Project QtScrcpy 0.0.0
-- [QtScrcpy] CPU_ARCH:x64
-- [QtScrcpy] BUILD_TYPE:Release
-- [QtScrcpy] C++ compiler ID is: AppleClang
-- [QtScrcpy] Set warnings as error
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework
-- Found WrapOpenGL: TRUE
-- [QtScrcpy] Qt version is: 6.4
-- multi config:QC_IS_MUTIL_CONFIG
-- [QtScrcpy] QSC_CPU_ARCH:x64
-- [QtScrcpyCore] QSC_DEPLOY_PATH: /Users/longhoang/WorkingSpace/QtScrcpy/QtScrcpy/../output/x64/Release/$<0:>/QtScrcpy.app/Contents
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/longhoang/WorkingSpace/QtScrcpy/ci/build_temp
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project all.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration Release -jobs 8 -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
IDEBuildOperationMaxNumberOfConcurrentCompileTasks = 8
IDEPackageSupportUseBuiltinSCM = YES
Build Preparation
Build task concurrency set to 8 via user default IDEBuildOperationMaxNumberOfConcurrentCompileTasks
Computing target dependency graph and provisioning inputs
Create build description
Build description signature: a4e165577870eb848836b30c2188406f
Build description path: /Users/longhoang/WorkingSpace/QtScrcpy/ci/build_temp/build/XCBuildData/a4e165577870eb848836b30c2188406f-desc.xcbuild
note: Building targets in dependency order
error: Multiple commands produce '/Users/longhoang/WorkingSpace/QtScrcpy/output/x64/Release/QtScrcpy.app/Contents'
note: CreateBuildDirectory /Users/longhoang/WorkingSpace/QtScrcpy/output/x64/Release/QtScrcpy.app/Contents
note: Target 'QtScrcpy' (project 'all') has create directory command with output '/Users/longhoang/WorkingSpace/QtScrcpy/output/x64/Release/QtScrcpy.app/Contents'
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'QtScrcpy' from project 'all')
warning: duplicate output file '/Users/longhoang/WorkingSpace/QtScrcpy/output/x64/Release/QtScrcpy.app/Contents' on task: MkDir /Users/longhoang/WorkingSpace/QtScrcpy/output/x64/Release/QtScrcpy.app/Contents (in target 'QtScrcpy' from project 'all')
note: Run script build phase 'Generate QtScrcpy/QtScrcpyCore/CMakeFiles/QtScrcpyCore_autogen' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'QtScrcpyCore_autogen' from project 'all')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'QtScrcpyCore' from project 'all')
note: Run script build phase 'Generate QtScrcpy/CMakeFiles/QtScrcpy_autogen' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'QtScrcpy_autogen' from project 'all')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'all')
note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'all')
** BUILD FAILED **
cmake build failed
Beta Was this translation helpful? Give feedback.
All reactions