- Install Xcode Command Line Tools (recommended: install Homebrew)
- Install
cmake(recommended:brew install cmake) - Download the most recent FLTK release (1.4.x branch)
Change to the top directory of the FLTK source (the one containing configure) and build FLTK using the command line:
MIN_MAC_VERSION=10.15
NUM_CORES=$(sysctl -n hw.perflevel0.physicalcpu 2>/dev/null || sysctl -n hw.physicalcpu)
./configure CFLAGS="-mmacosx-version-min=$MIN_MAC_VERSION" CXXFLAGS="-mmacosx-version-min=$MIN_MAC_VERSION" LDFLAGS="-mmacosx-version-min=$MIN_MAC_VERSION" --enable-localzlib
make -j$NUM_CORES
Be sure to use the same MIN_MAC_VERSION when building FLTK as you use while building Tablecruncher itself.
Adapt the paths to your FLTK builds in CMakeLists.txt and build the application on the command line:
mkdir -p build && cd build
NUM_CORES=$(sysctl -n hw.perflevel0.physicalcpu 2>/dev/null || sysctl -n hw.physicalcpu)
rm -rf *
cmake -DFLTKDIR="/Users/sf/Documents/Builds/FLTK/fltk-1.4.3" -DMACOS_VERSION=$MIN_MAC_VERSION ..
cmake --build . -- -j$NUM_CORES
cmake --build . --target create_bundle -- -j$(sysctl -n hw.perflevel0.physicalcpu)
cmake --build . --target clean
cmake --build . --target custom_clean
- Install
VS Studio C++using theVisual Studio Installerapp. - Make sure
cmakeis installed. (Should be installed with VS Studio) - Download the most recent FLTK release (1.4.x branch)
Run the following commands in a "Developer Command Prompt":
cd C:\path\to\your\fltk\dir\fltk-1.4.x
mkdir build-nmake
cd build-nmake
cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Release -D FLTK_MSVC_RUNTIME_DLL=off ..
nmake
Before building, edit CMakePresets.json and include the FLTK paths for your build. (Or pass -DFLTKINCDIR and -DFLTKLIBDIR to CMake.)
Use VS Studio C++ to build the application. Or use cmake in a "Developer Command Prompt":
mkdir build
cd build
cmake ..
cmake --build .
sudo dnf install gcc-c++ cmake make git
sudo dnf install libX11-devel libXft-devel
sudo apt install g++ cmake make
sudo apt install libx11-dev libxft-dev
./configure --enable-localzlib --disable-wayland
make -j$(nproc)
mkdir -p build && cd build
rm -rf *
cmake -DFLTKDIR="/home/sf/Documents/Builds/fltk-1.4.3" ..
cmake --build . -- -j$(nproc)
cd build/
rm -rf *
cmake -DFLTKDIR="/home/sf/Documents/Builds/fltk-1.4.3" -DAPPIMAGE=1 ..
cmake --build . -- -j$(nproc)
cd ../scripts/
./build_appimage.sh