Skip to content

Doxygen/OpenSSL Errors when building on Apple Silicon Mac #3622

@utkarshdalal

Description

@utkarshdalal

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

When building from file on OSX with cpack -G DragNDrop --config ./CPackConfig.cmake --verbose, there were some issues I faced. The first was this one:

ld: warning: ignoring file '/usr/local/Cellar/openssl@3/3.1.4/lib/libcrypto.3.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/openssl@3/3.1.4/lib/libssl.3.dylib': found architecture 'x86_64', required architecture 'arm64'

Since this was running on Apple Silicon, I had to go into CMakeCache.txt and update the following:

FIND_PACKAGE_MESSAGE_DETAILS_OpenSSL:INTERNAL=[/usr/local/opt/openssl/lib/libcrypto.dylib][/usr/local/opt/openssl/include][c ][v3.1.4()]
OPENSSL_SSL_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libssl.dylib
//Path to a library.
OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libcrypto.dylib
//Path to a file.
OPENSSL_INCLUDE_DIR:PATH=/usr/local/opt/openssl/include
//Path to a library.
OPENSSL_SSL_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libssl.dylib

to point to /opt/homebrew/opt/openssl/... for each.

Secondly, I was getting errors around '@ilinebr' when generating docs.

To fix this, I manually installed Doxygen 1.11.0 (used for the Windows install) from here - https://github.com/doxygen/doxygen/releases to my Applications folder

and then symlinked it to where Homebrew would expect it to be - ln -s /Applications/Doxygen.app/Contents/Resources/doxygen /opt/homebrew/bin/doxygen

Expected Behavior

No response

Additional Context

No response

Host Operating System

macOS

Operating System Version

Sonoma 14.5

Architecture

amd64/x86_64

Sunshine commit or version

v2025.122.141614

Package

macOS - Homebrew

GPU Type

AMD

GPU Model

N/A

GPU Driver/Mesa Version

N/A

Capture Method

None

Config

Apps

Relevant log output

# Run command: /opt/homebrew/bin/cmake --build . --target "preinstall"
# Directory: /Users/utkarshdalal/workspace/Sunshine-GameAway/build
# Output:
[  7%] Built target libdisplaydevice_common
[ 15%] Built target enet
[ 16%] Building CXX object CMakeFiles/sunshine.dir/src/entry_handler.cpp.o
[ 17%] Building CXX object CMakeFiles/sunshine.dir/src/main.cpp.o
[ 17%] Building CXX object CMakeFiles/sunshine.dir/src/confighttp.cpp.o
[ 18%] Linking CXX executable sunshine
ld: warning: ignoring file '/usr/local/Cellar/openssl@3/3.1.4/lib/libcrypto.3.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/openssl@3/3.1.4/lib/libssl.3.dylib': found architecture 'x86_64', required architecture 'arm64'
Undefined symbols for architecture arm64:
  "_ASN1_STRING_dup", referenced from:
      crypto::gen_creds(std::__1::basic_string_view<char, std::__1::char_traits<char>> const&, unsigned int) in crypto.cpp.o
      crypto::gen_creds(std::__1::basic_string_view<char, std::__1::char_traits<char>> const&, unsigned int) in crypto.cpp.o
  "_ASN1_STRING_free", referenced from:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions