tg
tg copied to clipboard
Windows version compile instructions
I recently came across tg and your version and decided to take a stab at compiling it in windows. I wish I could say I was completely successful, but unfortunately the functionality related to the menu option "Signal" is still not working, but I did manage compile it correctly and with support for the "new-stuff" it's just when trying the signal part that I get an error related to numpy (ImportError: DLL load failed while importing _multiarray_umath), which I believe is path issue, anyway hopefully these steps might be helpful and someone else can crack the puzzle, so onward:
Download and install MSYS2 from https://www.msys2.org/
Add the folder "C:\msys64\ucrt64\bin" to the system path variable
Open the MSYS2 UCRT64
Install the required packages with:
pacman -S mingw-w64-ucrt-x86_64-gcc make pkg-config mingw-w64-ucrt-x86_64-gtk3 mingw-w64-ucrt-x86_64-portaudio mingw-w64-ucrt-x86_64-fftw git autoconf automake libtool mingw-w64-ucrt-x86_64-ninja mingw-w64-ucrt-x86_64-python-numpy mingw-w64-ucrt-x86_64-python-scipy mingw-w64-ucrt-x86_64-python-matplotlib mingw-w64-ucrt-x86_64-lapack mingw-w64-ucrt-x86_64-cython mingw-w64-ucrt-x86_64-python-setuptools mingw-w64-ucrt-x86_64-python-pip
Grab the libtfr library:
git clone https://github.com/melizalab/libtfr.git
Install libtfr
cd libtfr
python setup.py install
cd ..
Grab tg:
git clone https://github.com/xyzzy42/tg.git
git checkout new-stuff
Open the file src\audio.c and add #include <unistd.h>
right after #include <errno.h>
and then on the terminal:
./autogen.sh
./configure
make
If all went well you should have a tg-timer.exe on your MSYS2 tg folder, that you can now execute with ./tg-timer.exe