Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Dave1423

macrumors regular
Original poster
Jul 19, 2020
112
35
tried compiling Azahar (much more up to date and compatible 3ds emulator) under 10.10 Yosemite but it just gives this error
no matter what i do
cmake .. \
> -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 \
> -DCMAKE_OSX_SYSROOT=$SDKROOT \
> -DCMAKE_OSX_ARCHITECTURES="x86_64" \
> -DCMAKE_C_FLAGS="-mmacosx-version-min=10.10 -pthread" \
> -DCMAKE_CXX_FLAGS="-mmacosx-version-min=10.10 -pthread" \
> -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF \
> -DTHREADS_PREFER_PTHREAD_FLAG=ON
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- The ASM compiler identification is AppleClang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The OBJC compiler identification is AppleClang 7.0.2.7000181
-- The OBJCXX compiler identification is AppleClang 7.0.2.7000181
-- Detecting OBJC compiler ABI info
-- Detecting OBJC compiler ABI info - done
-- Check for working OBJC compiler: /Library/Developer/CommandLineTools/usr/bin/clang - skipped
-- Detecting OBJCXX compiler ABI info
-- Detecting OBJCXX compiler ABI info - done
-- Check for working OBJCXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++ - skipped
-- SSE4.2 enabled for x86_64
-- Using Precompiled Headers.
-- LTO enabled but is unavailable, disabling: Change Dir: '/Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/bin'

Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile
/opt/local/bin/cmake -S/Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/src -B/Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/bin --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/bin/CMakeFiles /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/bin//CMakeFiles/progress.marks
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 all
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/foo.dir/build.make CMakeFiles/foo.dir/depend
cd /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/bin && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/src /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/src /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/bin /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/bin /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/bin/CMakeFiles/foo.dir/DependInfo.cmake
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/foo.dir/build.make CMakeFiles/foo.dir/build
[ 25%] Building CXX object CMakeFiles/foo.dir/foo.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -mmacosx-version-min=10.10 -pthread -g -flto -arch x86_64 -mmacosx-version-min=13.4 -MD -MT CMakeFiles/foo.dir/foo.cpp.o -MF CMakeFiles/foo.dir/foo.cpp.o.d -o CMakeFiles/foo.dir/foo.cpp.o -c /Users/davidheaton/azahar/build/CMakeFiles/_CMakeLTOTest-CXX/src/foo.cpp
clang: error: invalid version number in '-mmacosx-version-min=13.4'
make[2]: *** [CMakeFiles/foo.dir/foo.cpp.o] Error 1
make[1]: *** [CMakeFiles/foo.dir/all] Error 2
make: *** [all] Error 2


-- Target architecture: x86_64
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
CMake Error at /opt/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
/opt/local/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
/opt/local/share/cmake-3.31/Modules/FindThreads.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:297 (find_package)
 
I applaud the effort, but you didn't really think it was going to be that easy to compile a huge project for an older operating system, did you? :)

At minimum you're going to want to use macports-libcxx for compilation. These are the notes I wrote for myself the last time I compiled Citra for 10.9. Obviously 10.10 and Azahar may be a bit different.

sudo port install libsdl2 clang-13 cmake macports-libcxx dylibbundler

set(CMAKE_C_FLAGS "-Wno-gnu-include-next")
set(CMAKE_CXX_FLAGS "-Wno-gnu-include-next -nostdinc++ -I/opt/local/include/libcxx/v1")
include_directories(/opt/local/include/LegacySupport)
link_libraries("-L/opt/local/lib/libcxx /opt/local/lib/libMacportsLegacySupport.a")

cmake -DCMAKE_C_COMPILER=/opt/local/bin/clang-mp-13 -DCMAKE_CXX_COMPILER=/opt/local/bin/clang++-mp-13 -DCMAKE_PREFIX_PATH=/usr/local/Qt-5.9.9/ ../citra/

cd bin/Release/citra-qt.app/Contents/MacOS/
dylibbundler -p '@executable_path/../Frameworks' -d ../Frameworks -b -cd -ns -x citra-qt
/usr/local/Qt-5.9.9/bin/macdeployqt "../../../citra-qt.app" -executable="citra-qt"

As of January 22, 2023, this commit is causing problems: https://github.com/citra-emu/citra/commit/a298e4969b8ad2c9d0a8f28d56fc434e57734e95
 
Okay, congratulations you successfully nerd sniped me this time.

Anyway, Azahar is never going to work because it dropped support for OpenGL on macOS. I compiled a working build, then promptly discovered it was unusable because only software rendering was enabled. Games run fine, but at < 1% speed.
 
if you're on 10.10, presumably you don't care about older 10.9 aqua UI. At which point you could upgrade to 10.11 and use Metal or something, which give you vulkan support via MoltenVK?
 
  • Like
Reactions: Wowfunhappy
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.