Menu

compiling TrustedQSL for Apple Silicon?

Help
John Frank
2022-05-27
2022-05-27
  • John Frank

    John Frank - 2022-05-27

    Has anyone successfully compiled TrustedQSL for Apple Silicon?

    I tried this:

    brew install zlib berkeley-db wxWidgets curl expat openssl
    brew install tqsl

    where the last step consistently fails with Error: SHA256 mismatch

    and then I tried using the script in the INSTALL section called "3)
    Building under Mac OS X" and it failed because it wants ppc and x86. I
    tried replacing those with "arm64" and haven't gotten past this error:

    -- The C compiler identification is AppleClang 13.1.6.13160021

    -- The CXX compiler identification is AppleClang 13.1.6.13160021

    -- Check for working C compiler: /usr/bin/gcc

    CMake Error in
    /Users/jrf/Desktop/tqsl-2.6.2/CMakeFiles/CMakeTmp/CMakeLists.txt:

    CMAKE_APPLE_ARCH_SYSROOTS:

    ppc-SDK-NOTFOUND;i386-SDK-NOTFOUND
    

    is not the same length as CMAKE_OSX_ARCHITECTURES:

    arm64
    

    CMake Error at
    /opt/homebrew/Cellar/cmake/3.22.1/share/cmake/Modules/CMakeTestCCompiler.cmake:56
    (try_compile):

    Failed to generate test project build system.

    Call Stack (most recent call first):

    CMakeLists.txt:3 (project)

    any advice?

    John

     
  • Rick Murphy

    Rick Murphy - 2022-05-27

    I have not built for Apple Silicon, but that's mostly inertia on my part. I greatly dislike leaving 32-bit Macs behind, and any XCode version that allows targeting M1 only allows x86_64 in a "universal" binary. The build scripts in the package assume the legacy system (i386/ppc) and need to be revamped. As TQSL runs fine on M1 macs, I've not been overly motivated to get it onto Apple Silicon.

     
  • Rick Murphy

    Rick Murphy - 2022-05-27

    Clean build:
    Install from homebrew cmake, openssl, lmdb, and wxWidgets

    Then:

    rm CMakeCache.txt
    export OPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl
    cmake -DOSX_ARCH=arm64 .
    make

     

Log in to post a comment.