MacOS

From Tučňák Wiki
Jump to navigation Jump to search

Installation from source code

Building Tucnak from source code is currently the only way to install it on MacOS. It has been tested on MacOS 15.3.2 with M1 arm64 processor. I haven't tested any rig control, only the logger, KST, airscatter, map, etc.

Requirements

You need GCC compiler and a few libraries. All necessary requirements for compiling both libzia and tucnak can be obtained via HOMEBREW:

brew install SDL2 SDL2_ttf gnutls glib pkg-config

Build

tar xzf libzia-4.67.tar.gz
cd libzia-4.67
./configure
make
sudo make install
cd ..
tar xzf tucnak-4.67.tar.gz
cd tucnak-4.67
./configure
make
sudo make install

Running Tucnak

It may happen that your tucnak will run without graphics support. Graphics should be supported if both libzia and tucnak have been built with SDL2 and SDL2_ttf formulas installed. How to check whether SDL is properly linked:

otool -L /usr/local/bin/tucnak | grep -i SDL

You should get something like:

/opt/homebrew/opt/sdl2_ttf/lib/libSDL2_ttf-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.0.0)
/opt/homebrew/opt/sdl2/lib/libSDL2-2.0.0.dylib (compatibility version 3201.0.0, current version 3201.4.0)

or just run tucnak with --verbose flag and grep for SDL.

If SDL is linked but graphic interface still does not show up, it might be not properly detected. In such case run

tucnak -g