GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Compile for iOS · Issue #337 · python-cmake-buildsystem/python-cmake-buildsystem

Compile for iOS #337

New issue
Copy link
New issue
Copy link
Open
Open
Compile for iOS#337
Copy link
Labels
Project: crosscompilationcrosscompilation specificcrosscompilation specific

Description

@paulocoutinhox
paulocoutinhox
opened on Jul 9, 2023
Issue body actions

Hi,

Im trying to compile for iOS:

rm -rf build
mkdir -p build

cd build && cmake ../ -DCMAKE_TOOLCHAIN_FILE=../ios.toolchain.cmake -DPLATFORM=OS64 -DDEPLOYMENT_TARGET=12.0

Error:

-- Checking which MACOSX_DEPLOYMENT_TARGET to use
-- Checking which MACOSX_DEPLOYMENT_TARGET to use - 13.3
-- [DEFAULTS] Using explicit named language support! E.g., enable_language(CXX) is needed in the project files.
-- [DEFAULTS] Enabling bitcode support by default. ENABLE_BITCODE not provided!
-- [DEFAULTS] Enabling ARC support by default. ENABLE_ARC not provided!
-- [DEFAULTS] Hiding symbols visibility by default. ENABLE_VISIBILITY not provided!
-- [DEFAULTS] Using NON-strict compiler checks by default. ENABLE_STRICT_TRY_COMPILE not provided!
-- Configuring iphoneos build for platform: OS64, architecture(s): arm64
-- Using SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk
-- Using C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Using CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Using install name tool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool
-- Autoconf target triple: arm64-apple-ios12.0
-- Using minimum deployment version: 12.0 (SDK version: 13.3)
-- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain!
-- CMake version: 3.26.3
-- Using a data_ptr size of: 8
-- Bitcode: Enabled
-- ARC: Enabled
-- Hiding symbols: Enabled
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- 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
-- SRC_DIR: /Users/paulo/Developer/workspaces/python/python-cmake-buildsystem/Python-3.9.17
-- PY_VERSION     : 3.9.17
-- PY_VERSION_LONG: 3.9.17
-- Found Git: /usr/bin/git (found version "2.39.2 (Apple Git-143)") 
-- Skipping patches: Directory '/Users/paulo/Developer/workspaces/python/python-cmake-buildsystem/patches/3.9' does not exist
-- Skipping patches: Directory '/Users/paulo/Developer/workspaces/python/python-cmake-buildsystem/patches/3.9.17' does not exist
-- Skipping patches: Directory '/Users/paulo/Developer/workspaces/python/python-cmake-buildsystem/patches/3.9.17/iOS' does not exist
-- Skipping patches: Directory '/Users/paulo/Developer/workspaces/python/python-cmake-buildsystem/patches/3.9.17/iOS-AppleClang' does not exist
-- Skipping patches: Directory '/Users/paulo/Developer/workspaces/python/python-cmake-buildsystem/patches/3.9.17/iOS-AppleClang/14.0.3.14030022' does not exist
-- Setting PY_SSL_DEFAULT_CIPHER_STRING to 'python'
-- The system name is iOS
-- The system processor is aarch64
-- The system version is 13.3
-- Found BZip2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libbz2.tbd (found version "1.0.8") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- BZIP2_INCLUDE_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include
-- BZIP2_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libbz2.tbd
-- Could NOT find Curses (missing: CURSES_INCLUDE_PATH) 
-- CURSES_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libcurses.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libform.tbd
-- PANEL_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libpanel.tbd
-- Found EXPAT: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libexpat.tbd (found version "2.5.0") 
-- EXPAT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libexpat.tbd
-- EXPAT_INCLUDE_DIRS=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include
-- LibFFI_INCLUDE_DIR=LibFFI_INCLUDE_DIR-NOTFOUND
-- LibFFI_LIBRARY=LibFFI_LIBRARY-NOTFOUND
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) (Required is at least version "0.9.7")
-- OPENSSL_LIBRARIES=OPENSSL_SSL_LIBRARY-NOTFOUND;OPENSSL_CRYPTO_LIBRARY-NOTFOUND
-- OPENSSL_INCLUDE_DIR=OPENSSL_INCLUDE_DIR-NOTFOUND
-- Found Tclsh: /usr/bin/tclsh (found version "8.5") 
-- Could NOT find TCL (missing: TCL_LIBRARY TCL_INCLUDE_PATH) 
-- Could NOT find TCLTK (missing: TCL_LIBRARY TCL_INCLUDE_PATH TK_LIBRARY TK_INCLUDE_PATH) 
-- Could NOT find TK (missing: TK_LIBRARY TK_INCLUDE_PATH) 
-- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) 
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libz.tbd (found version "1.2.11")  
-- ZLIB_INCLUDE_DIRS=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include
-- ZLIB_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libz.tbd
-- GDBM_INCLUDE_PATH=GDBM_INCLUDE_PATH-NOTFOUND
-- GDBM_LIBRARY=GDBM_LIBRARY-NOTFOUND
-- GDBM_COMPAT_LIBRARY=GDBM_COMPAT_LIBRARY-NOTFOUND
-- NDBM_TAG=NDBM
-- <NDBM_TAG>_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include
-- LZMA_INCLUDE_PATH=LZMA_INCLUDE_PATH-NOTFOUND
-- LZMA_LIBRARY=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/liblzma.tbd
-- READLINE_INCLUDE_PATH=READLINE_INCLUDE_PATH-NOTFOUND
-- READLINE_LIBRARY=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libreadline.tbd
-- SQLite3_INCLUDE_DIRS=
-- SQLite3_LIBRARIES=
-- Checking WITH_HASH_ALGORITHM option
-- Checking WITH_HASH_ALGORITHM option [default]
-- Checking ABIFLAGS - 
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
   PLATFORM_RUN (advanced)
   PLATFORM_RUN__TRYRUN_OUTPUT (advanced)
For details see /Users/paulo/Developer/workspaces/python/python-cmake-buildsystem/build/TryRunResults.cmake

[...]

-- Checking for OSX 10.5 SDK or later
-- Checking for OSX 10.5 SDK or later - no
CMake Error at cmake/python/CMakeLists.txt:35 (install):
  install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable
  target "python".

Activity

  1. jcfr
    added
    Project: crosscompilationcrosscompilation specificcrosscompilation specific
    on Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Project: crosscompilationcrosscompilation specificcrosscompilation specific

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.