我想用
Cmake
建立一个QT
项目。但是,我不知道我修改了什么,因为Cmake
无法构建最简单的项目。相信这个项目之前用Cmake
也能建起来。
这是Cmakelists.txt
,源文件和错误信息。
Cmakelists.txt
cmake_minimum_required(VERSION 3.0.0)
project(test VERSION 0.1.0)
include(CTest)
enable_testing()
add_executable(test main.cpp)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
main.cpp
#include <iostream>
int main(int, char**) {
std::cout << "Hello, world!\n";
}
error information
C编译器标识为AppleClang 14.0.0.14000029 CXX编译器标识为AppleClang 14.0.0.14000029 检测 C 编译器 ABI 信息 检测 C 编译器 ABI 信息 - 失败 检查工作的 C 编译器:/usr/bin/clang 检查工作的 C 编译器:/usr/bin/clang - 损坏 /opt/homebrew/Cellar/cmake/3.24.0/share/cmake/Modules/CMakeTestCCompiler.cmake:69 处的 CMake 错误(消息): C 编译器
"/usr/bin/clang"
无法编译简单的测试程序。
失败并显示以下输出:
更改目录:/Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_4eeba && [1/2] Building C object CMakeFiles/cmTC_4eeba.dir/testCCompiler.c.o [2/2] 链接 C 可执行文件 cmTC_4eeba 失败:cmTC_4eeba : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names / opt/homebrew/Cellar/qt/6.3.1_1/lib CMakeFiles/cmTC_4eeba.dir/testCCompiler.c.o -o cmTC_4eeba && : ld: 无法映射文件,errno=22 file '/opt/homebrew/Cellar/qt/6.3.1_1/lib' for architecture arm64 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) 忍者:构建停止:子命令失败。
CMake 将无法正确生成该项目。 调用堆栈(最近的调用在前): CMakeLists.txt:2(项目)
配置不完整,出现错误! 另见“/Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeOutput.log”。 另见“/Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeError.log”。
CMakeOutput.log
> The system is: Darwin - 22.3.0 - arm64
> Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
> Compiler: /usr/bin/clang
> Build flags:
> Id flags:
>
> The output was:
> 0
>
> Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
> The C compiler identification is AppleClang, found in "/Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/3.24.0/CompilerIdC/a.out"
>
> Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
> Compiler: /usr/bin/clang++
> Build flags:
> Id flags:
>
> The output was:
> 0
>
>
> Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
>
> The CXX compiler identification is AppleClang, found in "/Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/3.24.0/CompilerIdCXX/a.out"
>
> ```
> `CMakeError.log`
>
> ```
> Detecting C compiler ABI info failed to compile with the following output:
> Change Dir: /Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_d5811 && [1/2] Building C object CMakeFiles/cmTC_d5811.dir/CMakeCCompilerABI.c.o
> Apple clang version 14.0.0 (clang-1400.0.29.102)
> Target: arm64-apple-darwin22.3.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> clang: warning: -Wl,-v: 'linker' input unused [-Wunused-command-line-argument]
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple arm64-apple-macosx12.3.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-is
> clang -cc1 version 14.0.0 (clang-1400.0.29.102) default target arm64-apple-darwin22.3.0
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/local/include"
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/Library/Frameworks"
> #include "..." search starts here:
> #include <...> search starts here:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks (framework directory)
> End of search list.
> [2/2] Linking C executable cmTC_d5811
> FAILED: cmTC_d5811
> : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/li
> Apple clang version 14.0.0 (clang-1400.0.29.102)
> Target: arm64-apple-darwin22.3.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dyli
> @(#)PROGRAM:ld PROJECT:ld64-819.6
> BUILD 21:47:32 Sep 13 2022
> configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
> Library search paths:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib
> Framework search paths:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/
> ld: can't map file, errno=22 file '/opt/homebrew/lib' for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
>
>
>
> Determining if the C compiler works failed with the following output:
> Change Dir: /Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_9af4a && [1/2] Building C object CMakeFiles/cmTC_9af4a.dir/testCCompiler.c.o
> [2/2] Linking C executable cmTC_9af4a
> FAILED: cmTC_9af4a
> : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/li
> ld: can't map file, errno=22 file '/opt/homebrew/lib' for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
>
>
>
> Detecting C compiler ABI info failed to compile with the following output:
> Change Dir: /Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_20350 && [1/2] Building C object CMakeFiles/cmTC_20350.dir/CMakeCCompilerABI.c.o
> Apple clang version 14.0.0 (clang-1400.0.29.102)
> Target: arm64-apple-darwin22.3.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> clang: warning: -Wl,-v: 'linker' input unused [-Wunused-command-line-argument]
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple arm64-apple-macosx12.3.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-is
> clang -cc1 version 14.0.0 (clang-1400.0.29.102) default target arm64-apple-darwin22.3.0
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/local/include"
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/Library/Frameworks"
> #include "..." search starts here:
> #include <...> search starts here:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks (framework directory)
> End of search list.
> [2/2] Linking C executable cmTC_20350
> FAILED: cmTC_20350
> : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/li
> Apple clang version 14.0.0 (clang-1400.0.29.102)
> Target: arm64-apple-darwin22.3.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dyli
> @(#)PROGRAM:ld PROJECT:ld64-819.6
> BUILD 21:47:32 Sep 13 2022
> configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
> Library search paths:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib
> Framework search paths:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/
> ld: can't map file, errno=22 file '/opt/homebrew/lib' for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
>
> Determining if the C compiler works failed with the following output:
> Change Dir: /Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_eb747 && [1/2] Building C object CMakeFiles/cmTC_eb747.dir/testCCompiler.c.o
> [2/2] Linking C executable cmTC_eb747
> FAILED: cmTC_eb747
> : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/li
> ld: can't map file, errno=22 file '/opt/homebrew/lib' for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
>
> Detecting C compiler ABI info failed to compile with the following output:
> Change Dir: /Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_12589 && [1/2] Building C object CMakeFiles/cmTC_12589.dir/CMakeCCompilerABI.c.o
> Apple clang version 14.0.0 (clang-1400.0.29.102)
> Target: arm64-apple-darwin22.3.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> clang: warning: -Wl,-v: 'linker' input unused [-Wunused-command-line-argument]
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple arm64-apple-macosx12.3.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-is
> clang -cc1 version 14.0.0 (clang-1400.0.29.102) default target arm64-apple-darwin22.3.0
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/local/include"
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/Library/Frameworks"
> #include "..." search starts here:
> #include <...> search starts here:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks (framework directory)
> End of search list.
> [2/2] Linking C executable cmTC_12589
> FAILED: cmTC_12589
> : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/li
> Apple clang version 14.0.0 (clang-1400.0.29.102)
> Target: arm64-apple-darwin22.3.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dyli
> @(#)PROGRAM:ld PROJECT:ld64-819.6
> BUILD 21:47:32 Sep 13 2022
> configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
> Library search paths:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib
> Framework search paths:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/
> ld: can't map file, errno=22 file '/opt/homebrew/lib' for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
>
>
> Determining if the C compiler works failed with the following output:
> Change Dir: /Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_11d39 && [1/2] Building C object CMakeFiles/cmTC_11d39.dir/testCCompiler.c.o
> [2/2] Linking C executable cmTC_11d39
> FAILED: cmTC_11d39
> : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/li
> ld: can't map file, errno=22 file '/opt/homebrew/lib' for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
>
>
>
> Detecting C compiler ABI info failed to compile with the following output:
> Change Dir: /Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_a4698 && [1/2] Building C object CMakeFiles/cmTC_a4698.dir/CMakeCCompilerABI.c.o
> Apple clang version 14.0.0 (clang-1400.0.29.102)
> Target: arm64-apple-darwin22.3.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> clang: warning: -Wl,-v: 'linker' input unused [-Wunused-command-line-argument]
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple arm64-apple-macosx12.3.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-is
> clang -cc1 version 14.0.0 (clang-1400.0.29.102) default target arm64-apple-darwin22.3.0
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/local/include"
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/Library/Frameworks"
> #include "..." search starts here:
> #include <...> search starts here:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks (framework directory)
> End of search list.
> [2/2] Linking C executable cmTC_a4698
> FAILED: cmTC_a4698
> : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/Ce
> Apple clang version 14.0.0 (clang-1400.0.29.102)
> Target: arm64-apple-darwin22.3.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dyli
> @(#)PROGRAM:ld PROJECT:ld64-819.6
> BUILD 21:47:32 Sep 13 2022
> configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
> Library search paths:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib
> Framework search paths:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/
> ld: can't map file, errno=22 file '/opt/homebrew/Cellar/qt/6.3.1_1/lib' for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
>
> Determining if the C compiler works failed with the following output:
> Change Dir: /Users/luzijian/Documents/document/AFTE/project_waterLocalize/test/build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/ninja cmTC_4eeba && [1/2] Building C object CMakeFiles/cmTC_4eeba.dir/testCCompiler.c.o
> [2/2] Linking C executable cmTC_4eeba
> FAILED: cmTC_4eeba
> : && /usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names /opt/homebrew/Ce
> ld: can't map file, errno=22 file '/opt/homebrew/Cellar/qt/6.3.1_1/lib' for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
>
我在VScode中修改C++的
IntelliSense Configurations
后出现这个错误,会生成一个c_cpp_properties.json
。我不知道这是否与错误有关。
我也修改了
~/.bash_profile
~/.bash_profile
> conda initialize >>>
> Contents within this block are managed by 'conda init' !!
> __conda_setup="$('/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
> if [ $? -eq 0 ]; then
> eval "$__conda_setup"
> else
> if [ -f "/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/etc/profile.d/conda.sh" ]; then
> . "/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/etc/profile.d/conda.sh"
> else
> export PATH="/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin:$PATH"
> fi
> fi
> unset __conda_setup
> conda initialize <<<
>
> #vim
> export "PATH=/opt/homebrew/bin:$PATH"
>
> export PATH="$PATH:/opt/homebrew/Cellar/qt/6.3.1_1/bin:$PATH"
> export LDFLAGS="/opt/homebrew/Cellar/qt/6.3.1_1/lib"
> export CPPFLAGS="-I//opt/homebrew/Cellar/qt/6.3.1_1/include"
> export PKG_CONFIG_PATH="/opt/homebrew/Cellar/qt/6.3.1_1/lib/PKG_CONFIG_PATH"
>
> #zsh
> export CLICOLOR=1
> export LSCOLORS=ExGxFxdaCxDaDahbadeche
>
> #alias qmake
> alias qmake="/opt/homebrew/Cellar/qt/6.3.1_1/bin/qmake"```
`~/.zsh_profile`
康达初始化>>> 此块中的内容由“conda init”管理!! __conda_setup="$('/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" 如果 [ $? -eq 0 ];然后 评估“$__conda_setup” 别的 if [ -f "/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/etc/profile.d/conda.sh" ];然后 . "/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/etc/profile.d/conda.sh" 别的 export PATH="/Users/luzijian/Documents/Environment/Anaconda3/anaconda3/bin:$PATH" 菲
菲 取消设置 __conda_setup 康达初始化<<< export PATH="$PATH:/opt/homebrew/Cellar/qt@5/5.15.5_1/bin:$PATH"export PATH="$PATH:/opt/homebrew/Cellar/qt/6.3.1_1/bin:$PATH" 导出 LDFLAGS="/opt/homebrew/Cellar/qt/6.3.1_1/lib" 导出 CPPFLAGS="-I//opt/homebrew/Cellar/qt/6.3.1_1/include" 导出 PKG_CONFIG_PATH="/opt/homebrew/Cellar/qt/6.3.1_1/lib/PKG_CONFIG_PATH"
来源 ~/.bash_profile
I hope someone can help me solve the problem and I will appreciate it extremely!