[vtkusers] error build vtk8.01 for IOS
舞法舞天
278124177 at qq.com
Sun Jan 28 20:51:03 EST 2018
i tried to bulid vtk for ios and meet may errors blow, i hope to konw wich step i've done wrong thans.
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode
Id flags:
The output was:
1
ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++
Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode
Id flags:
The output was:
1
ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output:
Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1aa6f/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_1aa6f.dir/build.make CMakeFiles/cmTC_1aa6f.dir/build
Building C object CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -o CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_1aa6f
/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1aa6f.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o -o cmTC_1aa6f
ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode
Id flags:
The output was:
1
ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++
Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode
Id flags:
The output was:
1
ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libc++.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output:
Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_54f13/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_54f13.dir/build.make CMakeFiles/cmTC_54f13.dir/build
Building C object CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -o CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_54f13
/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_54f13.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o -o cmTC_54f13
ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode
Id flags:
The output was:
1
ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++
Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode
Id flags:
The output was:
1
ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output:
Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_3323b/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_3323b.dir/build.make CMakeFiles/cmTC_3323b.dir/build
Building C object CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -o CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_3323b
/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3323b.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o -o cmTC_3323b
ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc
Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode
Id flags:
The output was:
1
ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++
Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode
Id flags:
The output was:
1
ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libc++.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output:
Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1b878/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_1b878.dir/build.make CMakeFiles/cmTC_1b878.dir/build
Building C object CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -o CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_1b878
/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1b878.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -Wl,-headerpad_max_install_names CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o -o cmTC_1b878
ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180129/1182c4da/attachment.html>
More information about the vtkusers
mailing list