Skip to content

Instantly share code, notes, and snippets.

@tresf
Last active December 26, 2023 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tresf/fa28bdfcfe3630f44109a8aee328f731 to your computer and use it in GitHub Desktop.
Save tresf/fa28bdfcfe3630f44109a8aee328f731 to your computer and use it in GitHub Desktop.
LMMS + Zyn + Non Toolkit

How to build NTK:

(adapted from Albrecht Schlosser)

  1. Install dependencies:
    sudo apt-get install \
       fontconfig \
       libxft-dev \
       libcairo2-dev \
       libjpeg-dev \
       freeglut3-dev
  2. Clone falktx's mirror (for now):
    git clone https://github.com/falkTX/ntk
  3. Configure ntk:
    ./waf configure --prefix=/usr/local/ntk --enable-debug --enable-gl
  4. Build ntk
    ./waf build
  5. Install (:warning: WARNING: This will install ntk system-wide!)
    sudo ./waf install

    Note: Albrecht Schlosser wrote: I believe you need python3 to build (using waf) but I'm not sure, I didn't test with python2. Use waf --help for options. You may need to adjust your PATH and maybe LD_LIBRARY_PATH to run the executables. Everything gets built in a subdirectory named 'build' (and build/fluid). I used (sudo) waf install to install in /usr/local/ntk but you may want to install in default (system) locations as well (if you like it and dare to do it). It's pretty well separated from an FLTK installation (no guarantee) - fluid is named ntk-fluid etc., header files are installed in include/ntk/FL. build/ntk-chtheme can be used to change the "theme" and color config.


Configuring LMMS to use NTK:

  1. Ensure pkg-config can find ntk
    export PKG_CONFIG_PATH="/usr/local/ntk/lib/pkgconfig/"
  2. Edit LMMS source: https://github.com/LMMS/lmms/compare/master...tresf:lmms:ntk
  3. TODO: I don't the packaging will work due to some fltk assumptions with the AppImage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment