Wolf Gang Mac OS
From Mac OS X 10.1 to Mac OS X 10.6, the feature would copy the selected text to the clipboard and read it from there. From Mac OS X 10.7 to Mac OS X 10.10, a new implementation of the feature required software developers to implement a speech synthesis API into their applications. Hackintosh.com links to everything you need to build a Hackintosh and get macOS Big Sur (macOS 11) as well as many earlier versions of Mac OS X running on an unsupported computer - instructions, step-by-step 'how to' guides, and tutorials - in addition to installation videos, lists of compatible computers and parts, and communities for support. My idea was to have access to my /home partition from Mac OS X using this Paragon driver, but I don't suggest to do this setup. So far, I have my /home partition in Linux formatted to hfsplus with no journaling, and then I can access my files from Mac OS X. Of course, from time to time I get some problems in my FS but is not very frequent.
I was experimenting with CMake and SDL and was looking for the recommended way to add SDL to the project. Most of the instructions I found looked like this.
Failing
My CMakeLists.txt
looked something like this.
Running cmake
resulted in an error message about SDL2_INCLUDE_DIR
, so obviously the find_library
call had succeeded but the variable value wasn't set regardless.
Adding Debug Output
So I added some logging messages about SDL2_INCLUDE_DIR
and SDL2_LIBRARY
as well.
The output immediately showed why this could not have worked.
Digging Deeper
So I took a look into the cmake module code that would run for the find_library
call.A simple locate
command narrowed this down:
The first glance at this file made it obvious that the variables I had been using were simply wrong (probably changed over time).
Instead of SDL2_INCLUDE_DIR
SDL2_INCLUDE_DIRS
must be used.Instead of SDL2_LIBRARY
SDL2_LIBRARIES
must be used.
Making it Work
From there it was easy and updating the CMakeLists.txt
file to use the correct variable names did the trick.
Bonus: Adding SDL_TTF
This was supposed to be as simple as adding this line to CMakeLists.txt
Of course, it resulted in an immediate error.
Searching on the internet, I quickly found a solution to this problem.
Wolf Gang Mac Os Catalina
Apparently this is some issue about SDL
and SDL2
and someone already created a custom cmake module for that.
These steps resolved that problem for me:
- Download the FindSDL2TTF.cmake file.
- Copy it into a
cmake
folder in my project. - Add this folder to the
CMAKE_MODULE_PATH
by callingset
. - Use
find_package
with the new nameSDLTTF
. - Use the correct variable names
SDL2TTF_INCLUDE_DIR
andSDL2TTF_LIBRARY
.
Mac Os Download
Here's how that looks in CMakeLists.txt
.