Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m1 chipset (apple silicon) ! --> build error #51

Open
mud0107 opened this issue Feb 9, 2021 · 0 comments
Open

m1 chipset (apple silicon) ! --> build error #51

mud0107 opened this issue Feb 9, 2021 · 0 comments

Comments

@mud0107
Copy link

mud0107 commented Feb 9, 2021

When I try to build srt on apple slicon(m1) chipset, I get the following error:
What is the workaround?

yegon@Blackwoolf71ui-MacBookPro SRT % ./build_srt.sh
~/Desktop/Projects/iOS/VideoCast-Swift/SRT/build/ios_x86_64 ~/Desktop/Projects/iOS/VideoCast-Swift/SRT
NOTE: toolchain changed by '--cmake-toolchain-file' option
NOTE: Cannot obtain compiler, assuming toolchain file will do what's necessary
Running: cmake ../../srt -DCMAKE_PREFIX_PATH=/Users/gimhyegon/Desktop/Projects/iOS/VideoCast-Swift/SRT/openssl/bin/iPhoneSimulator13.4-x86_64.sdk -DUSE_OPENSSL_PC=OFF -DCMAKE_TOOLCHAIN_FILE=scripts/iOS.cmake -DENABLE_DEBUG=0 -DIOS_PLATFORM=SIMULATOR64 -DIOS_ARCH=x86_64
CMake Error at scripts/iOS.cmake:135 (message):
No iOS SDK's found in default search path
/Library/Developer/CommandLineTools/Platforms/iPhoneSimulator.platform/Developer.
Manually set CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.19.4/share/cmake/Modules/CMakeDetermineSystem.cmake:123 (include)
CMakeLists.txt:15 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CONFIGURE: cmake reported error: child process exited abnormally
make: *** No targets specified and no makefile found. Stop.
~/Desktop/Projects/iOS/VideoCast-Swift/SRT
~/Desktop/Projects/iOS/VideoCast-Swift/SRT/build/ios_arm64 ~/Desktop/Projects/iOS/VideoCast-Swift/SRT
NOTE: toolchain changed by '--cmake-toolchain-file' option
NOTE: Cannot obtain compiler, assuming toolchain file will do what's necessary
Running: cmake ../../srt -DCMAKE_PREFIX_PATH=/Users/gimhyegon/Desktop/Projects/iOS/VideoCast-Swift/SRT/openssl/bin/iPhoneOS13.4-arm64.sdk -DUSE_OPENSSL_PC=OFF -DCMAKE_TOOLCHAIN_FILE=scripts/iOS.cmake -DENABLE_DEBUG=0 -DIOS_PLATFORM=OS -DIOS_ARCH=arm64
CMake Error at scripts/iOS.cmake:135 (message):
No iOS SDK's found in default search path
/Library/Developer/CommandLineTools/Platforms/iPhoneOS.platform/Developer.
Manually set CMAKE_IOS_SDK_ROOT or install the iOS SDK.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.19.4/share/cmake/Modules/CMakeDetermineSystem.cmake:123 (include)
CMakeLists.txt:15 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CONFIGURE: cmake reported error: child process exited abnormally
make: *** No targets specified and no makefile found. Stop.
~/Desktop/Projects/iOS/VideoCast-Swift/SRT
cp: ./build/ios_arm64/version.h: No such file or directory
fatal error: /Library/Developer/CommandLineTools/usr/bin/lipo: can't open input file: ./build/ios_x86_64/libsrt.a (No such file or directory)
스크린샷 2021-02-09 오후 5 38 48

What options should be used when building?
thank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant