This is my first time using Xcode Command Line Tools (13.2.1). I am following the instructions on how to build ncnn here: https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-macos
Do I need to go into Xcode or can I just run the commands in the Terminal?
What is the function of Xcode Command Line Tools and how should it be applied in this case?
For further context I am converting a YOLOX.onnx model using these instructions: https://yolox.readthedocs.io/en/latest/demo/ncnn_cpp_readme.html
and I am getting the error when building ncnn: clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [tools/onnx/onnx2ncnn] Error 1 make[1]: *** [tools/onnx/CMakeFiles/onnx2ncnn.dir/all] Error 2
The directions to convert onnx to ncnn tell me to:
cd <path of ncnn>
cd build/tools/ncnn```
However I do not have a ncnn folder inside of my tools folder...
Related
I am trying to install EIGENSOFT. But there is error like this:
error: clang: error: linker command failed with exit code 1 (use -v to
see invocation)
I code on MacOs 13.0.1(M1 Pro chip)with terminal.
I just want to install EIGENSOFT and my code is below.
"cd src"
"make"
"make install"
and also I try to install like this:
'make CFLAGS="-I/usr/local/opt/openblas/include -I/usr/local/opt/gsl/include" LDFLAGS="-L/usr/local/opt/openblas/lib -L/usr/local/opt/gsl/lib"'
but also I got error above.
I think Mac 1 pro chip has problem. I am not sure.. so I ask you guys...
could you help this error?
I just expecting that install EIGENSOFT
https://github.com/DReichLab/EIG
I am trying to build swift from the source (https://github.com/apple/swift). However, it throws an error when building PhaseScriptExecution. Here is the error message:
<unknown>:0: error: Swift does not support the SDK 'MacOSX10.11.sdk'
make: *** [/Users/yangwei/Git/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/core/macosx/x86_64/Swift.o] Error 1
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution CMake\ Rules /Users/yangwei/Git/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/core/Swift.build/Debug/add_custom_command_target-8e6e230f23a92c1cda79a3cf59140ab8-Swift.o.build/Script-4123DECAA170465EA6F4D9CC.sh
(1 failure)
It seems to be a problem related to SDK version. Can anyone tell me which SDK version I should use? and how can I downgrade to the version?
Thanks!
Update:
I noticed the version issue so I tried to checkout branch of swift-2.2 of swift and all other required projects. However, when I tried to build with command utils/build-script -x, it shows following error message:
make -f /Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/CMakeScripts/ReRunCMake.make
make[1]: *** No rule to make target '/Users/yangwei/Git/llvm/lib/DebugInfo/CodeView/CMakeLists.txt', needed by '/Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/CMakeFiles/cmake.check_cache'. Stop.
make: *** [/Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/CMakeFiles/ZERO_CHECK] Error 2
Command /bin/sh failed with exit code 2
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution CMake\ Rules /Users/yangwei/Git/build/Xcode-DebugAssert/llvm-macosx-x86_64/LLVM.build/Debug/ZERO_CHECK.build/Script-80DAA73EAB654B0EA77D1AEF.sh
(1 failure)
utils/build-script: command terminated with a non-zero exit status 65, aborting
I think you need the new XCode 8 beta to build the latest Swift source.
Once installed, try:
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer/
I built an Xcode project from CMake and when I attempt to build it I get the following error.
PhaseScriptExecution CMake\ Rules /Users/LaserTech/NewBuild/Myjob2/NameCreate.build/Debug/lsjob2.build/Script-E70CB352E1334BCA9B8BE7C1.sh
cd /Users/LaserTech/NameCreate-OSG-Qt5
/bin/sh -c /Users/LaserTech/NewBuild/Myjob2/NameCreate.build/Debug/Myjob2.build/Script-E70CB352E1334BCA9B8BE7C1.sh
make: *** No rule to make target `/Users/LaserTech/NameCreate-OSG-Qt5/Myjob2/PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND', needed by `/Users/LaserTech/NewBuild/Myjob2/common.pb.cc'. Stop.
Command /bin/sh failed with exit code 2
I am not sure what this means. I would appreciate it if someone could shine some light onto what I should be looking at ?
Update:
I did have thoses packages installed. I needed to simply add the path to the binaries to the environment variable. However now xcode is giving me this
echo "Running C++ protocol buffer compiler on protocol/common.proto"
Running C++ protocol buffer compiler on protocol/common.proto
/Users/..../cmake/osxbuild/Release --cpp_out /Users/..../Myjob2 -I /Users/.../Myjob2/protocol /Users/../Myjob2/protocol/common.proto
make: /Users/.../protobuf/cmake/osxbuild/Release: Permission denied
make: *** [/Users/../NewBuild/Myjob2/common.pb.cc] Error 1
Since I updated to Xcode 7.2 I always get the following error when I try to compile a program using the make command:
iMac-de-Martin:~ Martin$ cd /Users/Martin/Desktop/iOS_OTA-Payload_Extractor-master
iMac-de-Martin:iOS_OTA-Payload_Extractor-master Martin$ make
make: error: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild didn't return any data
make: error: unable to find utility "make", not a developer tool or in PATH
iMac-de-Martin:iOS_OTA-Payload_Extractor-master Martin$
I tried to reinstall the Command Line Tools but it didn't help.
I have imported a project of cocos2dx, whenever i tried to run the project it shows me following error.
ld: library not found for -lcocos2d libraries
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I dont know what to do.