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

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

Open
2 tasks done
utkarshdalal opened this issue Feb 1, 2025 · 1 comment
Open
2 tasks done

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

utkarshdalal opened this issue Feb 1, 2025 · 1 comment

Comments

@utkarshdalal
Copy link

utkarshdalal commented Feb 1, 2025

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:
@ReenigneArcher
Copy link
Member

Docs issue is here: doxygen/doxygen#11310 (comment)

The other issue is already documented here: https://docs.lizardbyte.dev/projects/sunshine/latest/md_docs_2building.html#macos-4 ... But maybe this needs to be improved?

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

2 participants